/// If data submitted, process and store
- if(confirm_sesskey() && $form = data_submitted()) {
+ if(($form = data_submitted()) && confirm_sesskey()) {
if(isset($form->mode_dst)) {
// Move to DST presets configuration
- redirect('dst.php?sesskey='.$USER->sesskey);
+ redirect('dst.php');
die();
}
// Normal configuration, just save the variables
$table->data[]= array("<strong><a href=\"editor.php\">". get_string('editorsettings') ."</a></strong>",
get_string('adminhelpeditorsettings'));
- $table->data[]= array("<strong><a href=\"calendar.php?sesskey=$USER->sesskey\">". get_string('calendarsettings', 'admin') ."</a></strong>",
+ $table->data[]= array("<strong><a href=\"calendar.php\">". get_string('calendarsettings', 'admin') ."</a></strong>",
get_string('helpcalendarsettings', 'admin'));
print_table($table);
error('Site isn\'t defined!');
}
- confirm_sesskey();
-
include_once('../calendar/lib.php');
/// Print headings
print_header("$site->shortname: $strcalendardstpresets", "$site->fullname",
"<a href=\"index.php\">$stradministration</a> -> ".
"<a href=\"configure.php\">$strconfiguration</a> -> ".
- "<a href=\"calendar.php?sesskey=$USER->sesskey\">$strcalendarsettings</a> -> $strcalendardstpresets");
+ "<a href=\"calendar.php\">$strcalendarsettings</a> -> $strcalendardstpresets");
$mode = '';
$form = false;
// $mode, on the other hand, may make us do something INSTEAD of displaying the preset list
- if($form = data_submitted()) {
+ if(($form = data_submitted()) && confirm_sesskey()) {
if(isset($form->result_cancel)) {
$mode = '';
}
else if(isset($form->mode_return)) {
- redirect('calendar.php?sesskey='.$USER->sesskey);
+ redirect('calendar.php');
die();
}
else if(isset($form->mode_delete)) {
print_object("INSERT!");
insert_record('dst_preset', $preset);
}
- echo '<a href="dst.php?sesskey='.$USER->sesskey.'>Proceed</a>';
+ echo '<a href="dst.php">Proceed</a>';
die();
}
else {
get_string("adminhelpmanagemodules")."</font><br />";
$configdata .= "<font size=+1> </font><a href=\"blocks.php\">".get_string("manageblocks")."</a> - <font size=\"1\">".
get_string("adminhelpmanageblocks")."</font><br />";
- $configdata .= "<font size=+1> </font><a href=\"filters.php?sesskey=$USER->sesskey\">".get_string("managefilters")."</a> - <font size=\"1\">".
+ $configdata .= "<font size=+1> </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> </font><a href=\"backup.php?sesskey=$USER->sesskey\">".get_string("backup")."</a> - <font size=\"1\">".
+ $configdata .= "<font size=+1> </font><a href=\"backup.php\">".get_string("backup")."</a> - <font size=\"1\">".
get_string("adminhelpbackup")."</font><br />";
}
- $configdata .= "<font size=+1> </font><a href=\"editor.php?sesskey=$USER->sesskey\">". get_string("editorsettings") ."</a> - <font size=\"1\">".
+ $configdata .= "<font size=+1> </font><a href=\"editor.php\">". get_string("editorsettings") ."</a> - <font size=\"1\">".
get_string("adminhelpeditorsettings")."</font><br />";
- $configdata .= "<font size=+1> </font><a href=\"calendar.php?sesskey=$USER->sesskey\">". get_string('calendarsettings', 'admin') ."</a> - <font size=\"1\">".
+ $configdata .= "<font size=+1> </font><a href=\"calendar.php\">". get_string('calendarsettings', 'admin') ."</a> - <font size=\"1\">".
get_string('helpcalendarsettings', 'admin')."</font><br />";
$table->data[] = array("<font size=+1><b><a href=\"configure.php\">".get_string("configuration")."</a></b>",