config.inc.php 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. <?php
  2. /**
  3. * Copyright 2001-2099 1314学习网.
  4. * This is NOT a freeware, use is subject to license terms
  5. * $Id: config.inc.php 4003 2016-07-02 13:32:28Z zhuge $
  6. * 应用售后问题:http://www.1314study.com/services.php?mod=issue
  7. * 应用售前咨询:QQ 15326940
  8. * 应用定制开发:QQ 643306797
  9. * 本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权。
  10. * 未经允许不得公开出售、发布、使用、修改,如需购买请联系我们获得授权。
  11. */
  12. if (!defined('IN_DISCUZ') || !defined('IN_ADMINCP')) {
  13. exit('http://bbs.9026.com/');
  14. }
  15. $pluginvars = array();
  16. foreach(C::t('common_pluginvar')->fetch_all_by_pluginid($pluginid) as $var) {//1314学习网
  17. if(!strexists($var['type'], '_')) {
  18. C::t('common_pluginvar')->update_by_variable($pluginid, $var['variable'], array('type' => $var['type'].'_1314'));
  19. }else{
  20. $type = explode('_', $var['type']);/*1314学习网*/
  21. if($type[1] == '1314'){
  22. $var['type'] = $type[0];
  23. }else{#1.3.1.4.学.习.网
  24. continue;
  25. }
  26. }
  27. $pluginvars[$var['variable']] = $var;
  28. }
  29. require_once 'pluginvar.func.php';
  30. if(!submitcheck('editsubmit')) {/*本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权*/
  31. $operation = '';
  32. if($pluginvars) {
  33. $_statInfo = array();$_statInfo['pluginName'] = $plugin['identifier'];$_statInfo['pluginVersion'] = $plugin['version'];$_statInfo['bbsVersion'] = DISCUZ_VERSION;$_statInfo['bbsRelease'] = DISCUZ_RELEASE;$_statInfo['timestamp'] = TIMESTAMP;$_statInfo['bbsUrl'] = $_G['siteurl'];$_statInfo['SiteUrl'] = 'http://bbs.9026.com/';$_statInfo['ClientUrl'] = 'http://www.9026.com/';$_statInfo['SiteID'] = 'CAC3A6DA-13A8-9E17-F159-85D92EDD916A';$_statInfo['bbsAdminEMail'] = $_G['setting']['adminemail'];$_statInfo['genuine'] = splugin_genuine($plugin['identifier']);#本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权
  34. showformheader("plugins&operation=config&do=$pluginid");
  35. showtableheader();
  36. echo '<div id="my_addonlist"></div>';
  37. showtitle($lang['plugins_config']);
  38. $extra = array();
  39. foreach($pluginvars as $var) {
  40. if(strexists($var['type'], '_')) {
  41. continue;#本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权
  42. }
  43. if($var['variable'] == 'js'){/*8012*/
  44. $var['description'] = 'js&#x4EE3;&#x7801;&#x83B7;&#x53D6;&#x5730;&#x5740;&#xFF1A;<a href="http://zhanzhang.so.com/?m=SiteMapAuto" target="_blank" style="color:blue;">http://zhanzhang.so.com/?m=SiteMapAuto</a>';
  45. $mddl85md = "1.3.1.4.学.习.网";
  46. }
  47. $var['variable'] = 'varsnew['.$var['variable'].']';
  48. s_showsetting(isset($lang[$var['title']]) ? $lang[$var['title']] : dhtmlspecialchars($var['title']), $var['variable'], $var['value'], $var['type'], '', 0, isset($lang[$var['description']]) ? $lang[$var['description']] : nl2br($var['description']), dhtmlspecialchars($var['extra']), '', true);
  49. }
  50. showsubmit('editsubmit');
  51. showtablefooter();#本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权
  52. showformfooter();
  53. echo implode('', $extra);
  54. echo '<div id="my_addonlist_temp" style="display:none;"><script id="my_addonlist_js" src="http://www.discuz.1314study.com/services.php?mod=product&ac=js&op=manage&timestamp='.$_G['timestamp'].'&info='.base64_encode(serialize($_statInfo)).'&md5check='.md5(base64_encode(serialize($_statInfo))).'"></script></div>
  55. <script type="text/javascript">$("my_addonlist_js").src= "";$("my_addonlist").innerHTML = $("my_addonlist_temp").innerHTML;</script>';
  56. $_1vk2jmt = "版权:1314学习网,未经允许不得公开出售、发布、使用、修改,如需购买请联系我们获得授权";
  57. }
  58. } else {
  59. $xatb2t09 = "版权:1314学习网,未经允许不得公开出售、发布、使用、修改,如需购买请联系我们获得授权";
  60. if(is_array($_GET['varsnew'])) {
  61. foreach($_GET['varsnew'] as $variable => $value) {
  62. if(isset($pluginvars[$variable])) {/*版权:1314学习网,未经允许不得公开出售、发布、使用、修改,如需购买请联系我们获得授权*/
  63. if($pluginvars[$variable]['type'] == 'number') {
  64. $value = (float)$value;
  65. } elseif(in_array($pluginvars[$variable]['type'], array('forums', 'groups', 'selects'))) {
  66. $value = serialize($value);
  67. }
  68. $value = (string)$value;//www_discuz_1314study_com
  69. C::t('common_pluginvar')->update_by_variable($pluginid, $variable, array('value' => $value));
  70. }
  71. }
  72. }
  73. updatecache(array('plugin', 'setting', 'styles'));
  74. cleartemplatecache();
  75. $bcxmhbgt = "本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权";
  76. cpmsg('plugins_setting_succeed', 'action=plugins&operation=config&do='.$pluginid.'&anchor='.$anchor, 'succeed');
  77. }
  78. //Copyright 2001-2099 1314学习网.
  79. //This is NOT a freeware, use is subject to license terms
  80. //$Id: config.inc.php 4449 2016-07-02 05:32:28Z zhuge $
  81. //应用售后问题:http://www.1314study.com/services.php?mod=issue
  82. //应用售前咨询:QQ 15326940
  83. //应用定制开发:QQ 643306797
  84. //本插件为 1314学习网(www.1314study.com) 独立开发的原创插件, 依法拥有版权。
  85. //未经允许不得公开出售、发布、使用、修改,如需购买请联系我们获得授权。