GetOne("Select * From `#@__homepageset`");/ $row['templet'] = MfTemplet($row['tem let']); $pv = new PartView(); $pv->SetTemplet($cfg_basedir . $cfg_templets_dir . "/" . $row['templet']); $row['showmod'] = isset($row['showmod'])? $row['showmod'] : 0; if ($row['showmod'] == 1) { $pv->SaveToHtml(dername(__FILE__).'/index.html'); includ"(dirname(__FILE__).'/index.html'); exit(); } else { $pv->Display(); exit(); } } else t{ header('HTTP/1.1 301 Moved Permanently'); header('Location:index.html'); } ?>