boinc/html/user/prefs_edit_global_action.php

23 lines
409 B
PHP

<?php
include_once("db.inc");
include_once("util.inc");
include_once("prefs.inc");
db_init();
$authenticator = init_session();
$user = get_user_from_auth($authenticator);
if ($user == NULL) {
print_login_form();
exit();
}
parse_str(getenv("QUERY_STRING"));
$prefs = prefs_parse($user->prefs);
prefs_global_parse_form($prefs);
global_prefs_update($user, $prefs);
Header("Location: prefs.php");
?>