国内外VPS
主机测评与优惠

杰奇2.4,后台采集规则不能删除的bug修复。

文件: /modules/article/admin/collectset.php

  • 1.将文件最后的这段代码
if ($updateconfig) {      jieqi_setconfigs('collectsite', 'jieqiCollectsite', $jieqiCollectsite, JIEQI_MODULE_NAME);      if (file_exists(JIEQI_ROOT_PATH . '/configs/article/site_' . $_REQUEST['config'] . '.php')) {          jieqi_delfile(JIEQI_ROOT_PATH . '/configs/article/site_' . $_REQUEST['config'] . '.php');      }  }
  • 2.放到这里来
if (isset($_POST['act']) && $_POST['act'] == 'del' && !empty($_REQUEST['config']) && preg_match('/^\w+$/', $_REQUEST['config'])) {      jieqi_checkpost();      foreach ($jieqiCollectsite as $k => $v) {          if ($v['config'] == $_REQUEST['config']) {              unset($jieqiCollectsite[$k]);              $updateconfig = true;              break;          }      }    //代码插入的位置 17-18 行附近        jieqi_jumppage($jieqiModules['article']['url'] . '/admin/collectset.php', '', '', true);  }
  • 3.完成状态
if (isset($_POST['act']) && $_POST['act'] == 'del' && !empty($_REQUEST['config']) && preg_match('/^\w+$/', $_REQUEST['config'])) {      jieqi_checkpost();      foreach ($jieqiCollectsite as $k => $v) {          if ($v['config'] == $_REQUEST['config']) {              unset($jieqiCollectsite[$k]);              $updateconfig = true;              break;          }      }    //插入代码开始  if ($updateconfig) {      jieqi_setconfigs('collectsite', 'jieqiCollectsite', $jieqiCollectsite, JIEQI_MODULE_NAME);      if (file_exists(JIEQI_ROOT_PATH . '/configs/article/site_' . $_REQUEST['config'] . '.php')) {          jieqi_delfile(JIEQI_ROOT_PATH . '/configs/article/site_' . $_REQUEST['config'] . '.php');      }  }  //插入代码结束        jieqi_jumppage($jieqiModules['article']['url'] . '/admin/collectset.php', '', '', true);  }
赞(0)
未经允许不得转载:艾博网 » 杰奇2.4,后台采集规则不能删除的bug修复。
分享到: 更多 (0)

评论 抢沙发

评论前必须登录!

 

'); })();