Your IP : 3.23.100.107


Current Path : /home/bitrix/ext_www/xn--80atde5a3i.com/bitrix/modules/socialnetwork/install/
Upload File :
Current File : /home/bitrix/ext_www/xn--80atde5a3i.com/bitrix/modules/socialnetwork/install/step2.php

<?if(!check_bitrix_sessid()) return;?>
<?
global $errors;

$errorsCnt = count($errors);
if(
	!is_array($errors)
	|| $errorsCnt <= 0
):
	echo CAdminMessage::ShowNote(GetMessage("MOD_INST_OK"));
else:
	for($i=0; $i<$errorsCnt; $i++)
		$alErrors .= $errors[$i]."<br>";
	echo CAdminMessage::ShowMessage(Array("TYPE"=>"ERROR", "MESSAGE" =>GetMessage("MOD_INST_ERR"), "DETAILS"=>$alErrors, "HTML"=>true));
endif;
if ($ex = $APPLICATION->GetException())
{
	echo CAdminMessage::ShowMessage(Array("TYPE" => "ERROR", "MESSAGE" => GetMessage("MOD_INST_ERR"), "HTML" => true, "DETAILS" => $ex->GetString()));
}

global $public_installed;
$dbSites = CSite::GetList(($b = ""), ($o = ""), Array("ACTIVE" => "Y"));
while ($site = $dbSites->fetch())
{ 
	$arSite[] = Array(
		"LANGUAGE_ID" => $site["LANGUAGE_ID"],
		"ABS_DOC_ROOT" => $site["ABS_DOC_ROOT"],
		"DIR" => $site["DIR"],
		"SITE_ID" => $site["LID"],
		"SERVER_NAME" =>$site["SERVER_NAME"],
		"NAME" => $site["NAME"]
	);
}

if ($public_installed) :
?>
<p><?=GetMessage("MOD_DEMO_DIR")?></p>
<table border="0" cellspacing="0" cellpadding="3">
	<tr>
		<td align="center"><p><b><?=GetMessage("MOD_DEMO_SITE")?></b></p></td>
		<td align="center"><p><b><?=GetMessage("MOD_DEMO_LINK")?></b></p></td>
	</tr>
	<?
	foreach($arSite as $fSite)
	{
		global ${"install_public_".$fSite["SITE_ID"]};
		global ${"public_path_".$fSite["SITE_ID"]};
		global ${"public_rewrite_".$fSite["SITE_ID"]};
		global ${"is404_".$fSite["SITE_ID"]};

		if (${"install_public_".$fSite["SITE_ID"]} == "Y" && !empty(${"public_path_".$fSite["SITE_ID"]}))
		{
			?>
			<tr>
				<td width="0%"><p>[<?=$fSite["SITE_ID"]?>] <?=htmlspecialcharsEx($fSite["NAME"])?></p></td>
				<td width="0%"><p><a href="<?if(strlen($fSite["SERVER_NAME"])>0) echo "http://".htmlspecialcharsBx($fSite["SERVER_NAME"]);?><?=htmlspecialcharsBx($fSite["DIR"]).${"public_path_".$fSite["SITE_ID"]}?>/"><?=htmlspecialcharsEx($fSite["DIR"]).${"public_path_".$fSite["SITE_ID"]}?>/</a></p></td>
			</tr>
			<?
		}
	}
	?>
</table>
<?
endif;
?>
<form action="<?echo $APPLICATION->GetCurPage()?>">
	<input type="hidden" name="lang" value="<?echo LANG?>">
	<input type="submit" name="" value="<?echo GetMessage("MOD_BACK")?>">	
<form>