Tweaks to remove warnings; Update footer
This commit is contained in:
parent
73a37977bc
commit
35fa6f01e6
|
@ -24,9 +24,12 @@ if ($current_user > 0 || !isset($_SESSION['loginfailures']) || (isset($_SESSION[
|
||||||
// If logged in, never failed, or more than 1 hour has passed, reset login failures.
|
// If logged in, never failed, or more than 1 hour has passed, reset login failures.
|
||||||
$_SESSION['loginfailures'] = 0;
|
$_SESSION['loginfailures'] = 0;
|
||||||
} else {
|
} else {
|
||||||
|
$hoverlockoutmessage = '';
|
||||||
|
if (isset($_SESSION['loginlockouttime'])) {
|
||||||
$alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed.";
|
$alertlockoutmessage = "You failed logging in 10 times. To prevent request flooding and hacking attempts, you may not log in or create an account for 1 hour.\\n\\nThe last time this page was loaded, you had been locked out for " . time_elapsed(time() - $_SESSION['loginlockouttime']) . "\\n\\nRefresh the page once the hour has passed.";
|
||||||
$hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage);
|
$hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
|
require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
|
||||||
|
|
||||||
|
@ -419,7 +422,7 @@ if ($display_mode != "build") {
|
||||||
</contents>
|
</contents>
|
||||||
<footer>
|
<footer>
|
||||||
<div id="footer-content">
|
<div id="footer-content">
|
||||||
Lexiconga only guaranteed to work with most up-to-date HTML5 browsers. <a href="https://blog.lexicon.ga" class="clickable inline-button" target="_blank">Blog</a> <a href="/issues" class="clickable inline-button" target="_blank">Issues</a> <a href="/updates" class="clickable inline-button" target="_blank">Updates</a> | <span class="clickable inline-button" onclick="ShowInfo('termsText')" style="font-size:12px;">Terms</span> <span class="clickable inline-button" onclick="ShowInfo('privacyText')" style="font-size:12px;">Privacy</span>
|
Lexiconga only guaranteed to work in up-to-date browsers. <a href="https://buymeacoff.ee/robbieantenesse" class="clickable inline-button" target="_blank">Support</a> <a href="https://blog.lexicon.ga" class="clickable inline-button" target="_blank">Blog</a> <a href="/issues" class="clickable inline-button" target="_blank">Issues</a> <a href="/updates" class="clickable inline-button" target="_blank">Updates</a> | <span class="clickable inline-button" onclick="ShowInfo('termsText')" style="font-size:12px;">Terms</span> <span class="clickable inline-button" onclick="ShowInfo('privacyText')" style="font-size:12px;">Privacy</span>
|
||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
@ -441,7 +444,7 @@ if ($display_mode != "build") {
|
||||||
<!-- Public View Functions -->
|
<!-- Public View Functions -->
|
||||||
<script src="/js/publicView.js"></script>
|
<script src="/js/publicView.js"></script>
|
||||||
<?php } ?>
|
<?php } ?>
|
||||||
<?php if ($_GET['adminoverride'] != "noadsortracking") { include_once("php/google/analytics.php"); } ?>
|
<?php if (!isset($_GET['adminoverride']) || $_GET['adminoverride'] != "noadsortracking") { include_once("php/google/analytics.php"); } ?>
|
||||||
<script>
|
<script>
|
||||||
var aboutText = termsText = privacyText = loginForm = forgotForm = exportForm = importForm = "Loading...";
|
var aboutText = termsText = privacyText = loginForm = forgotForm = exportForm = importForm = "Loading...";
|
||||||
<?php if ($display_mode != "build") { ?>
|
<?php if ($display_mode != "build") { ?>
|
||||||
|
|
|
@ -4,7 +4,7 @@ require_once('config.php');
|
||||||
require_once(SITE_LOCATION . '/php/functions.php');
|
require_once(SITE_LOCATION . '/php/functions.php');
|
||||||
|
|
||||||
session_start();
|
session_start();
|
||||||
if ($_SESSION['user'] > 0) {
|
if (isset($_SESSION['user']) && $_SESSION['user'] > 0) {
|
||||||
if ($_GET['action'] == 'getall') {
|
if ($_GET['action'] == 'getall') {
|
||||||
Get_Dictionaries(true);
|
Get_Dictionaries(true);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue