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
|
|
|
// Проверка на авторизацию
|
|
|
|
sys::noauth();
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$sql->query('SELECT `id` FROM `users` WHERE `id`="'.$user['id'].'" AND `help`="0" LIMIT 1');
|
|
|
|
if(!$sql->num())
|
|
|
|
{
|
|
|
|
$html->nav('Техническая поддержка');
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$html->get('noaccess', 'sections/help');
|
|
|
|
$html->pack('main');
|
|
|
|
}else{
|
|
|
|
// Подключение раздела
|
|
|
|
if(!in_array($section, array('create', 'dialog', 'open', 'close', 'notice', 'upload')))
|
|
|
|
include(ENG.'404.php');
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$aNav = array(
|
|
|
|
'help' => 'Техническая поддержка',
|
|
|
|
'create' => 'Создание вопроса',
|
|
|
|
'dialog' => 'Решение вопроса',
|
|
|
|
'open' => 'Список открытых вопросов',
|
|
|
|
'close' => 'Список закрытых вопросов'
|
|
|
|
);
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
$title = isset($aNav[$section]) ? $aNav[$section] : $section;
|
|
|
|
$html->nav($aNav['help'], $cfg['http'].'help/section/open');
|
|
|
|
$html->nav($title);
|
2023-03-04 23:45:46 +00:00
|
|
|
|
2023-11-11 20:56:12 +00:00
|
|
|
include(SEC.'help/'.$section.'.php');
|
|
|
|
}
|
2023-03-04 23:45:46 +00:00
|
|
|
?>
|