<td><input type="submit" value="<?php print_string("savechanges") ?>" /></td>
</table>
<input type="hidden" name="id" value="<?php echo $form->id ?>" />
+<input type="hidden" name="sesskey" value="<?php echo $form->sesskey ?>" />
</form>
/// If data submitted, then process and store.
- if ($form = data_submitted()) {
+ if ($form = data_submitted() and confirm_sesskey()) {
if (empty($course)) {
check_for_restricted_user($USER->username, "$CFG->wwwroot");
"<a href=\"index.php\">$strcategories</a> -> $straddnewcourse", $focus);
}
+ $form->sesskey = !empty($USER->id) ? $USER->sesskey : '';
+
print_heading($streditcoursesettings);
print_simple_box_start("center", "", "$THEME->cellheading");
include("edit.html");