<?php
if(!file_exists(dirname(__FILE__).'/data/common.inc.php'))
{
    header('Location:install/index.php');
    exit();
}
//×Ô¶¯Éú³ÉHTML°æ
if(isset($_GET['upcache']))
{
	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']);
	$pv->SaveToHtml(dirname(__FILE__).'/index.html');
	include(dirname(__FILE__).'/index.html');
	exit();
}
else
{
	header('HTTP/1.1 301 Moved Permanently');
	header('Location:index.html');
}
?>