header('Content-Type:text/html;charset=gbk');
$file_dir = "./public/upload/";
$db=M('Artic');
$list=$db->where('id='.$_GET['id'])->order('id desc')->select();
//$showname=$list[0]['showname'];
$name=$list[0]['image'];
$filename=$file_dir . $name;
if (!empty($name)){
import("ORG.Net.Http");
$download=new Http();
$download->download($filename,$name,$name);
}