Пример #1
0
function reAllCache()
{
    global $arrSideModule;
    categories_recount();
    categories_recache();
    calendar_recache();
    statistics_recache();
    hottags_recache();
    archives_recache();
    links_recache();
    filters_recache();
    keywords_recache();
    recentLogs_recache();
    recentComments_recache();
    recentGbooks_recache();
    logsTitle_recache();
    modulesSetting_recache();
    download_recache();
    attachments_recache();
    members_recache();
    skinlist_recache();
    online_recache();
    logs_sidebar_recache($arrSideModule);
}
Пример #2
0
            modulesSetting_recache();
        } else {
            $ActionMessage = "{$strf2Plugins} <b>{$plugin}: </b>" . $ActionMessage;
        }
    }
    $action = "";
}
if ($action == "setSave") {
    $plugin = basename($_GET['plugin']);
    $title = "{$strf2Plugins} <b>{$plugin}</b> {$strPluginSetting}";
    include_once F2BLOG_ROOT . "plugins/{$plugin}/setting.php";
    $modId = getFieldValue($DBPrefix . "modules", "name='{$plugin}'", "id");
    $ActionMessage = call_user_func_array($plugin . "_setSave", array($_POST, $modId));
    if ($ActionMessage == "") {
        $ActionMessage = "{$strf2Plugins} <b>{$plugin}</b> {$strPluginSetting}{$strSuccess}!";
        modulesSetting_recache();
    } else {
        $ActionMessage = "{$strf2Plugins} <b>{$plugin}: </b>" . $ActionMessage;
    }
    //Redirect setting
    $action = "set";
}
if ($action == "set") {
    $plugin = basename($_GET['plugin']);
    $title = "{$strf2Plugins} {$plugin} {$strPluginSetting}";
    $arr = getModSet($plugin);
    include_once "../plugins/{$plugin}/setting.php";
    $setCode = call_user_func($plugin . "_setCode", $arr);
    if (function_exists($plugin . "_fieldCheck")) {
        $fieldCheck = call_user_func($plugin . "_fieldCheck");
    } else {