From: stronk7 <stronk7>
Date: Sat, 2 Oct 2004 22:46:11 +0000 (+0000)
Subject: admin/xxx is now using sesskey.
X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d72fdff5ee7a25c39d40800fe4d584f78f12d936;p=moodle.git

admin/xxx is now using sesskey.

Merged from MOODLE_14_STABLE
---

diff --git a/backup/config.html b/backup/config.html
index a824f4eff2..5bf164a91e 100644
--- a/backup/config.html
+++ b/backup/config.html
@@ -82,6 +82,7 @@
     $keep_array[500] = "500";
 ?>
 <form method="post" action="backup.php" name="form">
+<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
 
 <table cellpadding="9" cellspacing="0" >
 <tr valign="top">
diff --git a/backup/log.php b/backup/log.php
index 9676a52f1f..41e9df5404 100644
--- a/backup/log.php
+++ b/backup/log.php
@@ -40,7 +40,7 @@
         print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
                       "<a href=\"../$CFG->admin/index.php\">$stradmin</a> -> ".
                       "<a href=\"../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
-                      "<a href=\"../$CFG->admin/backup.php\">$strbackup</a> -> ".
+                      "<a href=\"../$CFG->admin/backup.php?sesskey=$USER->sesskey\">$strbackup</a> -> ".
                       $strlogs);
 
         print_heading($backuploglaststatus);
@@ -86,7 +86,7 @@
         print_header("$site->shortname: $strconfiguration: $strbackup", $site->fullname,
                       "<a href=\"../$CFG->admin/index.php\">$stradmin</a> -> ".
                       "<a href=\"../$CFG->admin/configure.php\">$strconfiguration</a> -> ".
-                      "<a href=\"../$CFG->admin/backup.php\">$strbackup</a> -> ".
+                      "<a href=\"../$CFG->admin/backup.php?sesskey=$USER->sesskey\">$strbackup</a> -> ".
                       "<a href=\"log.php\">$strlogs</a> -> ".
                       $strbackupdetails);