dmsg('更新成功', '?moduleid=' . $moduleid . '&file=' . $file . '&tab=' . $tab); } else { extract(dhtmlspecialchars($MOD)); cache_pay(); $P = cache_read('pay.php'); extract($P); cache_oauth(); $O = cache_read('oauth.php'); extract($O); $tenpay['keycode'] = pass_encode($tenpay['keycode']); $weixin['keycode'] = pass_encode($weixin['keycode']); $alipay['keycode'] = pass_encode($alipay['keycode']); $chinabank['keycode'] = pass_encode($chinabank['keycode']); $yeepay['keycode'] = pass_encode($yeepay['keycode']); $paypal['keycode'] = pass_encode($paypal['keycode']); $uc_dbpwd = pass_encode($uc_dbpwd); $ex_pass = pass_encode($ex_pass); #$sso_auth = pass_encode($sso_auth); if ($kw) { $all = 1; ob_start(); } include tpl('setting', $module); if ($kw) { $data = $content = ob_get_contents(); ob_clean(); $data = preg_replace('\'(?!((<.*?)|(<a.*?)|(<strong.*?)))(' . $kw . ')(?!(([^<>]*?)>)|([^>]*?</a>)|([^>]*?</strong>))\'si', '<span class=highlight>' . $kw . '</span>', $data); $data = preg_replace('/<span class=highlight>/', '<a name=high></a><span class=highlight>', $data, 1); echo $data ? $data : $content; } }
if ($setting['file_login'] != $old_file_login) { @rename($mdir . $old_file_login, $mdir . $setting['file_login']); } if ($setting['file_my'] != $old_file_my) { @rename($mdir . $old_file_my, $mdir . $setting['file_my']); } dmsg('更新成功', '?moduleid=' . $moduleid . '&file=' . $file . '&tab=' . $tab); } else { include DT_ROOT . '/config.inc.php'; extract(dhtmlspecialchars($CFG)); extract(dhtmlspecialchars($DT)); $W = array('天', '一', '二', '三', '四', '五', '六'); $smtp_pass = pass_encode($smtp_pass); $ftp_pass = pass_encode($ftp_pass); $sms_key = pass_encode($sms_key); $trade_pw = pass_encode($trade_pw); if ($kw) { $all = 1; ob_start(); } include tpl('setting', $module); if ($kw) { $data = $content = ob_get_contents(); ob_clean(); $data = preg_replace('\'(?!((<.*?)|(<a.*?)|(<strong.*?)))(' . $kw . ')(?!(([^<>]*?)>)|([^>]*?</a>)|([^>]*?</strong>))\'si', '<span class=highlight>' . $kw . '</span>', $data); $data = preg_replace('/<span class=highlight>/', '<a name=high></a><span class=highlight>', $data, 1); echo $data ? $data : $content; } } } }
function pass_decode($new, $old) { return $new == pass_encode($old) ? $old : $new; }
if ($setting['file_login'] != $old_file_login) { @rename($mdir . $old_file_login, $mdir . $setting['file_login']); } if ($setting['file_my'] != $old_file_my) { @rename($mdir . $old_file_my, $mdir . $setting['file_my']); } dheader('?moduleid=' . $moduleid . '&file=' . $file . '&action=html&tab=' . $tab); } else { include DT_ROOT . '/config.inc.php'; extract(dhtmlspecialchars($CFG)); extract(dhtmlspecialchars($DT)); $W = array('天', '一', '二', '三', '四', '五', '六'); $smtp_pass = pass_encode($smtp_pass); $ftp_pass = pass_encode($ftp_pass); $trade_pw = pass_encode($trade_pw); $cloud_key = pass_encode($cloud_key); if ($kw) { $all = 1; ob_start(); } include tpl('setting', $module); if ($kw) { $data = $content = ob_get_contents(); ob_clean(); $data = preg_replace('\'(?!((<.*?)|(<a.*?)|(<strong.*?)))(' . $kw . ')(?!(([^<>]*?)>)|([^>]*?</a>)|([^>]*?</strong>))\'si', '<span class=highlight>' . $kw . '</span>', $data); $data = preg_replace('/<span class=highlight>/', '<a name=high></a><span class=highlight>', $data, 1); echo $data ? $data : $content; } } break; }