mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
SOme security!
This commit is contained in:
parent
c6f4379f89
commit
40b372365d
@ -4,7 +4,7 @@
|
||||
|
||||
require_login();
|
||||
|
||||
if (!isadmin) {
|
||||
if (!isadmin()) {
|
||||
error('Admin only');
|
||||
}
|
||||
|
||||
@ -12,7 +12,7 @@
|
||||
"Convert all tables from MYISAM to InnoDB");
|
||||
|
||||
|
||||
if ($confirm) {
|
||||
if (!empty($confirm) and confirm_sesskey()) {
|
||||
|
||||
print_heading("Please be patient and wait for this to complete...");
|
||||
|
||||
@ -23,7 +23,8 @@
|
||||
}
|
||||
}
|
||||
} else {
|
||||
notice("Are you sure you want convert all your tables to the InnoDB format?", "innodb.php?confirm=yes", "index.php");
|
||||
notice_yesno("Are you sure you want convert all your tables to the InnoDB format?",
|
||||
"innodb.php?confirm=yes&sesskey=".sesskey(), "index.php");
|
||||
}
|
||||
|
||||
?>
|
||||
|
Loading…
x
Reference in New Issue
Block a user