EngineGP/system/engine/services.php
Sergei Solovev 91c2b73c16 Closing tags for PSR-12 have been removed
Unpredictable result
2024-03-11 00:54:27 +03:00

36 lines
1.2 KiB
PHP

<?php
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['HTTP_HOST'] . '/404'));
// Подключение раздела
if (!in_array($section, array('cs', 'css', 'cssold', 'csgo', 'cs2', 'rust', 'mc', 'mta', 'samp', 'crmp', 'hosting', 'privileges', 'control'))) {
$title = 'Список услуг';
$html->nav($title);
$html->get('index', 'sections/services');
$html->pack('main');
} else {
$aNav = array(
'cs' => 'Counter-Srike: 1.6',
'css' => 'Counter-Srike: Source',
'cssold' => 'Counter-Srike: Source v34',
'csgo' => 'Counter-Srike: Global Offensive',
'cs2' => 'Counter-Srike: 2',
'rust' => 'RUST',
'mc' => 'MineCraft',
'mta' => 'GTA: MTA',
'samp' => 'GTA: SA-MP',
'crmp' => 'GTA: CR-MP',
'hosting' => 'виртуального хостинга',
'privileges' => 'привилегий на игровом сервере',
'control' => 'услуги "контроль"',
);
$title = 'Аренда ' . $aNav[$section];
$html->nav('Список услуг', $cfg['http'] . 'services');
$html->nav($title);
include(SEC . 'services/' . $section . '.php');
}