function show_page() { global $use_rel_external_script; $use_rel_external_script = true; lmt_page_header('Validation'); echo <<<HEREDOC <h1>Verify Database</h1> <div class="text-centered b"> <span> <a href="#basic">Basic Information</a> <a href="#checkin">Checkin</a> <a href="#grading">Grading</a> <a href="#guts">Guts</a> <br /><br /> </span> </div> HEREDOC; echo do_verify(); }
* Allows Admins to back up and optimize the database */ require_once '../.lib/functions.php'; restrict_access('A'); page_title('Database'); if (isset($_POST['do_backup'])) { do_backup(); } else { if (isset($_POST['do_optimize'])) { do_optimize(); } else { if (isset($_POST['do_zip'])) { do_zip(); } else { if (isset($_POST['do_verify'])) { do_verify(); } else { show_page(''); } } } } function show_page($check_results) { global $PHP_MY_ADMIN_LINK, $use_rel_external_script; $use_rel_external_script = true; echo <<<HEREDOC <h1>Database</h1> <form method="post" action="{$_SERVER['REQUEST_URI']}"><div> <input type="hidden" name="xsrf_token" value="{$_SESSION['xsrf_token']}"/> <input type="submit" name="do_optimize" value="Optimize Tables"/>