uawdijnntqw1x1x1
IP : 18.220.241.63
Hostname : axolotl
Kernel : Linux axolotl 4.9.0-13-amd64 #1 SMP Debian 4.9.228-1 (2020-07-05) x86_64
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,
OS : Linux
PATH:
/
var
/
www
/
axolotl
/
data
/
www
/
yar.axolotls.ru
/
bitrix
/
modules
/
main
/
tools
/
get_user.php
/
/
<? /* ############################################## # Bitrix: SiteManager # # Copyright (c) 2002-2016 Bitrix # # http://www.bitrix.ru # # mailto:admin@bitrix.ru # ############################################## */ /** * @global CUser $USER * @global CMain $APPLICATION */ use Bitrix\Main\Loader, Bitrix\Main\ModuleManager, Bitrix\Main\Web\Json; define("NOT_CHECK_PERMISSIONS", true); define("STOP_STATISTICS", true); $publicMode = (defined("SELF_FOLDER_URL") ? true : false); require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php"); $ajaxMode = (isset($_REQUEST['ajax']) && is_string($_REQUEST['ajax']) && $_REQUEST['ajax'] == 'Y'); $useSiteFormat = (isset($_REQUEST['format']) && is_string($_REQUEST['format']) && $_REQUEST['format'] == 'Y'); $getRawData = false; if ($ajaxMode) $getRawData = (isset($_REQUEST['raw']) && is_string($_REQUEST['raw']) && $_REQUEST['raw'] == 'Y'); $ID = intval($_REQUEST["ID"]); $auth = false; if($USER->IsAuthorized()) { $auth = ($USER->CanDoOperation('view_subordinate_users') || $USER->CanDoOperation('view_all_users')); if(!$auth) { if(ModuleManager::isModuleInstalled("intranet") && Loader::includeModule("socialnetwork")) { $auth = CSocNetUser::CanProfileView($USER->GetID(), $ID); } } } $res = ''; if($auth) { $rsUser = CUser::GetByID($ID); if($arUser = $rsUser->Fetch()) { if ($useSiteFormat) { $res = CUser::FormatName(CSite::GetNameFormat(), $arUser, true, !$getRawData); } else { $res = htmlspecialcharsbx('('.$arUser["LOGIN"].') '.$arUser["NAME"].' '.$arUser["LAST_NAME"]); // old format } if (!$ajaxMode) { if ($publicMode) { $res = '['.$arUser["ID"].'] '.$res; } else { $res = '[<a title="'.GetMessage("MAIN_EDIT_USER_PROFILE").'" class="tablebodylink" href="/bitrix/admin/user_edit.php?ID='.$arUser["ID"].'&lang='.LANG.'">'.$arUser["ID"].'</a>] '.$res; } } } } if ($ajaxMode) { $APPLICATION->RestartBuffer(); header('Content-Type: application/json'); echo Json::encode(array( 'ID' => $ID, 'NAME' => $res )); } else { $strName = preg_replace("/[^a-z0-9_\\[\\]:]/i", "", $_REQUEST["strName"]); ?> <script type="text/javascript"> if (window.parent.document.getElementById("div_<?=$strName?>")) { window.parent.document.getElementById("div_<?=$strName?>").innerHTML = '<?=CUtil::JSEscape($res)?>'; } </script> <? } require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_admin_after.php");
/var/www/axolotl/data/www/yar.axolotls.ru/bitrix/modules/main/tools/get_user.php