国内流行的内容管理系统(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.

41 lines
1.2KB

  1. <?php
  2. /**
  3. * 修改日志
  4. *
  5. * @version $id:log_edit.php 8:48 2010年7月13日 tianya $
  6. * @package DedeBIZ.Administrator
  7. * @copyright Copyright (c) 2022 DedeBIZ.COM
  8. * @license https://www.dedebiz.com/license
  9. * @link https://www.dedebiz.com
  10. */
  11. require_once(dirname(__FILE__)."/config.php");
  12. CheckPurview('sys_Log');
  13. if (empty($dopost)) {
  14. ShowMsg("您没指定任何参数", "javascript:;");
  15. exit();
  16. }
  17. //清空所有日志
  18. if ($dopost == "clear") {
  19. $dsql->ExecuteNoneQuery("DELETE FROM `#@__log`");
  20. ShowMsg("成功清空所有日志", "log_list.php");
  21. exit();
  22. } else if ($dopost == "del") {
  23. $bkurl = isset($_COOKIE['ENV_GOBACK_URL']) ? $_COOKIE['ENV_GOBACK_URL'] : "log_list.php";
  24. $ids = explode('`', $ids);
  25. $dquery = "";
  26. foreach ($ids as $id) {
  27. if ($dquery == "") {
  28. $dquery .= " lid='$id' ";
  29. } else {
  30. $dquery .= " Or lid='$id' ";
  31. }
  32. }
  33. if ($dquery != "") $dquery = " where ".$dquery;
  34. $dsql->ExecuteNoneQuery("DELETE FROM `#@__log` $dquery");
  35. ShowMsg("成功删除指定的日志", $bkurl);
  36. exit();
  37. } else {
  38. ShowMsg("无法识别您的请求", "javascript:;");
  39. exit();
  40. }
  41. ?>