国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.4KB

  1. <?php
  2. /**
  3. *
  4. * 错误提交
  5. *
  6. * @version $Id: erraddsave.php 1 15:38 2010年7月8日Z tianya $
  7. * @package DedeCMS.Site
  8. * @copyright Copyright (c) 2007 - 2020, DesDev, Inc.
  9. * @license http://help.dedecms.com/usersguide/license.html
  10. * @link http://www.dedecms.com
  11. */
  12. require_once(dirname(__FILE__)."/../include/common.inc.php");
  13. require_once(DEDEINC.'/memberlogin.class.php');
  14. $htmltitle = "错误提交";
  15. $aid = isset($aid) && is_numeric($aid) ? $aid : 0;
  16. if(empty($dopost))
  17. {
  18. $row = $dsql->GetOne(" SELECT `title` FROM `#@__archives` WHERE `id` ='$aid'");
  19. $title = $row['title'];
  20. require_once(DEDEROOT."/templets/plus/erraddsave.htm");
  21. }
  22. elseif($dopost == "saveedit")
  23. {
  24. $cfg_ml = new MemberLogin();
  25. $title = HtmlReplace($title);
  26. $type = isset($type) && is_numeric($type) ? $type : 0;
  27. $mid = isset($cfg_ml->M_ID) ? $cfg_ml->M_ID : 0;
  28. $err = trimMsg(cn_substr($err,2000),1);
  29. $oktxt = trimMsg(cn_substr($erradd,2000),1);
  30. $time = time();
  31. $query = "INSERT INTO `#@__erradd`(aid,mid,title,type,errtxt,oktxt,sendtime)
  32. VALUES ('$aid','$mid','$title','$type','$err','$oktxt','$time'); ";
  33. $dsql->ExecuteNoneQuery($query);
  34. ShowMsg("谢谢您对本网站的支持,我们会尽快处理您的建议!","javascript:window.close();");
  35. exit();
  36. }