0 or your database will crow and crow and crow...
if (!isset($_POST['online_timeout'])) { unset($_POST['ok']); }
// Chedck other timestamps (which can be zero!)
if (!isset($_POST['profile_lock'])) { unset($_POST['ok']); }
if (!isset($_POST['url_tlock'])) { unset($_POST['ok']); }
if (!isset($_POST['profile_update'])) { unset($_POST['ok']); }
if (!isset($_POST['resend_profile_update'])) { unset($_POST['ok']); }
// Check other settings
if (!isset($_POST['max_send'])) { unset($_POST['ok']); }
if (!isset($_POST['code_length'])) { unset($_POST['ok']); }
if (!isset($_POST['reject_url'])) { unset($_POST['ok']); }
}
if (isset($_POST['ok'])) {
// Update stamps directly
ADMIN_SAVE_SETTINGS($_POST);
} 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'));
// 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(getConfig('online_timeout'), "ip_timeout" , "ms"));
define('_CFG_URL_TLOCK' , CREATE_TIME_SELECTIONS(getConfig('url_tlock') , "url_tlock" , "WDh"));
define('_CFG_PROFILE_LOCK' , CREATE_TIME_SELECTIONS(getConfig('profile_lock') , "profile_lock" , "WDh"));
define('_CFG_PROFILE_UPDATE', CREATE_TIME_SELECTIONS(getConfig('profile_update'), "profile_update" , "YM"));
define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS(getConfig('resend_profile_update') , "resend_profile_update", "MWD"));
} else {
// Normal input boxes
define('_CFG_ONLINE_TIMEOUT', "