From ebcfe7720bde13a9e699f4791e66e6c67a5568d3 Mon Sep 17 00:00:00 2001
From: themohooks <81331307+themohooks@users.noreply.github.com>
Date: Thu, 18 Jul 2024 21:05:00 +0300
Subject: [PATCH] Add recently images page
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
спрос рождает предложение
---
app/Controllers/MainController.php | 5 +++
app/Core/Routes.php | 1 +
views/pages/Main.php | 2 +-
views/pages/Update.php | 66 ++++++++++++++++++++++++++++++
4 files changed, 73 insertions(+), 1 deletion(-)
create mode 100644 views/pages/Update.php
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 '
+ ';
+ }
+ ?>
+
+
+ + + |
+ ||