<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class maimg_miniAction extends security_login {
	function action(){
		global $conn;

		if($this->_getParam('maimg_id')){
			$cid=$this->_getParam('maimg_id');
		}else{
			$cid=0;
		}

		$miceSession = new session();
		$filenames=$miceSession->get('upfilename');
		
		$ufn=str_replace(',','","',strtolower(MICE_UPLOAD_FILE_NAME));
		$ufn='"'.$ufn.'"';

		

		$smarty = new Smarty();
		$smarty->load_filter('pre','micePreCompileAdmin');
		$smarty->assign('cid',$cid);
		$smarty->assign('ufn',$ufn);
		$smarty->assign('formaction',MICE_URL.'admin.php/maimg/file');
		$smarty->assign('miniupload',MICE_URL.'admin.php/maimg/mini');
		$smarty->assign('filesize',MICE_UPLOAD_FILE_SIZE);
		$smarty->assign('fileexts',MICE_UPLOAD_FILE_NAME);
		$smarty->assign('filenames',$filenames);
		$filename = new getTPLFileName(__CLASS__);
		$smarty->display($filename->TPLFileName);
	}
}
?>