// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-if (isset($_POST['ok']))
-{
+if (isset($_POST['ok'])) {
// Save data
- ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
-}
- else
-{
+ ADMIN_SAVE_SETTINGS($_POST);
+} else {
// Prepare contants for the template
- ADD_MEMBER_SELECTION_BOX(false, true, true, $CONFIG['def_refid']);
+ ADD_MEMBER_SELECTION_BOX($_CONFIG['def_refid'], false, true, true);
- switch ($CONFIG['refid_target'])
- {
+ switch ($_CONFIG['refid_target']) {
case "index": define('__DEF_RT_INDEX', " selected=\"selected\""); define('__DEF_RT_REGISTER', ""); break;
case "register": define('__DEF_RT_INDEX', ""); define('__DEF_RT_REGISTER', " selected=\"selected\""); break;
}
+
// Load template
LOAD_TEMPLATE("admin_config_refid");
}