SystemPref::Set("UseDBReplication", 'N'); } // template filter SystemPref::Set("TemplateFilter", $f_template_filter); // External cron management SystemPref::Set('ExternalCronManagement', $f_external_cron_management); // geolocation foreach ($f_geo as $key => $value) { $name = ''; foreach (explode('_', $key) as $part) { $name .= ucfirst($part); } SystemPref::Set($name, $value); } $logtext = getGS('System preferences updated'); Log::Message($logtext, $g_user->getUserId(), 171); // Success message if everything was ok if ($msg_ok == 1) { camp_html_add_msg(getGS("System preferences updated."), "ok"); } CampPlugin::PluginAdminHooks(__FILE__); camp_html_goto_page("/$ADMIN/system_pref/"); ?>