} #----------------------------------------------------------------------------- return Count($Node->Childs) ? $Node : FALSE; } #------------------------------------------------------------------------------- $ConfigNames = array(); #------------------------------------------------------------------------------- $HostsIDs = $GLOBALS['HOST_CONF']['HostsIDs']; #------------------------------------------------------------------------------- foreach (Array_Reverse($HostsIDs) as $HostID) { #----------------------------------------------------------------------------- $Path = SPrintF('%s/hosts/%s/config/Config.ini', SYSTEM_PATH, $HostID); #----------------------------------------------------------------------------- if (File_Exists($Path)) { #--------------------------------------------------------------------------- $Adding = Parse_Ini_File($Path); if (!$Adding) { return ERROR | Trigger_Error(500); } #--------------------------------------------------------------------------- Array_Union($ConfigNames, $Adding); } } #------------------------------------------------------------------------------- $Links['ConfigNames'] =& $ConfigNames; #------------------------------------------------------------------------------- $Config = Config(); #------------------------------------------------------------------------------- $Location = $Location ? Explode('-', $Location) : array(); #------------------------------------------------------------------------------- foreach ($Location as $Name) {
#------------------------------------------------------------------------------- } #------------------------------------------------------------------------------- } #------------------------------------------------------------------------------- } #------------------------------------------------------------------------------- } #------------------------------------------------------------------------------- unset($Folder, $HostsIDs, $HostID, $Path, $Resource, $File); #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- /** * Initialize Cache Manager. */ $cacheConf = @Parse_Ini_File(SPrintF('%s/core/config.ini', SYSTEM_PATH), TRUE); if ($cacheConf) { if (isset($cacheConf['cache_enabled']) && $cacheConf['cache_enabled']) { CacheManager::init(); } } #------------------------------------------------------------------------------- #------------------------------------------------------------------------------- $Config = Config(); #------------------------------------------------------------------------------- $Settings = $Config['Other']['Protocol']; #------------------------------------------------------------------------------- if ($Settings['UseSSL'] && isset($_SERVER["REMOTE_PORT"])) { #------------------------------------------------------------------------------- // проверяем - ssl иил нет. if (!isset($_SERVER["HTTP_X_FORWARDED_PROTO"]) && $_SERVER["SERVER_PORT"] != "443") {
<? Include "version.php"; Include "library.php"; $mysql = Parse_Ini_File("config.php", TRUE); IF($mysql['HUB']['multi']!=1) Die("MultiVerliAdmin not allowed"); ?> <HTML> <HEAD> <LINK type="Image/X-Icon" rel="Icon" href="img/favicon.ico"> <LINK type="Image/X-Icon" rel="ShortCut Icon" href="img/favicon.ico"> <LINK rel="StyleSheet" type="Text/CSS" href="default.css"> <META http-equiv="Content-Type" content="Text/HTML; Charset=<?Print $encoding;?>"> <META http-equiv="Expires" content="Mon, 06 Jan 1990 00:00:01 GMT"> <META http-equiv="Author" content="Kosa Gergely 2005 [zipi@dcinfo.org]"> <META http-equiv="Copyright" content="Kosa Gergely 2005 [zipi@dcinfo.org]"> <TITLE><? Print "MultiVerliAdmin";?></TITLE> </HEAD> <BODY> <CENTER> <FONT class="h1">VerliAdmin</FONT><BR> <FONT class="h2">Select HUB</FONT> <BR><BR> <FORM method="post" action="index.php"> <TABLE align="center" class="fs12px b1"> <TR> <TD class="b right bg_light">HUB : </TD> <TD class="bg_light"><SELECT name="HubDB"> <? $connection = mysql_connect($mysql['HUB']['host'],$mysql['HUB']['user'],$mysql['HUB']['password']);