2023-03-04 23:45:46 +00:00
|
|
|
<?php
|
2023-11-11 20:56:12 +00:00
|
|
|
if(!DEFINED('EGP'))
|
|
|
|
exit(header('Refresh: 0; URL=http://'.$_SERVER['SERVER_NAME'].'/404'));
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
// Подключение раздела
|
|
|
|
if(!in_array($section, array('auth', 'recovery', 'replenish', 'signup', 'lk', 'quit')))
|
|
|
|
include(ENG.'404.php');
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$aTitle = array(
|
|
|
|
'auth' => 'Авторизация',
|
|
|
|
'recovery' => 'Восстановление',
|
|
|
|
'replenish' => 'Пополнение баланса',
|
|
|
|
'signup' => 'Регистрация',
|
|
|
|
'lk' => 'Личный кабинет',
|
|
|
|
'quit' => 'Выход'
|
|
|
|
);
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$title = $aTitle[$section];
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
if($section == 'lk')
|
|
|
|
$html->nav($title, $cfg['http'].'user/section/lk');
|
|
|
|
else
|
|
|
|
$html->nav($title);
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
include(SEC.'user/'.$section.'.php');
|
2023-03-04 23:45:46 +00:00
|
|
|
?>
|