Current Path : /home/bitrix/ext_www/klimatlend.ua/ajax/ |
Current File : /home/bitrix/ext_www/klimatlend.ua/ajax/auth.php |
<?require($_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_before.php"); IncludeTemplateLangFile($_SERVER["DOCUMENT_ROOT"] . "/local/templates/" . SITE_TEMPLATE_ID . "/template_old.php"); global $USER; //if (!is_object($USER)) $USER = new CUser; $arAuthResult = $USER->Login($_POST['login'], $_POST['pass'], "Y"); $arGroups = $USER->GetUserGroupArray(); if(in_array(5,$arGroups)):?> oksplit<?=SITE_DIR?>partners/ <?else:?> errorsplit<?= GetMessage("ERROR_PARTNER");?> <?endif ?>