boinc/html/user/prefs_edit_global_form.php

40 lines
899 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("Edit global preferences", $user);
$prefs = prefs_parse($user->global_prefs);
echo "<h3>Edit global preferences</h3>
These preferences apply to all the BOINC projects
in which you participate.
<br>If you participate in multiple BOINC projects,
edit your preferences only one project's web site;
<br>otherwise edits may be overwritten.
";
echo "<form action=prefs_edit_global_action.php>
<table cellpadding=6>
";
prefs_form_global($user, $prefs, "prefs.php");
echo "<tr><td><br></td><td><input type=submit value=\"OK\"></td></tr>
</table>
</form>\n
";
echo "<a href=prefs.php>Back to preferences</a>\n";
page_tail();
?>