Tweaks to remove warnings; Update footer

This commit is contained in:
Robbie Antenesse 2019-06-13 11:11:42 -06:00
parent 73a37977bc
commit 35fa6f01e6
2 changed files with 8 additions and 5 deletions

View File

@ -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.
$_SESSION['loginfailures'] = 0;
} 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.";
$hoverlockoutmessage = str_replace("\\n", "\n", $alertlockoutmessage);
}
}
require_once(SITE_LOCATION . '/php/notificationconditiontree.php');
@ -419,7 +422,7 @@ if ($display_mode != "build") {
</contents>
<footer>
<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>
</footer>
@ -441,7 +444,7 @@ if ($display_mode != "build") {
<!-- Public View Functions -->
<script src="/js/publicView.js"></script>
<?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>
var aboutText = termsText = privacyText = loginForm = forgotForm = exportForm = importForm = "Loading...";
<?php if ($display_mode != "build") { ?>

View File

@ -4,7 +4,7 @@ require_once('config.php');
require_once(SITE_LOCATION . '/php/functions.php');
session_start();
if ($_SESSION['user'] > 0) {
if (isset($_SESSION['user']) && $_SESSION['user'] > 0) {
if ($_GET['action'] == 'getall') {
Get_Dictionaries(true);
}