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

52 lines
1.7KB

  1. <?php
  2. /**
  3. * 软件配置
  4. *
  5. * @version $Id: soft_config.php 1 16:09 2010年7月20日Z tianya $
  6. * @package DedeCMS.Administrator
  7. * @copyright Copyright (c) 2020, 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. {
  17. if($dfrank>0 || $dfywboy>0) $gotojump = 1;
  18. $query = "UPDATE `#@__softconfig` SET
  19. `downtype` = '$downtype' ,
  20. `gotojump` ='$gotojump' ,
  21. `ismoresite` = '$ismoresite',
  22. `islocal` = '$islocal',
  23. `sites` = '$sites',
  24. `moresitedo` = '$moresitedo',
  25. `dfrank` = '$dfrank',
  26. `dfywboy` = '$dfywboy',
  27. `argrange` = '$argrange',
  28. downmsg = '$downmsg' ";
  29. $dsql->ExecuteNoneQuery($query);
  30. ShowMsg('成功保存参数!', 'soft_config.php');
  31. exit();
  32. }
  33. //读取参数
  34. $row = $dsql->GetOne("SELECT * FROM `#@__softconfig` ");
  35. if(!is_array($row))
  36. {
  37. $dsql->ExecuteNoneQuery("INSERT INTO `#@__softconfig`(`downtype`,`ismoresite`,`islocal`,`gotojump`,`sites`,`downmsg`,`moresitedo`,`dfrank`,`dfywboy`, `argrange`)
  38. VALUES ('1', '0','1', '0', '' ,'$downmsg','1', '0', '0', '0'); ");
  39. $row['downtype'] = 1;
  40. $row['ismoresite'] = 0;
  41. $row['islocal'] = 1;
  42. $row['gotojump'] = 0;
  43. $row['sites'] = '';
  44. $row['moresitedo'] = '1';
  45. $row['dfrank'] = '0';
  46. $row['dfywboy'] = '0';
  47. $row['downmsg'] = '';
  48. $row['argrange'] = 0;
  49. }
  50. include DedeInclude('templets/soft_config.htm');
  51. exit();