Skip to content

Commit

Permalink
admin/backup.php is now using sesskey.
Browse files Browse the repository at this point in the history
Merged from MOODLE_14_STABLE
  • Loading branch information
stronk7 committed Oct 2, 2004
1 parent 181586f commit 17ecd09
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions admin/backup.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
error("Site isn't defined!");
}

if (!confirm_sesskey()) {
error(get_string('confirmsesskeybad', 'error'));
}

//Initialise error variables
$error = false;
$sche_destination_error = "";
Expand Down
2 changes: 1 addition & 1 deletion admin/configure.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
$table->data[] = array("<b><a href=\"filters.php\">".get_string("managefilters")."</a></b>",
get_string("adminhelpmanagefilters"));
if (!isset($CFG->disablescheduledbackups)) {
$table->data[] = array("<b><a href=\"backup.php\">".get_string("backup")."</a></b>",
$table->data[] = array("<b><a href=\"backup.php?sesskey=$USER->sesskey\">".get_string("backup")."</a></b>",
get_string("adminhelpbackup"));
}

Expand Down
2 changes: 1 addition & 1 deletion admin/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@
$configdata .= "<font size=+1>&nbsp;</font><a href=\"filters.php\">".get_string("managefilters")."</a> - <font size=\"1\">".
get_string("adminhelpmanagefilters")."</font><br />";
if (!isset($CFG->disablescheduledbackups)) {
$configdata .= "<font size=+1>&nbsp;</font><a href=\"backup.php\">".get_string("backup")."</a> - <font size=\"1\">".
$configdata .= "<font size=+1>&nbsp;</font><a href=\"backup.php?sesskey=$USER->sesskey\">".get_string("backup")."</a> - <font size=\"1\">".
get_string("adminhelpbackup")."</font><br />";
}
$configdata .= "<font size=+1>&nbsp;</font><a href=\"editor.php\">". get_string("editorsettings") ."</a> - <font size=\"1\">".
Expand Down

0 comments on commit 17ecd09

Please sign in to comment.