Skip to content

Commit

Permalink
SOme security!
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Mar 6, 2005
1 parent c6f4379 commit 40b3723
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions admin/innodb.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

require_login();

if (!isadmin) {
if (!isadmin()) {
error('Admin only');
}

print_header("Convert all tables from MYISAM to InnoDB", "Convert all tables from MYISAM to InnoDB",
"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...");

Expand All @@ -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");
}

?>

0 comments on commit 40b3723

Please sign in to comment.