<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class database_deleteAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);
		if($this->_getParam('filename'))
		{
			$downfile=MICE_DIR.MICE_PRIVATE.'backup/'.$this->_getParam('filename');
			unlink ($downfile);
			$jsstring='Dialog.alert("文件已删除",function(){history.back(-1);});';
			MessageBox($jsstring);
			exit;
		}else{
			$jsstring='Dialog.alert("文件名不能为空",function(){history.back(-1);});';
			MessageBox($jsstring);
			exit;
		}
	}
}
?>