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}

+ Главная     Личный кабинет     Правила     О сервере
+ + + + + + +{/block} \ No newline at end of file diff --git a/views/pages/@head.latte b/views/pages/@head.latte new file mode 100644 index 0000000..fcda323 --- /dev/null +++ b/views/pages/@head.latte @@ -0,0 +1,125 @@ +{block head} + + + j + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ +
+ + +{/block} diff --git a/views/pages/@layout.latte b/views/pages/@layout.latte new file mode 100644 index 0000000..275643c --- /dev/null +++ b/views/pages/@layout.latte @@ -0,0 +1,110 @@ + + + + +{include "@head.latte"} + + +
+ + + + +{if explode('/', $_SERVER['REQUEST_URI'])[1] != 'photo'} + + + +{/if} + + + + {include "@footer.latte"} + + + +
+ {if explode('/', $_SERVER['REQUEST_URI'])[1] === 'photo'} + {$ngallery['root']['title']} + {/if} + +
{$ngallery['root']['title']}{$ngallery['root']['title']}
+{block content}{/block} +
+ + + + diff --git a/views/pages/About.php b/views/pages/About.php deleted file mode 100644 index 3bdb905..0000000 --- a/views/pages/About.php +++ /dev/null @@ -1,79 +0,0 @@ - - - - - - - - - - - - -
- - - - - - - - -
-

О сервере

-

- -
-

Общая информация

-
    -
  • Зарегистрировано пользователей:
  • -
  • Опубликовано фотографий:
  • -
  • Пользователей онлайн: =:time-300 ORDER BY online DESC', array(':time'=>time()))[0]['COUNT(*)'];?>
  • -
-
-
-

Администраторы

- -
-
-

Фотомодераторы

- -
-
-

Модераторы

- -
-
- -
- - - - - \ No newline at end of file diff --git a/views/pages/Errors/404.latte b/views/pages/Errors/404.latte new file mode 100644 index 0000000..e704989 --- /dev/null +++ b/views/pages/Errors/404.latte @@ -0,0 +1,29 @@ + + + +Server Error + + + +
+
+

Not Found

+ +

The requested page not found on server.


+
{$_SERVER['REQUEST_URI']}
+ + +
+
\ No newline at end of file