2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
2008-08-05 22:43:14 +00:00
|
|
|
// This file is part of BOINC.
|
|
|
|
// http://boinc.berkeley.edu
|
|
|
|
// Copyright (C) 2008 University of California
|
|
|
|
//
|
|
|
|
// BOINC is free software; you can redistribute it and/or modify it
|
|
|
|
// under the terms of the GNU Lesser General Public License
|
|
|
|
// as published by the Free Software Foundation,
|
|
|
|
// either version 3 of the License, or (at your option) any later version.
|
|
|
|
//
|
|
|
|
// BOINC is distributed in the hope that it will be useful,
|
|
|
|
// but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
// See the GNU Lesser General Public License for more details.
|
|
|
|
//
|
|
|
|
// You should have received a copy of the GNU Lesser General Public License
|
|
|
|
// along with BOINC. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
2006-08-13 21:51:15 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
|
|
|
require_once("../inc/prefs.inc");
|
|
|
|
|
|
|
|
db_init();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2006-08-13 21:51:15 +00:00
|
|
|
$user = get_logged_in_user();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2006-08-13 21:51:15 +00:00
|
|
|
$subset = get_str("subset");
|
|
|
|
$columns = get_int("cols", true);
|
|
|
|
$updated = get_int("updated", true);
|
2012-09-24 06:35:38 +00:00
|
|
|
$defaults = get_int("defaults", true);
|
2002-12-16 21:41:41 +00:00
|
|
|
|
2010-02-19 17:51:00 +00:00
|
|
|
page_head(tra("%1 preferences", subset_name($subset)));
|
2006-08-13 21:51:15 +00:00
|
|
|
if (isset($updated)) {
|
2010-11-04 18:20:57 +00:00
|
|
|
echo "<p style='color: red'>
|
2010-08-03 03:56:13 +00:00
|
|
|
".tra("Your preferences have been updated, and
|
2010-11-04 18:20:57 +00:00
|
|
|
will take effect when your computer communicates with %1
|
|
|
|
or you issue the %2Update%3 command from the BOINC Manager.",
|
|
|
|
PROJECT, "<strong>", "</strong>")."
|
2006-08-13 21:51:15 +00:00
|
|
|
</p>
|
|
|
|
";
|
|
|
|
}
|
2012-09-24 06:35:38 +00:00
|
|
|
if (isset($defaults)) {
|
|
|
|
echo "<p style='color: red'>
|
|
|
|
".tra("Your preferences have been reset to the defaults, and
|
|
|
|
will take effect when your computer communicates with %1
|
|
|
|
or you issue the %2Update%3 command from the BOINC Manager.",
|
|
|
|
PROJECT, "<strong>", "</strong>")."
|
|
|
|
</p>
|
|
|
|
";
|
|
|
|
}
|
2006-08-13 21:51:15 +00:00
|
|
|
if ($subset == "global") {
|
|
|
|
print_prefs_display_global($user, $columns);
|
2012-09-24 06:35:38 +00:00
|
|
|
if (!$defaults) {
|
|
|
|
show_button(
|
|
|
|
"prefs_default.php",
|
|
|
|
"Restore defaults",
|
|
|
|
"Restore default preferences"
|
|
|
|
);
|
|
|
|
}
|
2006-08-13 21:51:15 +00:00
|
|
|
} else {
|
|
|
|
print_prefs_display_project($user, $columns);
|
|
|
|
}
|
2012-09-24 06:35:38 +00:00
|
|
|
|
2006-08-13 21:51:15 +00:00
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2008-08-05 22:43:14 +00:00
|
|
|
$cvs_version_tracker[]="\$Id$"; //Generated automatically - do not edit
|
2002-04-30 22:22:54 +00:00
|
|
|
?>
|