Beispiel #1
0
 function InitPanelIcons()
 {
     static $bPanelIcons = false;
     if ($bPanelIcons) {
         return;
     }
     $bPanelIcons = true;
     /** @noinspection PhpUnusedLocalVariableInspection */
     global $DOCUMENT_ROOT, $APPLICATION, $USER, $MESS;
     //don't remove!
     if (isset($USER) && is_object($USER) && $USER->IsAuthorized()) {
         if (file_exists($_SERVER["DOCUMENT_ROOT"] . FX_PERSONAL_ROOT . "/php_interface/include/add_top_panel.php")) {
             include $_SERVER["DOCUMENT_ROOT"] . FX_PERSONAL_ROOT . "/php_interface/include/add_top_panel.php";
         }
         CTopPanel::GetStandardButtons();
         foreach (GetModuleEvents("main", "OnPanelCreate", true) as $arEvent) {
             ExecuteModuleEventEx($arEvent);
         }
     }
 }
Beispiel #2
0
	function InitPanelIcons()
	{
		static $bPanelIcons = false;
		if ($bPanelIcons)
			return;
		$bPanelIcons = true;

		global $DOCUMENT_ROOT, $APPLICATION, $USER, $MESS; //don't remove!

		if(isset($USER) && is_object($USER) && $USER->IsAuthorized())
		{
			if(file_exists($_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/include/add_top_panel.php"))
				include($_SERVER["DOCUMENT_ROOT"].BX_PERSONAL_ROOT."/php_interface/include/add_top_panel.php");

			CTopPanel::GetStandardButtons();

			$db_events = GetModuleEvents("main", "OnPanelCreate");
			while($arEvent = $db_events->Fetch())
				ExecuteModuleEventEx($arEvent);
		}
	}