// Add description as navigation point
ADD_DESCR("admin", __FILE__);
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
// Save data
- ADMIN_SAVE_SETTINGS($_POST);
+ ADMIN_SAVE_SETTINGS_POST();
} else {
// Prepare constants for the template
switch (getConfig('order_max_full'))
break;
}
- // Transfer other config data into constants for the template (DO NOT set $_CONFIG as global in LOAD_TEMPLATE!!!)
+ // Transfer other config data into constants for the template
define('_CFG_UNCONFIRMED' , getConfig('unconfirmed'));
define('_CFG_MAX_TLENGTH' , getConfig('max_tlength'));