<?php
/************************************************************************
- * MXChange v0.2.1 Start: 10/12/2003 *
- * =============== Last change: 11/29/2005 *
+ * Mailer v0.2.1-FINAL Start: 10/12/2003 *
+ * =================== Last change: 11/29/2005 *
* *
* -------------------------------------------------------------------- *
* File : what-config_register2.php *
* -------------------------------------------------------------------- *
* Adapted from what-config_reg.php *
* -------------------------------------------------------------------- *
- * Copyright (c) 2003 - 2008 by Roland Haeder *
- * For more information visit: http://www.mxchange.org *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2009 by Roland Haeder *
+ * Copyright (c) 2009 - 2013 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
************************************************************************/
// Some security stuff...
-if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
- require($INC);
-}
+if ((!defined('__SECURITY')) || (!isAdmin())) {
+ die();
+} // END - if
// Add description as navigation point
-ADD_DESCR('admin', __FILE__);
+addYouAreHereLink('admin', __FILE__);
-if (IS_FORM_SENT()) {
+if (isFormSent('save_config')) {
// Calculate timestamp from selections...
- REQUEST_SET_POST('ip_timeout', CREATE_TIMESTAMP_FROM_SELECTIONS("ip_timeout", REQUEST_POST_ARRAY()));
- REQUEST_SET_POST('least_cats', round(REQUEST_POST('least_cats')));
+ setPostRequestElement('ip_timeout', createEpocheTimeFromSelections('ip_timeout', postRequestArray()));
+ setPostRequestElement('least_cats', round(postRequestElement('least_cats')));
// Save settings
- ADMIN_SAVE_SETTINGS_POST();
+ adminSaveSettingsFromPostData();
} else {
// Remember stuff in constants
- define('LEAST_CATS_VALUE' , round(getConfig('least_cats')));
- define('__CFG_SHOW_REFID' , ADD_SELECTION("yn", getConfig('display_refid') , "display_refid"));
- define('__TIMEOUT_SELECTION', CREATE_TIME_SELECTIONS(getConfig('ip_timeout') , "ip_timeout", "Dhm"));
- define('__CFG_DBL_EMAIL' , ADD_SELECTION("yn", getConfig('check_double_email') , "check_double_email"));
- define('__CFG_DBL_PASS' , ADD_SELECTION("yn", getConfig('check_double_pass') , "check_double_pass"));
- define('__CFG_CAT_DEFAULT' , ADD_SELECTION("yn", getConfig('register_default'), "register_default"));
+ $content['ip_timeout'] = createConfigurationTimeSelections('ip_timeout', 'Dhm');
// Load normal template
- LOAD_TEMPLATE("admin_config_register2");
+ loadTemplate('admin_config_register2', FALSE, $content);
}
-//
+// [EOF]
?>