EngineGP/system/data/acpengine.php
2023-05-05 04:17:19 +03:00

52 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
if (!DEFINED('EGP'))
exit(header('Refresh: 0; URL=http://' . $_SERVER['SERVER_NAME'] . '/404'));
// Массив главных разделов
$aRoute = array(
'system',
'users',
'units',
'tarifs',
'addons',
'servers',
'control',
'hosting',
'web',
'promo',
'notice',
'news',
'wiki',
'boost',
'pages',
'letter',
'logs',
'cashback',
'jobs'
);
// Массив регулярных выражений
$aValid = array(
'login' => '/^[A-Za-z0-9_]{4,16}$/',
'mail' => '/^([a-z0-9_\.-])+@[a-z0-9-]+\.([a-z]{2,4}\.)?[a-z]{2,4}$/i',
'name' => '/^[А-Я]{1,1}[а-я]{2,15}$/u',
'lastname' => '/^[А-Я]{1,1}[а-я]{2,15}$/u',
'patronymic' => '/^[А-Я]{1,1}[а-я]{2,15}$/u',
'phone' => '/^380+[0-9]{9,9}$|^77+[0-9]{9,9}$|^79+[0-9]{9,9}$|^375+[0-9]{9,9}$/m',
'contacts' => '/^(http|https):\/\/(new\.vk|vk)\.com\/[A-Za-z\_\.]{1,2}[A-Za-z0-9\_\.]{4,32}$|^[A-Za-z][A-Za-z0-9\.\-\_]{6,32}$/',
'passwd' => '/^[A-Za-z0-9]{6,26}$/',
'support_info' => '/[^а-яА-Я\s]+/msi',
'address' => '/[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\:[0-9]{1,5}/'
);
// Массив имен игр
$aGname = array(
'cs' => 'CS: 1.6',
'css' => 'CS: Source',
'csgo' => 'CS: Global Offensive',
'cssold' => 'CS: Source v34',
'mc' => 'MineCraft',
'mta' => 'GTA: MTA',
'samp' => 'GTA: SAMP'
);
?>