diff --git a/app/Controllers/MainController.php b/app/Controllers/MainController.php index da4e03d..b622d79 100644 --- a/app/Controllers/MainController.php +++ b/app/Controllers/MainController.php @@ -26,6 +26,11 @@ class MainController { Page::set('Rules'); + } + public static function update() + { + Page::set('Update'); + } public static function logout() diff --git a/app/Core/Routes.php b/app/Core/Routes.php index 8e283a5..aa6dc1e 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -20,6 +20,7 @@ class Routes Router::post('/api/register', 'ApiController@register'); Router::get('/about', 'MainController@about'); Router::get('/rules', 'MainController@rules'); + Router::get('/update', 'MainController@update'); diff --git a/views/pages/Main.php b/views/pages/Main.php index e9da8c3..2d0a6c0 100644 --- a/views/pages/Main.php +++ b/views/pages/Main.php @@ -123,7 +123,7 @@ foreach ($photos as $pd) {
-

Недавно добавленные фотографии

+

Недавно добавленные фотографии

+ + + + + + + + + + + +
+ + + + + + + + + +
+

Новые фотографии за 72 часа

+ + + =:time ORDER BY timeupload DESC', array(':time'=>time()-259200)); + foreach ($photos as $p) { + $photouser = new \App\Models\User($p['user_id']); + echo ''; + } + ?> + +
+ + +
+ + + + \ No newline at end of file