帝国首页判断代码
代码
<?php
$myurl=$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$myurl1=$_SERVER['HTTP_HOST'].$public_r['newsurl'].'e/admin/ecmschtml.php?enews=ReIndex';
$myurl2=$public_r['newsurl'].'e/admin/ecmschtml.php?enews=ReIndex';
if(($myurl==$myurl1)||($myurl==$myurl2)){
?>
<div class="botLink"> <strong>友情链接:</strong> </div>
<?php
}
?>