boinc/html/user/prefs_edit_global_action.php

27 lines
485 B
PHP

<?php
include_once("db.inc");
include_once("util.inc");
include_once("prefs.inc");
$authenticator = init_session();
db_init();
$user = get_user_from_auth($authenticator);
if ($user == NULL) {
print_login_form();
exit();
}
page_head("Preferences");
$prefs = prefs_parse($user->prefs);
prefs_global_parse_form($prefs);
global_prefs_update($user, $prefs);
echo "<table width=780><tr><td>";
echo "</td></tr></table>";
print_prefs_display($user);
echo "<p>\n";
page_tail();
?>