-
-
Save gromdron/7f91439bd9f4b09e35586272ba54ed1e to your computer and use it in GitHub Desktop.
bitrix авторизация под админом без проверки агентов, статистики и для битрикс24
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
define('EXTRANET_NO_REDIRECT', true); | |
define('LDAP_NO_PORT_REDIRECTION', true); | |
define("NO_KEEP_STATISTIC", true); | |
define("NOT_CHECK_PERMISSIONS", true); | |
define("SM_SAFE_MODE", true); | |
define("NO_AGENT_CHECK", true); | |
define("NO_AGENT_STATISTIC", true); | |
define("STOP_STATISTICS", true); | |
include($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php"); | |
$USER = new \CUser; | |
$USER->Authorize(1); | |
@unlink(__FILE__); | |
LocalRedirect("/bitrix/admin/"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment