20,360
社区成员
发帖
与我相关
我的任务
分享
<?php
require("inc/conn.php");
include("inc/top.php");
include("inc/bottom.php");
include("label.php");
include("zs/subzs.php");
include("fly.php");
if (isset($_GET['skin'])){
$siteskin=$_GET['skin'];
}else{
$siteskin=siteskin;
}
$file=dirname(__FILE__)."/template/".$siteskin."/index.htm";
$fso = fopen($file,'r');
$strout = fread($fso,filesize($file));
$strout=str_replace("{#siteskin}",$siteskin,$strout) ;
$strout=str_replace("{#sitename}",sitename,$strout) ;
$strout=str_replace("{#siteurl}",siteurl,$strout) ;
$strout=str_replace("{#pagetitle}",sitetitle,$strout);
$strout=str_replace("{#pagekeywords}",sitekeyword,$strout);
$strout=str_replace("{#pagedescription}",sitedescription,$strout);
$strout=str_replace("{#sitebottom}",sitebottom(),$strout);
$strout=str_replace("{#sitetop}",sitetop(),$strout);
if (strpos($strout,"{@")!==false) $strout=showlabel($strout);//先查一下,如是要没有的就不用再调用showlabel
if (flyadisopen=="Yes") {
$strout=str_replace("{#flyad}",Showflyad("漂浮广告"),$strout);
}else{
$strout=str_replace("{#flyad}","",$strout);
}
if (duilianadisopen=="Yes"){
$strout=str_replace("{#duilianad}",showduilianad("对联广告左侧","对联广告右侧"),$strout);
}else{
$strout=str_replace("{#duilianad}","",$strout);
}
echo $strout;
?>
这是首页的代码,我刚才一个个检查了 发现一个不是去头的rom 我编码后还是不行。echo bin2hex(file_get_contents('http://www.bjp51.net/', false, null, 0, 20));
efbbbfefbbbf3c21444f43545950452068746d6c