<?php 
if(is_dir(dirname(__FILE__)."/setup"))
{
  echo "如果你还没安装本程序，请运行<a href='setup/index.php'> setup/index.php </a>，<br>";
  echo "否则请重命名这个文件夹! Power by DedeCms.com ";
  exit();
}
require_once(dirname(__FILE__)."/include/config_base.php");
require_once(dirname(__FILE__)."/include/inc_arcpart_view.php");
$dsql = new DedeSql(false);
$row  = $dsql->GetOne("Select * From #@__homepageset");
$dsql->Close();
$row['templet'] = str_replace("{style}",$cfg_df_style,$row['templet']);
$pv = new PartView();
$pv->SetTemplet($cfg_basedir."/".$cfg_templets_dir."/".$row['templet']);
$pv->Display();
$pv->Close();
?>