<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class setAction extends security_normal {
	
	function action(){	
		$smarty = new Smarty();
		if($_POST['next']!=1)
		{
				$jsstring='Dialog.alert(\'系统配置错误\',function(){window.location.href="'.MICE_URL.'install.php";window.event.returnValue = false;},300,100,"返回文档列表");';
				MessageBox($jsstring);
				exit;
		}
		if(!(IsWritable(MICE_DIR.MICE_PRIVATE) and IsWritable(MICE_DIR.'templates_c/') and IsWritable(MICE_DIR.'uploads/') and strnatcmp(phpversion(), 5.1)>=0)){
			$next=0;
		}else{
			$next=1;
		}
		
		$url="http://".$_SERVER['HTTP_HOST'].$_SERVER["SCRIPT_NAME"];
		$url=substr($url,0,strlen($url)-11);

		$smarty->load_filter('pre','micePreCompileInstall');
		$smarty->assign("title","第3步:参数配置—miceCMS5.0 安装向导");
		$smarty->assign("url",$url);
		$smarty->assign("next",$next);
		$filename = new getTPLFileName(__CLASS__);
		$smarty->display($filename->TPLFileName);
	}	
}
?>