0) { foreach (array_keys($settings_graphs) as $setting) { db_execute("replace into settings_graphs (user_id,name,value) values (" . $_SESSION["sess_user_id"]. ",'$setting', '" . $_POST[$setting] . "')"); } } /* reset local settings cache so the user sees the new settings */ session_unregister("sess_graph_config_array"); header ("Location: " . $_POST["referer"]); } /* -------------------------- Graph Settings Functions -------------------------- */ function settings() { global $colors, $tabs_graphs, $settings_graphs, $current_user, $graph_views; print "