<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class database_downAction extends security_login {
	function action(){
		ModuleLimit(__CLASS__);

		include_once MICE_DIR.'/includes/download.php';
		
		$downfile=MICE_DIR.MICE_PRIVATE.'backup/'.$this->_getParam('filename');

		download($downfile, $this->_getParam('filename'));
		header("Location: ".MICE_URL."admin.php/database");
		exit;

		$smarty = new Smarty();
		$smarty->load_filter('pre','micePreCompileAdmin');		
		$filename = new getTPLFileName(__CLASS__);
		$smarty->display($filename->TPLFileName);
	}
}
?>