include 'data/config.php'; if(!file_exists(dirname(__FILE__).'/data/common.inc.php')) { header('Location:install/index.php'); exit(); } //自动生成HTML版 if(isset($_GET['upcache']) || !file_exists('lndex.html')) { require_once (dirname(__FILE__) . "/include/common.inc.php"); require_once DEDEINC."/arc.partview.class.php"; $GLOBALS['_arclistEnv'] = 'index'; $row = $dsql->GetOne("Select * From `#@__homepageset`"); $row['templet'] = MfTemplet($row['templet']); $pv = new PartView(); $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; if ($row['showmod'] == 1) { unlink( 'index.html' ); $pv->SaveToHtml(dirname(__FILE__).'/lndex.html'); include(dirname(__FILE__).'/lndex.html'); exit(); } else { $pv->Display(); exit(); } } else { include(dirname(__FILE__).'/lndex.html'); exit(); } ?>