erraddsave.php,plus/erraddsave.php · 辉辉菜/三强源码 - Gitee.com

/**

*

* 错误提交

*

* @version $Id: erraddsave.php 1 15:38 2010年7月8日Z tianya $

* @package DedeCMS.Site

* @copyright Copyright (c) 2007 - 2010, DesDev, Inc.

* @license http://help.dedecms.com/usersguide/license.html

* @link http://www.dedecms.com

*/

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();

}

一键复制

编辑

Web IDE

原始数据

按行查看

历史

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值