2003-03-04 19:13:21 +00:00
|
|
|
<?php
|
|
|
|
|
2004-02-02 23:34:39 +00:00
|
|
|
include_once("../inc/db.inc");
|
|
|
|
include_once("../inc/util.inc");
|
|
|
|
include_once("../inc/prefs.inc");
|
2003-03-04 19:13:21 +00:00
|
|
|
|
|
|
|
db_init();
|
|
|
|
|
2003-03-19 21:01:32 +00:00
|
|
|
$user = get_logged_in_user();
|
2003-03-04 19:13:21 +00:00
|
|
|
|
|
|
|
$subset = $_GET["subset"];
|
|
|
|
$venue = $_GET["venue"];
|
|
|
|
|
|
|
|
if ($subset == "global") {
|
|
|
|
$main_prefs = prefs_parse_global($user->global_prefs);
|
|
|
|
$main_prefs->$venue = null;
|
|
|
|
global_prefs_update($user, $main_prefs);
|
|
|
|
} else {
|
|
|
|
$main_prefs = prefs_parse_project($user->project_prefs);
|
|
|
|
$main_prefs->$venue = null;
|
|
|
|
project_prefs_update($user, $main_prefs);
|
|
|
|
}
|
|
|
|
Header("Location: prefs.php?subset=$subset");
|
|
|
|
|
|
|
|
?>
|