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

39 lines
1.5KB

  1. <?php
  2. /**
  3. * 系统设置
  4. *
  5. * @version $id:soft_config.php 16:09 2010年7月20日 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_SoftConfig');
  13. if (empty($dopost)) $dopost = '';
  14. //保存
  15. if ($dopost == "save") {
  16. if ($dfrank > 0 || $dfywboy > 0) $gotojump = 1;
  17. $query = "UPDATE `#@__softconfig` SET `downtype`='$downtype',`gotojump`='$gotojump',`ismoresite`='$ismoresite',`islocal`='$islocal',`sites`='$sites',`moresitedo`='$moresitedo',`dfrank`='$dfrank',`dfywboy`='$dfywboy',`argrange`='$argrange',downmsg='$downmsg' ";
  18. $dsql->ExecuteNoneQuery($query);
  19. ShowMsg('成功保存参数', 'soft_config.php');
  20. exit();
  21. }
  22. //读取参数
  23. $row = $dsql->GetOne("SELECT * FROM `#@__softconfig`");
  24. if (!is_array($row)) {
  25. $dsql->ExecuteNoneQuery("INSERT INTO `#@__softconfig` (`downtype`,`ismoresite`,`islocal`,`gotojump`,`sites`,`downmsg`,`moresitedo`,`dfrank`,`dfywboy`,`argrange`) VALUES ('1','0','1','0','','$downmsg','1','0','0','0');");
  26. $row['downtype'] = 1;
  27. $row['ismoresite'] = 0;
  28. $row['islocal'] = 1;
  29. $row['gotojump'] = 0;
  30. $row['sites'] = '';
  31. $row['moresitedo'] = '1';
  32. $row['dfrank'] = '0';
  33. $row['dfywboy'] = '0';
  34. $row['downmsg'] = '';
  35. $row['argrange'] = 0;
  36. }
  37. include DedeInclude('templets/soft_config.htm');
  38. exit();
  39. ?>