mirror of
https://github.com/Znote/ZnoteAAC.git
synced 2025-06-14 16:54:30 +02:00
Show SQL query string array if you are logged in as admin below the footer.
This commit is contained in:
parent
c3c236e13e
commit
673c2a2d23
@ -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:");
|
||||
}
|
||||
?>
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user