b59003e559
This update contains code reformatting to meet PHP standards.
15 lines
393 B
PHP
15 lines
393 B
PHP
<?php
|
|
if (!DEFINED('EGP'))
|
|
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
|
|
|
|
$title = 'Список новостей';
|
|
|
|
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');
|
|
|
|
include(SEC . 'news/index.php');
|
|
}
|
|
?>
|