/e/install/install.off文件!";
exit();
}
require("../class/connect.php");
require("../class/db_sql.php");
require("../class/functions.php");
require LoadLang("pub/fun.php");
require("../class/t_functions.php");
require("../data/dbcache/class.php");
$link=db_connect();
$empire=new mysqlquery();
$ecms=$_GET['ecms'];
$defaultdata=$_GET['defaultdata'];
//----------------生成表情JS
function InstallGetPlfaceJs(){
global $empire,$dbtbpre,$public_r;
$r=$empire->fetch1("select plface,plfacenum from {$dbtbpre}enewspl_set limit 1");
if(empty($r['plfacenum']))
{
return '';
}
$filename="../../d/js/js/plface.js";
$facer=explode('||',$r['plface']);
$count=count($facer);
for($i=1;$i<$count-1;$i++)
{
if($i%$r['plfacenum']==0)
{
$br="
";
}
else
{
$br=" ";
}
$face=explode('##',$facer[$i]);
$allface.="
".$br;
}
$allface="document.write(\"\");document.write(\"".$allface."\");";
WriteFiletext_n($filename,$allface);
}
//更新其它数据
if($ecms=='ChangeInstallOtherData')
{
//--- 删除缓存文件 ---
DelListEnews();
//--- 更新动态页面 ---
GetPlTempPage();//评论列表模板
GetPlJsPage();//评论JS模板
ReCptemp();//控制面板模板
GetSearch();//三搜索表单模板
GetPrintPage();//打印模板
GetDownloadPage();//下载地址页面
ReGbooktemp();//留言板模板
ReLoginIframe();//登陆状态模板
ReSchAlltemp();//全站搜索模板
//生成首页
$indextemp=GetIndextemp();
NewsBq(0,$indextemp,1,0);
//--- 更新反馈表单 ---
$sql=$empire->query("select bid,btemp from {$dbtbpre}enewsfeedbackclass order by bid");
while($r=$empire->fetch($sql))
{
//替换公共变量
$btemp=ReplaceTempvar($r['btemp']);
$btemp=str_replace("[!--cp.header--]"," include(\"../../data/template/cp_1.php\");?>",$btemp);
$btemp=str_replace("[!--cp.footer--]"," include(\"../../data/template/cp_2.php\");?>",$btemp);
$btemp=str_replace("[!--member.header--]"," include(\"../../template/incfile/header.php\");?>",$btemp);
$btemp=str_replace("[!--member.footer--]"," include(\"../../template/incfile/footer.php\");?>",$btemp);
$file="../tool/feedback/temp/feedback".$r[bid].".php";
$btemp="
if(!defined('InEmpireCMS'))
{exit();}
?>".$btemp;
WriteFiletext($file,$btemp);
}
//--- 评论表情文件 ---
InstallGetPlfaceJs();
echo"更新文件完毕.";
exit();
}
else//更新数据库缓存
{
GetConfig(1);//更新参数设置
GetClass();//更新栏目
GetMemberLevel();//更新会员组
GetSearchAllTb();//更新全站搜索数据表
echo"更新数据库缓存完毕.";
exit();
}
?>