Skip to content

Instantly share code, notes, and snippets.

@belukov
Last active October 6, 2016 07:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save belukov/ad7b02923e0e60f8d080 to your computer and use it in GitHub Desktop.
Save belukov/ad7b02923e0e60f8d080 to your computer and use it in GitHub Desktop.
bitrix авторизация под админом
<?
define("NO_KEEP_STATISTIC", true);
define("NOT_CHECK_PERMISSIONS", 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