From f9962f02f3a15b7e217d526233ac37861f5ae8bd Mon Sep 17 00:00:00 2001 From: flashwave Date: Sat, 16 May 2020 22:37:42 +0000 Subject: [PATCH] // forgot to empty this file --- public/news.php | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/public/news.php b/public/news.php index 69fd62f8..41cc616f 100644 --- a/public/news.php +++ b/public/news.php @@ -1,30 +1,2 @@ (int)$_GET['n'], - ]); -} - -$feedMode = trim($_SERVER['PATH_INFO'] ?? '', '/'); -$categoryId = !empty($_GET['c']) && is_string($_GET['c']) ? (int)$_GET['c'] : 0; -$postId = !empty($_GET['p']) && is_string($_GET['p']) ? (int)$_GET['p'] : 0; - -if(!empty($feedMode) && in_array($feedMode, ['rss', 'atom'])) { - $location = empty($categoryId) ? url("news-feed-{$feedMode}") : url("news-category-feed-{$feedMode}", ['category' => $categoryId]); -} - -if($postId > 0) - $location = url('news-post', ['post' => $postId]); -if($categoryId > 0) - $location = url('news-category', ['category' => $categoryId, 'page' => Pagination::param('page')]); - -redirect($location);