Skip to content

Instantly share code, notes, and snippets.

@dnikonov
Created February 14, 2020 11:12
Show Gist options
  • Save dnikonov/03d6ff1699ddb163b07f39cc1cdef013 to your computer and use it in GitHub Desktop.
Save dnikonov/03d6ff1699ddb163b07f39cc1cdef013 to your computer and use it in GitHub Desktop.
<?
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_before.php");
global $USER;
$USER->Authorize(1);
@unlink(__FILE__);
LocalRedirect("/bitrix/admin/");
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_after.php");
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment