Ejemplo n.º 1
0
function cache_all()
{
    cache_module();
    cache_area();
    cache_category();
    cache_fields();
    cache_group();
    cache_pay();
    cache_oauth();
    cache_type();
    cache_keylink();
    return true;
}
Ejemplo n.º 2
0
    }
    update_setting($moduleid, $setting);
    cache_module($moduleid);
    $ext_oauth = $setting['oauth'];
    if ($oauth['sina']['enable'] && $oauth['sina']['sync']) {
        $ext_oauth .= ',sina';
    }
    if ($oauth['qq']['enable'] && $oauth['qq']['sync']) {
        $ext_oauth .= ',qq';
    }
    $db->query("UPDATE {$DT_PRE}setting SET item_value='{$ext_oauth}' WHERE item_key='oauth' AND item='3'");
    cache_module(3);
    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) {