diff --git a/app/Controllers/Api/Images/CheckAll.php b/app/Controllers/Api/Images/CheckAll.php new file mode 100644 index 0000000..90bb9e4 --- /dev/null +++ b/app/Controllers/Api/Images/CheckAll.php @@ -0,0 +1,13 @@ +Auth::userid())); + header('Location: /fav_authors'); + } +} +?> diff --git a/app/Controllers/ApiController.php b/app/Controllers/ApiController.php index 4df9d7d..8a8e7fe 100644 --- a/app/Controllers/ApiController.php +++ b/app/Controllers/ApiController.php @@ -9,6 +9,7 @@ use \App\Controllers\Api\Subscribe as SubscribeUser; use \App\Controllers\Api\Images\{Upload}; use \App\Controllers\Api\Images\Rate as PhotoVote; use \App\Controllers\Api\Images\Compress as PhotoCompress; +use \App\Controllers\Api\Images\CheckAll as PhotoCheckAll; use \App\Controllers\Api\Images\Comments\Create as PhotoComment; use \App\Controllers\Api\Images\Comments\Load as PhotoCommentLoad; use \App\Controllers\Api\Images\Comments\Rate as PhotoCommentVote; @@ -51,6 +52,9 @@ class ApiController public static function subscribeuser() { return new SubscribeUser(); } + public static function checkallphotos() { + return new PhotoCheckAll(); + } } \ No newline at end of file diff --git a/app/Core/Routes.php b/app/Core/Routes.php index 4e662f0..ff6e2d0 100644 --- a/app/Core/Routes.php +++ b/app/Core/Routes.php @@ -47,6 +47,7 @@ class Routes Router::get('/api/photo/compress', 'ApiController@photocompress'); Router::post('/api/photo/getcomments/$id', 'ApiController@photocommentload'); Router::get('/api/photo/vote', 'ApiController@photovote'); + Router::get('/api/photo/checkall', 'ApiController@checkallphotos'); Router::get('/api/photo/comment/rate', 'ApiController@photocommentvote'); if ($user->i('admin') > 0) { Router::any('/admin', 'AdminController@index'); diff --git a/views/pages/FavAuthors.php b/views/pages/FavAuthors.php index 92410f7..0c9698c 100644 --- a/views/pages/FavAuthors.php +++ b/views/pages/FavAuthors.php @@ -22,24 +22,29 @@ use \App\Models\{User, Photo};
+ |
-
+
|
- '.htmlspecialchars($p['place']).' - '.htmlspecialchars($p['postbody']).' -'.Date::zmdate($p['timeupload']).' '.htmlspecialchars($p->i('place')).' + '.htmlspecialchars($p->i('postbody')).' +'.Date::zmdate($p->i('timeupload')).' |