| Current Path : /var/www/element/data/www/greenpr.ru/bitrix3/modules/main/tools/ |
| Current File : /var/www/element/data/www/greenpr.ru/bitrix3/modules/main/tools/get_user.php |
<?
/*
##############################################
# Bitrix: SiteManager #
# Copyright (c) 2002-2009 Bitrix #
# http://www.bitrix.ru #
# mailto:admin@bitrix.ru #
##############################################
*/
define("STOP_STATISTICS", true);
require_once($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_admin_before.php");
if(!($USER->CanDoOperation('view_subordinate_users') || $USER->CanDoOperation('view_all_users')))
$APPLICATION->AuthForm(GetMessage("ACCESS_DENIED"));
$rsUsers = CUser::GetList($by, $order, array("ID" => $ID));
if($arUser = $rsUsers->Fetch())
$res = "[<a title='".GetMessage("MAIN_EDIT_USER_PROFILE")."' class='tablebodylink' href='/bitrix/admin/user_edit.php?ID=".$arUser["ID"]."&lang=".LANG."'>".$arUser["ID"]."</a>] (".htmlspecialchars($arUser["LOGIN"]).") ".htmlspecialchars($arUser["NAME"])." ".htmlspecialchars($arUser["LAST_NAME"]);
else
$res = " ".GetMessage("MAIN_NOT_FOUND");
require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/prolog_popup_admin.php");
$strName = preg_replace("/[^a-z0-9_\\[\\]]/i", "", $_REQUEST["strName"]);
?>
<script type="text/javascript">
window.parent.document.getElementById("div_<?echo $strName?>").innerHTML="<?echo $res?>";
</script>
<?require($_SERVER["DOCUMENT_ROOT"]."/bitrix/modules/main/include/epilog_popup_admin.php");?>