-}
- else
-{
- // Transfer config data into constants for the template (DO NOT set $CONFIG as global in LOAD_TEMPLATE!!!)
- define('_CFG_UNCONFIRMED' , $CONFIG['unconfirmed']);
- define('_CFG_MAX_TLENGTH' , $CONFIG['max_tlength']);
- define('_CFG_CODE_LENGTH' , $CONFIG['code_length']);
- define('_CFG_ACT_SYSTEM' , $CONFIG['activate_xchange']);
- define('_CFG_MAX_SEND' , $CONFIG['max_send']);
- define('_CFG_REJECT_URL' , $CONFIG['reject_url']);
-
- // Is there the pro-version function avaiable to create selection boxes instead of input boxes?
- if (function_exists('CREATE_TIME_SELECTIONS'))
- {
- // Only pro versions: time selection boxes
- define('_CFG_ONLINE_TIMEOUT', CREATE_TIME_SELECTIONS($CONFIG['online_timeout'], "ip_timeout" , "ms"));
- define('_CFG_URL_TLOCK' , CREATE_TIME_SELECTIONS($CONFIG['url_tlock'] , "url_tlock" , "WDh"));
- define('_CFG_PROFILE_LOCK' , CREATE_TIME_SELECTIONS($CONFIG['profile_lock'] , "profile_lock" , "WDh"));
- define('_CFG_PROFILE_UPDATE', CREATE_TIME_SELECTIONS($CONFIG['profile_update'], "profile_update" , "YM"));
- define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS($CONFIG['resend_profile_update'] , "resend_profile_update", "MWD"));
- }
- else
- {
- // Normal input boxes
- define('_CFG_ONLINE_TIMEOUT', "<INPUT type=\"text\" name=\"online_timeout\" class=\"admin_normal\" size=\"6\" maxlength=\"255\" value=\"".$CONFIG['online_timeout']."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
- define('_CFG_URL_TLOCK' , "<INPUT type=\"text\" name=\"url_tlock\" class=\"admin_normal\" size=\"6\" maxlength=\"255\" value=\"".$CONFIG['url_tlock'] ."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
- define('_CFG_PROFILE_LOCK' , "<INPUT type=\"text\" name=\"profile_lock\" class=\"admin_normal\" size=\"6\" maxlength=\"255\" value=\"".$CONFIG['profile_lock'] ."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
- define('_CFG_PROFILE_UPDATE', "<INPUT type=\"text\" name=\"profile_update\" class=\"admin_normal\" size=\"10\" maxlength=\"255\" value=\"".$CONFIG['profile_update']."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
- define('_CFG_PROF_REUPDATE' , "<INPUT type=\"text\" name=\"resend_profile_update\" class=\"admin_normal\" size=\"6\" maxlength=\"255\" value=\"".$CONFIG['resend_profile_update'] ."\"> <FONT class=\"tiny\">(".SECS.")</FONT>");
- }
+} else {
+ // Transfer config data into constants for the template (DO NOT set $_CONFIG as global in LOAD_TEMPLATE!!!)
+ define('_CFG_CODE_LENGTH', getConfig('code_length'));
+ define('_CFG_ACT_SYSTEM' , getConfig('activate_xchange'));
+ define('_CFG_MAX_SEND' , getConfig('max_send'));
+ define('_CFG_REJECT_URL' , getConfig('reject_url'));
+ define('_CFG_MIN_AGE' , getConfig('min_age'));