Show SQL query string array if you are logged in as admin below the footer.

This commit is contained in:
Znote 2016-11-13 05:56:27 +01:00
parent c3c236e13e
commit 673c2a2d23
2 changed files with 8 additions and 2 deletions

View File

@ -7,4 +7,10 @@
echo 'Server date and clock is: '. getClock(false, true) .' Page generated in '. elapsedTime() .' seconds. Q: '.$aacQueries;
?>
<a href="http://www.css3templates.co.uk">Design: css3templates.co.uk</a>. Engine: <a href="credits.php">Znote AAC</a></p>
</footer>
</footer>
<?php // If you are logged in as an admin, display SQL queries below footer.
if (user_logged_in() && is_admin($user_data)) {
global $accQueriesData;
data_dump($accQueriesData, false, "Logged in as Admin: SQL queries executed:");
}
?>

View File

@ -58,7 +58,7 @@ if (empty($_POST) === false) {
if ($query['secret'] !== NULL) {
// Validate the secret first to make sure all is good.
if (TokenAuth6238::verify($query['znote_secret'], $authcode) !== true) {
if (TokenAuth6238::verify($query['secret'], $authcode) !== true) {
$errors[] = "Submitted Two-Factor Authentication token is wrong.";
$errors[] = "Make sure to type the correct token from your mobile authenticator.";
$status = false;