KURUN CLOUD洛杉矶服务器,CN2GIA+CUPM9929+CMIN2,顶级回国线路,机房直销
文件: /modules/article/admin/collectset.php
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');
}
}
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);
}
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);
}