国内流行的内容管理系统(CMS)多端全媒体解决方案 https://www.dedebiz.com
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

53 líneas
2.2KB

  1. <?php
  2. /**
  3. * 插件编辑
  4. *
  5. * @version $Id: plus_edit.php 1 15:46 2010年7月20日Z 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_plus');
  13. $aid = preg_replace("#[^0-9]#", "", $aid);
  14. if ($dopost == "show") {
  15. $dsql->ExecuteNoneQuery("UPDATE `#@__plus` SET isshow=1 WHERE aid='$aid';");
  16. ShowMsg("成功启用一个插件,请刷新导航菜单", "plus_main.php");
  17. exit();
  18. } else if ($dopost == "hide") {
  19. $dsql->ExecuteNoneQuery("UPDATE `#@__plus` SET isshow=0 WHERE aid='$aid';");
  20. ShowMsg("成功禁用一个插件,请刷新导航菜单", "plus_main.php");
  21. exit();
  22. } else if ($dopost == "delete") {
  23. if (empty($job)) $job = "";
  24. if ($job == "") //确认提示
  25. {
  26. require_once(DEDEINC."/libraries/oxwindow.class.php");
  27. $wintitle = "删除插件";
  28. $wecome_info = "<a href='plus_main.php'>插件管理</a>::删除插件";
  29. $win = new OxWindow();
  30. $win->Init("plus_edit.php", "js/blank.js", "POST");
  31. $win->AddHidden("job", "yes");
  32. $win->AddHidden("dopost", $dopost);
  33. $win->AddHidden("aid", $aid);
  34. $win->AddTitle("您确定要删除'".$title."'这个插件");
  35. $win->AddMsgItem("警告:在这里删除仅仅删除菜单项,要干净删除请在模块管理处删除<br><br><a href='module_main.php?moduletype=plus'>模块管理&gt;</a>");
  36. $winform = $win->GetWindow("ok");
  37. $win->Display();
  38. exit();
  39. } else if ($job == "yes") //操作
  40. {
  41. $dsql->ExecuteNoneQuery("DELETE FROM `#@__plus` WHERE aid='$aid';");
  42. ShowMsg("成功删除一个插件,请刷新导航菜单!", "plus_main.php");
  43. exit();
  44. }
  45. } else if ($dopost == "saveedit") //保存修改
  46. {
  47. $inquery = "UPDATE `#@__plus` SET plusname='$plusname',menustring='$menustring',filelist='$filelist' WHERE aid='$aid';";
  48. $dsql->ExecuteNoneQuery($inquery);
  49. ShowMsg("成功修改插件的配置", "plus_main.php");
  50. exit();
  51. }
  52. $row = $dsql->GetOne("SELECT * FROM `#@__plus` WHERE aid='$aid'");
  53. include DedeInclude('templets/plus_edit.htm');