admin/block.php is now using sesskey.

Merged from MOODLE_14_STABLE
This commit is contained in:
stronk7 2004-10-02 23:13:37 +00:00
parent 4cd803df04
commit 398ef378dc
4 changed files with 4 additions and 2 deletions

View File

@ -13,7 +13,7 @@ class CourseBlock_course_list extends MoodleBlock {
}
function print_config() {
global $CFG, $THEME;
global $CFG, $USER, $THEME;
print_simple_box_start('center', '', $THEME->cellheading);
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
print_simple_box_end();

View File

@ -1,4 +1,5 @@
<form method="post" action="block.php">
<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
<table cellpadding="9" cellspacing="0">
<tr valign="top">

View File

@ -11,7 +11,7 @@ class CourseBlock_online_users extends MoodleBlock {
function has_config() {return true;}
function print_config() {
global $CFG, $THEME;
global $CFG, $USER, $THEME;
print_simple_box_start('center', '', $THEME->cellheading);
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
print_simple_box_end();

View File

@ -1,4 +1,5 @@
<form method="post" action="block.php">
<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
<table cellpadding="9" cellspacing="0">
<tr valign="top">