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 { $fieldCheck = array(); } include "plugins_set.inc.php"; } if ($action == "advset") { $plugin = basename($_GET['plugin']); $title = "{$strf2Plugins} {$plugin} {$strPluginSettingAdvEdit}"; $adv = "../plugins/{$plugin}/advanced.php"; include "plugins_adv.inc.php"; }
function flashLink_setUpdate() { global $DBPrefix; $plugin = "flashLink"; $modId = getFieldValue($DBPrefix . "modules", "name='{$plugin}'", "id"); $arr = getModSet($plugin); $ActionMessage = flashLink_setSave($arr, $modId); }