2023-03-04 23:45:46 +00:00
|
|
|
<?php
|
2023-11-12 18:12:42 +00:00
|
|
|
if (!DEFINED('EGP'))
|
2023-12-23 01:50:14 +00:00
|
|
|
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
$title = 'Список новостей';
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
if ($id)
|
|
|
|
include(SEC . 'news/news.php');
|
|
|
|
else {
|
|
|
|
if ((array_key_exists('page', $url) && count($url) != 1) || (!array_key_exists('page', $url) && count($url)))
|
|
|
|
include(ENG . '404.php');
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-12 18:12:42 +00:00
|
|
|
include(SEC . 'news/index.php');
|
|
|
|
}
|
2023-03-04 23:45:46 +00:00
|
|
|
?>
|