程序php!index.,php.index
if(isset($_GET['upcache']) || !file_exists('index.html')) //如果 upcache 這個(gè)參數(shù)存在,并且文件index.html也存在,那么執(zhí)行條件體里的代碼
{
require_once (dirname(__FILE__) . "/include/common.inc.php"); //引用這個(gè)文件,然后下面就可以使用這個(gè)文件里定義的變量、方法、類等等
require_once DEDEINC."/arc.partview.class.php";//同上
$GLOBALS['_arclistEnv'] = 'index';//把全局變量 _arclistEnv 的值設(shè)定為 'index',這個(gè)全局變量可能存在于上面兩行代碼中引用的文件或者上面文件中再次引用的其它文件,如此往上找;如果不存在這個(gè)全局變量,則這里就相當(dāng)于聲明定義了。
$row = $dsql->GetOne("Select * From `#@__homepageset`"); //用sql取數(shù)據(jù)、獲取一個(gè)結(jié)果集
$row['templet'] = MfTemplet($row['templet']); //取其中的 templet列 的數(shù)據(jù),這個(gè)是定義的模板數(shù)據(jù)
$pv = new PartView(); //這個(gè)類應(yīng)該是用來顯示的,聲明一個(gè)用來處理顯示邏輯的對(duì)象
$pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); //使用模板,也就是剛才取出來的那個(gè)
$row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; //顯示類型,不知道是怎么個(gè)顯示法
if ($row['showmod'] == 1)
{ //顯示類型 1
$pv->SaveToHtml(dirname(__FILE__).'/index.html'); //應(yīng)該是保存一個(gè)html文件
include(dirname(__FILE__).'/index.html'); // 將這個(gè)index.html加載進(jìn)來
exit();
} else { //其他顯示類型
$pv->Display(); //
exit();
}
}
總結(jié)
以上是生活随笔為你收集整理的程序php!index.,php.index的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 2019年大数据发展趋势预测
- 下一篇: php 姓氏表,PHP拆分姓名中的姓氏和