mirror of https://github.com/BOINC/boinc.git
*** empty log message ***
svn path=/trunk/boinc/; revision=4305
This commit is contained in:
parent
615cabb8df
commit
79d3c7d3c4
|
@ -18179,3 +18179,9 @@ David 7 Oct 2004
|
|||
|
||||
py/Boinc/
|
||||
db_base.py
|
||||
|
||||
David 8 Oct 2004
|
||||
- Add confirm before delete prefs
|
||||
|
||||
html/user/
|
||||
prefs_remove.php
|
||||
|
|
|
@ -10,7 +10,9 @@ $user = get_logged_in_user();
|
|||
|
||||
$subset = $_GET["subset"];
|
||||
$venue = $_GET["venue"];
|
||||
$confirmed = $_GET["confirmed"];
|
||||
|
||||
if ($confirmed) {
|
||||
if ($subset == "global") {
|
||||
$main_prefs = prefs_parse_global($user->global_prefs);
|
||||
$main_prefs->$venue = null;
|
||||
|
@ -21,5 +23,17 @@ if ($subset == "global") {
|
|||
project_prefs_update($user, $main_prefs);
|
||||
}
|
||||
Header("Location: prefs.php?subset=$subset");
|
||||
} else {
|
||||
page_head("Confirm delete preferences");
|
||||
echo "
|
||||
<p>
|
||||
Are you sure you want to delete your separate ", subset_name($subset),
|
||||
" preferences for $venue?
|
||||
<br><br>
|
||||
<a href=prefs_remove.php?subset=$subset&venue=$venue&confirmed=yes>Yes</a>
|
||||
| <a href=prefs.php?subset=$subset>Cancel</a>
|
||||
";
|
||||
page_tail();
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue