在review中下载错误提示里输出html

This commit is contained in:
Li Jianxuan 2011-11-09 07:57:50 +00:00
parent 3fe036d10b
commit e0b5d8a252
1 changed files with 18 additions and 2 deletions

View File

@ -480,10 +480,26 @@ class ReviewController extends Zend_Controller_Action
$sql = "update attachments set downtimes=downtimes+1 where id = $id"; $sql = "update attachments set downtimes=downtimes+1 where id = $id";
@$this->db->exec($sql); @$this->db->exec($sql);
}catch(Exception $e){ }catch(Exception $e){
echo '文件读取出错,请稍后重试'; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>文件读取出错,请稍后重试</body>
</html>';
} }
}else{ }else{
echo '读取用户信息出错,请先登录再下载附件'; echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
</head>
<body>读取用户信息出错,请先登录再下载附件重试</body>
</html>';
} }