mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
admin/block.php is now using sesskey.
Merged from MOODLE_14_STABLE
This commit is contained in:
parent
4cd803df04
commit
398ef378dc
@ -13,7 +13,7 @@ class CourseBlock_course_list extends MoodleBlock {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function print_config() {
|
function print_config() {
|
||||||
global $CFG, $THEME;
|
global $CFG, $USER, $THEME;
|
||||||
print_simple_box_start('center', '', $THEME->cellheading);
|
print_simple_box_start('center', '', $THEME->cellheading);
|
||||||
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
|
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
|
||||||
print_simple_box_end();
|
print_simple_box_end();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<form method="post" action="block.php">
|
<form method="post" action="block.php">
|
||||||
|
<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
|
||||||
|
|
||||||
<table cellpadding="9" cellspacing="0">
|
<table cellpadding="9" cellspacing="0">
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
@ -11,7 +11,7 @@ class CourseBlock_online_users extends MoodleBlock {
|
|||||||
function has_config() {return true;}
|
function has_config() {return true;}
|
||||||
|
|
||||||
function print_config() {
|
function print_config() {
|
||||||
global $CFG, $THEME;
|
global $CFG, $USER, $THEME;
|
||||||
print_simple_box_start('center', '', $THEME->cellheading);
|
print_simple_box_start('center', '', $THEME->cellheading);
|
||||||
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
|
include($CFG->dirroot.'/blocks/'.$this->name().'/config.html');
|
||||||
print_simple_box_end();
|
print_simple_box_end();
|
||||||
|
@ -1,4 +1,5 @@
|
|||||||
<form method="post" action="block.php">
|
<form method="post" action="block.php">
|
||||||
|
<?php echo "<input type=\"hidden\" name=\"sesskey\" value=\"".$USER->sesskey."\">"; ?>
|
||||||
|
|
||||||
<table cellpadding="9" cellspacing="0">
|
<table cellpadding="9" cellspacing="0">
|
||||||
<tr valign="top">
|
<tr valign="top">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user