dede后台老是提示运行出错,php的输出请给看看?
<?php/****错误提交**@version$Id:erraddsave.php115:382010年7月8日Ztianya$*@package图腾网素材http:/...
<?php
/**
*
* 错误提交
*
* @version $Id: erraddsave.php 1 15:38 2010年7月8日Z tianya $
* @package 图腾网素材http://010331.com
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
require_once(dirname(__FILE__)."/../include/common.inc.php");
require_once(DEDEINC.'/memberlogin.class.php');
$htmltitle = "错误提交";
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
if(empty($dopost))
{
$row = $dsql->GetOne(" SELECT `title` FROM `#@__archives` WHERE `id` ='$aid'");
$title = $row['title'];
require_once(DEDEROOT."/templets/plus/erraddsave.htm");
}
elseif($dopost == "saveedit")
{
$cfg_ml = new MemberLogin();
$title = HtmlReplace($title);
$type = isset($type) && is_numeric($type) ? $type : 0;
$mid = isset($cfg_ml->M_ID) ? $cfg_ml->M_ID : 0;
$err = trimMsg(cn_substr($err,2000),1);
$oktxt = trimMsg(cn_substr($erradd,2000),1);
$time = time();
$query = "INSERT INTO `#@__erradd`(aid,mid,title,type,errtxt,oktxt,sendtime)
VALUES ('$aid','$mid','$title','$type','$err','$oktxt','$time'); ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("谢谢您对本网站的支持,我们会尽快处理您的建议!","javascript:window.close();");
exit();
} 展开
/**
*
* 错误提交
*
* @version $Id: erraddsave.php 1 15:38 2010年7月8日Z tianya $
* @package 图腾网素材http://010331.com
* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.
require_once(dirname(__FILE__)."/../include/common.inc.php");
require_once(DEDEINC.'/memberlogin.class.php');
$htmltitle = "错误提交";
$aid = isset($aid) && is_numeric($aid) ? $aid : 0;
if(empty($dopost))
{
$row = $dsql->GetOne(" SELECT `title` FROM `#@__archives` WHERE `id` ='$aid'");
$title = $row['title'];
require_once(DEDEROOT."/templets/plus/erraddsave.htm");
}
elseif($dopost == "saveedit")
{
$cfg_ml = new MemberLogin();
$title = HtmlReplace($title);
$type = isset($type) && is_numeric($type) ? $type : 0;
$mid = isset($cfg_ml->M_ID) ? $cfg_ml->M_ID : 0;
$err = trimMsg(cn_substr($err,2000),1);
$oktxt = trimMsg(cn_substr($erradd,2000),1);
$time = time();
$query = "INSERT INTO `#@__erradd`(aid,mid,title,type,errtxt,oktxt,sendtime)
VALUES ('$aid','$mid','$title','$type','$err','$oktxt','$time'); ";
$dsql->ExecuteNoneQuery($query);
ShowMsg("谢谢您对本网站的支持,我们会尽快处理您的建议!","javascript:window.close();");
exit();
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询