diff --git a/static/js/index.js b/static/js/index.js index dba393c..7fdc917 100644 --- a/static/js/index.js +++ b/static/js/index.js @@ -22,14 +22,6 @@ $(document).ready(function() }); - $(window).on('load resize', function() - { - var list = $('#idx-regions-list'); - var h = list.closest('table').height() - list.position().top + 40; - list.css('height', h + 'px'); - }); - - $('#loadmore').on('click', LoadRecentPhotos).click(); $('#newrand' ).on('click', LoadRandomPhotos).click(); @@ -71,25 +63,6 @@ $(document).ready(function() }); - $('#loginbtn').on('click', function() - { - var username = $('#username').val().trim(); - var password = $('#password').val().trim(); - - if (username != '' && username != '') - { - $('#loginbtn').prop('disabled', true).val(_text['IX_LOGGING']); - - $.post('/api.php?action=check-login', { username: username, password: password, remember: $('#remember').is('checked') }, function(r) - { - if (r == 0) - $('#loginform').submit(); - else window.location.reload(); - }) - .fail(function(jx) { if (jx.responseText != '') alert(jx.responseText); }); - } - }); - $('#mobile-menu').on('click', function() { diff --git a/views/pages/@footer.latte b/views/pages/@footer.latte new file mode 100644 index 0000000..f339f0c --- /dev/null +++ b/views/pages/@footer.latte @@ -0,0 +1,12 @@ +{block footer} + +
Aloha, Hawaii! | PHP {phpversion()} | MySQL {$mysqlversion} | Версия {$lastcommit}
+ Главная Личный кабинет Правила О сервере
+ {if explode('/', $_SERVER['REQUEST_URI'])[1] === 'photo'}
+
|
+
+{block content}{/block} + | +
- О сервере = NGALLERY['root']['title'] ?>-=NGALLERY['root']['description']?> - |
-
The requested page not found on server.
{$_SERVER['REQUEST_URI']}+ + +