Permalink
Browse files

admin/block.php is now using sesskey.

  • Loading branch information...
1 parent 36b1e81 commit a8b50ee01eb5d0ef99f9cd2fc0c71ca25f448731 stronk7 committed Oct 2, 2004
@@ -13,7 +13,7 @@ function has_config() {
}
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();
@@ -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">
@@ -11,7 +11,7 @@ function CourseBlock_online_users ($course) {
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();
@@ -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">

0 comments on commit a8b50ee

Please sign in to comment.