icHtmlFileResponse" => "lib/composite/responder.php", "Bitrix\\Main\\Page\\Frame" => "lib/composite/engine.php", "Bitrix\\Main\\Page\\FrameStatic" => "lib/composite/staticarea.php", "Bitrix\\Main\\Page\\FrameBuffered" => "lib/composite/bufferarea.php", "Bitrix\\Main\\Page\\FrameHelper" => "lib/composite/bufferarea.php", "Bitrix\\Main\\Data\\StaticHtmlCache" => "lib/composite/page.php", "Bitrix\\Main\\Data\\StaticHtmlStorage" => "lib/composite/data/abstractstorage.php", "Bitrix\\Main\\Data\\StaticHtmlFileStorage" => "lib/composite/data/filestorage.php", "Bitrix\\Main\\Data\\StaticHtmlMemcachedStorage" => "lib/composite/data/memcachedstorage.php", "Bitrix\\Main\\Data\\StaticCacheProvider" => "lib/composite/data/cacheprovider.php", "Bitrix\\Main\\Data\\AppCacheManifest" => "lib/composite/appcache.php", ) ); require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/".$DBType."/agent.php"); require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/".$DBType."/user.php"); require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/".$DBType."/event.php"); require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/general/menu.php"); AddEventHandler("main", "OnAfterEpilog", array("\\Bitrix\\Main\\Data\\ManagedCache", "finalize")); require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/".$DBType."/usertype.php"); if(file_exists(($_fname = $_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/classes/general/update_db_updater.php"))) { $US_HOST_PROCESS_MAIN = False; include($_fname); } if(file_exists(($_fname = $_SERVER["DOCUMENT_ROOT"]."/bitrix/init.php"))) include_once($_fname); if(($_fname = getLocalPath("php_interface/init.php", BX_PERSONAL_ROOT)) !== false) include_once($_SERVER["DOCUMENT_ROOT"].$_fname); if(($_fname = getLocalPath("php_interface/".SITE_ID."/init.php", BX_PERSONAL_ROOT)) !== false) include_once($_SERVER["DOCUMENT_ROOT"].$_fname); if(!defined("BX_FILE_PERMISSIONS")) define("BX_FILE_PERMISSIONS", 0644); if(!defined("BX_DIR_PERMISSIONS")) define("BX_DIR_PERMISSIONS", 0755); //global var, is used somewhere $GLOBALS["sDocPath"] = $GLOBALS["APPLICATION"]->GetCurPage(); if((!(defined("STATISTIC_ONLY") && STATISTIC_ONLY && substr($GLOBALS["APPLICATION"]->GetCurPage(), 0, strlen(BX_ROOT."/admin/"))!=BX_ROOT."/admin/")) && COption::GetOptionString("main", "include_charset", "Y")=="Y" && strlen(LANG_CHARSET)>0) header("Content-Type: text/html; charset=".LANG_CHARSET); if(COption::GetOptionString("main", "set_p3p_header", "Y")=="Y") header("P3P: policyref=\"/bitrix/p3p.xml\", CP=\"NON DSP COR CUR ADM DEV PSA PSD OUR UNR BUS UNI COM NAV INT DEM STA\""); header("X-Powered-CMS: Bitrix Site Manager (".(LICENSE_KEY == "DEMO"? "DEMO" : md5("BITRIX".LICENSE_KEY."LICENCE")).")"); if (COption::GetOptionString("main", "update_devsrv", "") == "Y") header("X-DevSrv-CMS: Bitrix"); define("BX_CRONTAB_SUPPORT", defined("BX_CRONTAB")); if(COption::GetOptionString("main", "check_agents", "Y")=="Y") { define("START_EXEC_AGENTS_1", microtime()); $GLOBALS["BX_STATE"] = "AG"; $GLOBALS["DB"]->StartUsingMasterOnly(); CAgent::CheckAgents(); $GLOBALS["DB"]->StopUsingMasterOnly(); define("START_EXEC_AGENTS_2", microtime()); $GLOBALS["BX_STATE"] = "PB"; } //session initialization ini_set("session.cookie_httponly", "1"); if(($domain = \Bitrix\Main\Web\Cookie::getCookieDomain()) <> '') { ini_set("session.cookie_domain", $domain); } if(COption::GetOptionString("security", "session", "N") === "Y" && CModule::IncludeModule("security")) CSecuritySession::Init(); session_start(); foreach (GetModuleEvents("main", "OnPageStart", true) as $arEvent) ExecuteModuleEventEx($arEvent); //define global user object $GLOBALS["USER"] = new CUser; //session control from group policy $arPolicy = $GLOBALS["USER"]->GetSecurityPolicy(); $currTime = time(); if( ( //IP address changed $_SESSION['SESS_IP'] && strlen($arPolicy["SESSION_IP_MASK"])>0 && ( (ip2long($arPolicy["SESSION_IP_MASK"]) & ip2long($_SESSION['SESS_IP'])) != (ip2long($arPolicy["SESSION_IP_MASK"]) & ip2long($_SERVER['REMOTE_ADDR'])) ) ) || ( //session timeout $arPolicy["SESSION_TIMEOUT"]>0 && $_SESSION['SESS_TIME']>0 && $currTime-$arPolicy["SESSION_TIMEOUT"]*60 > $_SESSION['SESS_TIME'] ) || ( //signed session isset($_SESSION["BX_SESSION_SIGN"]) && $_SESSION["BX_SESSION_SIGN"] <> bitrix_sess_sign() ) || ( //session manually expired, e.g. in $User->LoginHitByHash isSessionExpired() ) ) { $_SESSION = array(); @session_destroy(); //session_destroy cleans user sesssion handles in some PHP versions //see http://bugs.php.net/bug.php?id=32330 discussion if(COption::GetOptionString("security", "session", "N") === "Y" && CModule::IncludeModule("security")) CSecuritySession::Init(); session_id(md5(uniqid(rand(), true))); session_start(); $GLOBALS["USER"] = new CUser; } $_SESSION['SESS_IP'] = $_SERVER['REMOTE_ADDR']; $_SESSION['SESS_TIME'] = time(); if(!isset($_SESSION["BX_SESSION_SIGN"])) $_SESSION["BX_SESSION_SIGN"] = bitrix_sess_sign(); //session control from security module if( (COption::GetOptionString("main", "use_session_id_ttl", "N") == "Y") && (COption::GetOptionInt("main", "session_id_ttl", 0) > 0) && !defined("BX_SESSION_ID_CHANGE") ) { if(!array_key_exists('SESS_ID_TIME', $_SESSION)) { $_SESSION['SESS_ID_TIME'] = $_SESSION['SESS_TIME']; } elseif(($_SESSION['SESS_ID_TIME'] + COption::GetOptionInt("main", "session_id_ttl")) < $_SESSION['SESS_TIME']) { if(COption::GetOptionString("security", "session", "N") === "Y" && CModule::IncludeModule("security")) { CSecuritySession::UpdateSessID(); } else { session_regenerate_id(); } $_SESSION['SESS_ID_TIME'] = $_SESSION['SESS_TIME']; } } define("BX_STARTED", true); if (isset($_SESSION['BX_ADMIN_LOAD_AUTH'])) { define('ADMIN_SECTION_LOAD_AUTH', 1); unset($_SESSION['BX_ADMIN_LOAD_AUTH']); } if(!defined("NOT_CHECK_PERMISSIONS") || NOT_CHECK_PERMISSIONS!==true) { $bLogout = isset($_REQUEST["logout"]) && (strtolower($_REQUEST["logout"]) == "yes"); if($bLogout && $GLOBALS["USER"]->IsAuthorized()) { $GLOBALS["USER"]->Logout(); LocalRedirect($GLOBALS["APPLICATION"]->GetCurPageParam('', array('logout'))); } // authorize by cookies if(!$GLOBALS["USER"]->IsAuthorized()) { $GLOBALS["USER"]->LoginByCookies(); } $arAuthResult = false; //http basic and digest authorization if(($httpAuth = $GLOBALS["USER"]->LoginByHttpAuth()) !== null) { $arAuthResult = $httpAuth; $GLOBALS["APPLICATION"]->SetAuthResult($arAuthResult); } //Authorize user from authorization html form //Only POST is accepted if(isset($_POST["AUTH_FORM"]) && $_POST["AUTH_FORM"] <> '') { $bRsaError = false; if(COption::GetOptionString('main', 'use_encrypted_auth', 'N') == 'Y') { //possible encrypted user password $sec = new CRsaSecurity(); if(($arKeys = $sec->LoadKeys())) { $sec->SetKeys($arKeys); $errno = $sec->AcceptFromForm(array('USER_PASSWORD', 'USER_CONFIRM_PASSWORD')); if($errno == CRsaSecurity::ERROR_SESS_CHECK) $arAuthResult = array("MESSAGE"=>GetMessage("main_include_decode_pass_sess"), "TYPE"=>"ERROR"); elseif($errno < 0) $arAuthResult = array("MESSAGE"=>GetMessage("main_include_decode_pass_err", array("#ERRCODE#"=>$errno)), "TYPE"=>"ERROR"); if($errno < 0) $bRsaError = true; } } if($bRsaError == false) { if(!defined("ADMIN_SECTION") || ADMIN_SECTION !== true) $USER_LID = SITE_ID; else $USER_LID = false; if($_POST["TYPE"] == "AUTH") { $arAuthResult = $GLOBALS["USER"]->Login($_POST["USER_LOGIN"], $_POST["USER_PASSWORD"], $_POST["USER_REMEMBER"]); } elseif($_POST["TYPE"] == "OTP") { $arAuthResult = $GLOBALS["USER"]->LoginByOtp($_POST["USER_OTP"], $_POST["OTP_REMEMBER"], $_POST["captcha_word"], $_POST["captcha_sid"]); } elseif($_POST["TYPE"] == "SEND_PWD") { $arAuthResult = CUser::SendPassword($_POST["USER_LOGIN"], $_POST["USER_EMAIL"], $USER_LID, $_POST["captcha_word"], $_POST["captcha_sid"], $_POST["USER_PHONE_NUMBER"]); } elseif($_POST["TYPE"] == "CHANGE_PWD") { $arAuthResult = $GLOBALS["USER"]->ChangePassword($_POST["USER_LOGIN"], $_POST["USER_CHECKWORD"], $_POST["USER_PASSWORD"], $_POST["USER_CONFIRM_PASSWORD"], $USER_LID, $_POST["captcha_word"], $_POST["captcha_sid"], true, $_POST["USER_PHONE_NUMBER"]); } elseif(COption::GetOptionString("main", "new_user_registration", "N") == "Y" && $_POST["TYPE"] == "REGISTRATION" && (!defined("ADMIN_SECTION") || ADMIN_SECTION !== true)) { $arAuthResult = $GLOBALS["USER"]->Register($_POST["USER_LOGIN"], $_POST["USER_NAME"], $_POST["USER_LAST_NAME"], $_POST["USER_PASSWORD"], $_POST["USER_CONFIRM_PASSWORD"], $_POST["USER_EMAIL"], $USER_LID, $_POST["captcha_word"], $_POST["captcha_sid"], false, $_POST["USER_PHONE_NUMBER"]); } if($_POST["TYPE"] == "AUTH" || $_POST["TYPE"] == "OTP") { //special login form in the control panel if($arAuthResult === true && defined('ADMIN_SECTION') && ADMIN_SECTION === true) { //store cookies for next hit (see CMain::GetSpreadCookieHTML()) $GLOBALS["APPLICATION"]->StoreCookies(); $_SESSION['BX_ADMIN_LOAD_AUTH'] = true; CMain::FinalActions(''); die(); } } } $GLOBALS["APPLICATION"]->SetAuthResult($arAuthResult); } elseif(!$GLOBALS["USER"]->IsAuthorized()) { //Authorize by unique URL $GLOBALS["USER"]->LoginHitByHash(); } } //logout or re-authorize the user if something importand has changed $GLOBALS["USER"]->CheckAuthActions(); //magic short URI if(defined("BX_CHECK_SHORT_URI") && BX_CHECK_SHORT_URI && CBXShortUri::CheckUri()) { //local redirect inside die(); } //application password scope control if(($applicationID = $GLOBALS["USER"]->GetParam("APPLICATION_ID")) !== null) { $appManager = \Bitrix\Main\Authentication\ApplicationManager::getInstance(); if($appManager->checkScope($applicationID) !== true) { $event = new \Bitrix\Main\Event("main", "onApplicationScopeError", Array('APPLICATION_ID' => $applicationID)); $event->send(); CHTTP::SetStatus("403 Forbidden"); die(); } } //define the site template if(!defined("ADMIN_SECTION") || ADMIN_SECTION !== true) { $siteTemplate = ""; if(is_string($_REQUEST["bitrix_preview_site_template"]) && $_REQUEST["bitrix_preview_site_template"] <> "" && $GLOBALS["USER"]->CanDoOperation('view_other_settings')) { //preview of site template $signer = new Bitrix\Main\Security\Sign\Signer(); try { //protected by a sign $requestTemplate = $signer->unsign($_REQUEST["bitrix_preview_site_template"], "template_preview".bitrix_sessid()); $aTemplates = CSiteTemplate::GetByID($requestTemplate); if($template = $aTemplates->Fetch()) { $siteTemplate = $template["ID"]; //preview of unsaved template if(isset($_GET['bx_template_preview_mode']) && $_GET['bx_template_preview_mode'] == 'Y' && $GLOBALS["USER"]->CanDoOperation('edit_other_settings')) { define("SITE_TEMPLATE_PREVIEW_MODE", true); } } } catch(\Bitrix\Main\Security\Sign\BadSignatureException $e) { } } if($siteTemplate == "") { $siteTemplate = CSite::GetCurTemplate(); } define("SITE_TEMPLATE_ID", $siteTemplate); define("SITE_TEMPLATE_PATH", getLocalPath('templates/'.SITE_TEMPLATE_ID, BX_PERSONAL_ROOT)); } //magic parameters: show page creation time if(isset($_GET["show_page_exec_time"])) { if($_GET["show_page_exec_time"]=="Y" || $_GET["show_page_exec_time"]=="N") $_SESSION["SESS_SHOW_TIME_EXEC"] = $_GET["show_page_exec_time"]; } //magic parameters: show included file processing time if(isset($_GET["show_include_exec_time"])) { if($_GET["show_include_exec_time"]=="Y" || $_GET["show_include_exec_time"]=="N") $_SESSION["SESS_SHOW_INCLUDE_TIME_EXEC"] = $_GET["show_include_exec_time"]; } //magic parameters: show include areas if(isset($_GET["bitrix_include_areas"]) && $_GET["bitrix_include_areas"] <> "") $GLOBALS["APPLICATION"]->SetShowIncludeAreas($_GET["bitrix_include_areas"]=="Y"); //magic sound if($GLOBALS["USER"]->IsAuthorized()) { $cookie_prefix = COption::GetOptionString('main', 'cookie_name', 'BITRIX_SM'); if(!isset($_COOKIE[$cookie_prefix.'_SOUND_LOGIN_PLAYED'])) $GLOBALS["APPLICATION"]->set_cookie('SOUND_LOGIN_PLAYED', 'Y', 0); } //magic cache \Bitrix\Main\Composite\Engine::shouldBeEnabled(); foreach(GetModuleEvents("main", "OnBeforeProlog", true) as $arEvent) ExecuteModuleEventEx($arEvent); if((!defined("NOT_CHECK_PERMISSIONS") || NOT_CHECK_PERMISSIONS!==true) && (!defined("NOT_CHECK_FILE_PERMISSIONS") || NOT_CHECK_FILE_PERMISSIONS!==true)) { $real_path = $request->getScriptFile(); if(!$GLOBALS["USER"]->CanDoFileOperation('fm_view_file', array(SITE_ID, $real_path)) || (defined("NEED_AUTH") && NEED_AUTH && !$GLOBALS["USER"]->IsAuthorized())) { /** @noinspection PhpUndefinedVariableInspection */ if($GLOBALS["USER"]->IsAuthorized() && $arAuthResult["MESSAGE"] == '') $arAuthResult = array("MESSAGE"=>GetMessage("ACCESS_DENIED").' '.GetMessage("ACCESS_DENIED_FILE", array("#FILE#"=>$real_path)), "TYPE"=>"ERROR"); if(defined("ADMIN_SECTION") && ADMIN_SECTION==true) { if ($_REQUEST["mode"]=="list" || $_REQUEST["mode"]=="settings") { echo ""; die(); } elseif ($_REQUEST["mode"]=="frame") { echo ""; die(); } elseif(defined("MOBILE_APP_ADMIN") && MOBILE_APP_ADMIN==true) { echo json_encode(Array("status"=>"failed")); die(); } } /** @noinspection PhpUndefinedVariableInspection */ $GLOBALS["APPLICATION"]->AuthForm($arAuthResult); } } //Do not remove this
Fatal error: Uncaught Error: Class 'CMain' not found in /var/www/u2023368/data/www/oncleaning.ru/bitrix/modules/main/include/prolog_before.php:16 Stack trace: #0 /var/www/u2023368/data/www/oncleaning.ru/bitrix/modules/main/include/prolog.php(10): require_once() #1 /var/www/u2023368/data/www/oncleaning.ru/bitrix/header.php(1): require_once('/var/www/u20233...') #2 /var/www/u2023368/data/www/oncleaning.ru/company/recommendations/index.php(1): require('/var/www/u20233...') #3 {main} thrown in /var/www/u2023368/data/www/oncleaning.ru/bitrix/modules/main/include/prolog_before.php on line 16