2002-04-30 22:22:54 +00:00
|
|
|
<?php
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/db.inc");
|
|
|
|
require_once("../inc/util.inc");
|
2005-05-11 08:29:35 +00:00
|
|
|
if (isset($_GET["cols"])) {
|
2005-04-03 22:01:18 +00:00
|
|
|
require_once("../inc/prefs_col.inc");
|
|
|
|
} else {
|
2004-02-02 23:34:39 +00:00
|
|
|
require_once("../inc/prefs.inc");
|
2005-04-03 22:01:18 +00:00
|
|
|
}
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2002-08-13 22:35:12 +00:00
|
|
|
db_init();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2002-12-16 21:41:41 +00:00
|
|
|
|
2003-03-04 19:13:21 +00:00
|
|
|
$subset = $_GET["subset"];
|
|
|
|
page_head(subset_name($subset)." preferences");
|
2005-05-11 10:56:49 +00:00
|
|
|
if (isset($_GET['updated'])) {
|
2003-08-15 22:08:39 +00:00
|
|
|
echo "<p style='color: red'>
|
2003-10-31 21:26:12 +00:00
|
|
|
Your preferences have been updated.
|
|
|
|
They will take effect when your computer communicates
|
|
|
|
with ".PROJECT." or
|
2004-06-07 03:34:07 +00:00
|
|
|
you issue the \"Update\" command from the BOINC client.
|
2003-08-13 20:05:28 +00:00
|
|
|
</p>
|
2003-08-15 22:08:39 +00:00
|
|
|
";
|
2003-06-04 23:12:55 +00:00
|
|
|
}
|
2003-03-04 19:13:21 +00:00
|
|
|
if ($subset == "global") {
|
|
|
|
print_prefs_display_global($user);
|
|
|
|
} else {
|
|
|
|
print_prefs_display_project($user);
|
|
|
|
}
|
2002-12-19 05:11:25 +00:00
|
|
|
page_tail();
|
2002-04-30 22:22:54 +00:00
|
|
|
|
|
|
|
?>
|