<?php
/**
 *	Generated by miceCMS
 *	http://www.miceCMS.com/
 */
class maimg_updateAction extends security_login {
	function action(){
		//接收参数并放入Session
		global $conn;
		$miceSession = new session();
		if($_POST['file_id']){
			//查找			
			$file=new model_File();
			$file->setSubsection(' WHERE file_id='.$_POST['file_id']);
			$filers=$file->doSelectOne();
		}

		

		$file->setTitle(MiceFilterHtml($_POST['title']));
		$file->setSummary(MiceFilterQuote($_POST['summary']));
		$file->setLink(MiceFilterQuote($_POST['link']));
		$results=$file->doUpdate();
		echo "图片属性修改成功！";
		exit;
	}
}
?>