win32 to unix line delimiters changed
[mailer.git] / 0.2.1 / inc / modules / admin / what-config_other.php
index d2bf210552c98b478022dac222737873e3de6860..9f00f402f812ef5fe34dfe2091c7bfa3255c9465 100644 (file)
-<?php\r
-/************************************************************************\r
- * MXChange v0.2.1                                    Start: 10/11/2003 *\r
- * ===============                              Last change: 09/21/2004 *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * File              : what-config_other.php                            *\r
- * -------------------------------------------------------------------- *\r
- * Short description : basic settings                                   *\r
- * -------------------------------------------------------------------- *\r
- * Kurzbeschreibung  : Grund Einstellungen                              *\r
- * -------------------------------------------------------------------- *\r
- *                                                                      *\r
- * -------------------------------------------------------------------- *\r
- * Copyright (c) 2003 - 2008 by Roland Haeder                           *\r
- * For more information visit: http://www.mxchange.org                  *\r
- *                                                                      *\r
- * This program is free software; you can redistribute it and/or modify *\r
- * it under the terms of the GNU General Public License as published by *\r
- * the Free Software Foundation; either version 2 of the License, or    *\r
- * (at your option) any later version.                                  *\r
- *                                                                      *\r
- * This program is distributed in the hope that it will be useful,      *\r
- * but WITHOUT ANY WARRANTY; without even the implied warranty of       *\r
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *\r
- * GNU General Public License for more details.                         *\r
- *                                                                      *\r
- * You should have received a copy of the GNU General Public License    *\r
- * along with this program; if not, write to the Free Software          *\r
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *\r
- * MA  02110-1301  USA                                                  *\r
- ************************************************************************/\r
-\r
-// Some security stuff...\r
-if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))\r
-{\r
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";\r
-       require($INC);\r
-} elseif ((!EXT_IS_ACTIVE("other")) || (GET_EXT_VERSION("other") == "")) {\r
-       // Missing extension!\r
-       ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "other"));\r
-       return;\r
-}\r
-global $link;\r
-\r
-// Add description as navigation point\r
-ADD_DESCR("admin", basename(__FILE__));\r
-\r
-// Stop saving data if one input field is !isset\r
-if (isset($_POST['ok']))\r
-{\r
-       if (function_exists('CREATE_TIME_SELECTIONS'))\r
-       {\r
-               // Calculate stamps and set calculated stamps\r
-               $_POST['online_timeout']        = CREATE_TIMESTAMP_FROM_SELECTIONS("ip_timeout"           , $_POST);\r
-               $_POST['url_tlock']             = CREATE_TIMESTAMP_FROM_SELECTIONS("url_tlock"            , $_POST);\r
-               $_POST['profile_lock']          = CREATE_TIMESTAMP_FROM_SELECTIONS("profile_lock"         , $_POST);\r
-               $_POST['profile_update']        = CREATE_TIMESTAMP_FROM_SELECTIONS("profile_update"       , $_POST);\r
-               $_POST['resend_profile_update'] = CREATE_TIMESTAMP_FROM_SELECTIONS("resend_profile_update", $_POST);\r
-       }\r
-\r
-       // Online-Timeout shall be > 0 or your database will crow and crow and crow...\r
-       if (!isset($_POST['online_timeout']))         { unset($_POST['ok']); }\r
-\r
-       // Chedck other timestamps (which can be zero!)\r
-       if (!isset($_POST['profile_lock']))          { unset($_POST['ok']); }\r
-       if (!isset($_POST['url_tlock']))             { unset($_POST['ok']); }\r
-       if (!isset($_POST['profile_update']))        { unset($_POST['ok']); }\r
-       if (!isset($_POST['resend_profile_update'])) { unset($_POST['ok']); }\r
-\r
-       // Check other settings\r
-       if (!isset($_POST['max_send']))              { unset($_POST['ok']); }\r
-       if (!isset($_POST['max_tlength']))           { unset($_POST['ok']); }\r
-       if (!isset($_POST['unconfirmed']))           { unset($_POST['ok']); }\r
-       if (!isset($_POST['code_length']))           { unset($_POST['ok']); }\r
-       if (!isset($_POST['reject_url']))            { unset($_POST['ok']); }\r
-}\r
-\r
-OPEN_TABLE("100%", "admin_content admin_content_align", "");\r
-if (isset($_POST['ok']))\r
-{\r
-       // Update stamps directly\r
-       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");\r
-}\r
- else\r
-{\r
-       // Transfer config data into constants for the template (DO NOT set $CONFIG as global in LOAD_TEMPLATE!!!)\r
-       define('_CFG_UNCONFIRMED'   , $CONFIG['unconfirmed']);\r
-       define('_CFG_MAX_TLENGTH'   , $CONFIG['max_tlength']);\r
-       define('_CFG_CODE_LENGTH'   , $CONFIG['code_length']);\r
-       define('_CFG_ACT_SYSTEM'    , $CONFIG['activate_xchange']);\r
-       define('_CFG_MAX_SEND'      , $CONFIG['max_send']);\r
-       define('_CFG_REJECT_URL'    , $CONFIG['reject_url']);\r
-\r
-       // Is there the pro-version function avaiable to create selection boxes instead of input boxes?\r
-       if (function_exists('CREATE_TIME_SELECTIONS'))\r
-       {\r
-               // Only pro versions: time selection boxes\r
-               define('_CFG_ONLINE_TIMEOUT', CREATE_TIME_SELECTIONS($CONFIG['online_timeout'], "ip_timeout"           , "ms"));\r
-               define('_CFG_URL_TLOCK'     , CREATE_TIME_SELECTIONS($CONFIG['url_tlock']     , "url_tlock"            , "WDh"));\r
-               define('_CFG_PROFILE_LOCK'  , CREATE_TIME_SELECTIONS($CONFIG['profile_lock']  , "profile_lock"         , "WDh"));\r
-               define('_CFG_PROFILE_UPDATE', CREATE_TIME_SELECTIONS($CONFIG['profile_update'], "profile_update"       , "YM"));\r
-               define('_CFG_PROF_REUPDATE' , CREATE_TIME_SELECTIONS($CONFIG['resend_profile_update'] , "resend_profile_update", "MWD"));\r
-       }\r
-        else\r
-       {\r
-               // Normal input boxes\r
-               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>");\r
-               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>");\r
-               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>");\r
-               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>");\r
-               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>");\r
-       }\r
-\r
-       if ($CONFIG['test_text'] == "N")\r
-       {\r
-               define('_CFG_TEST_TEXT_N', " checked");\r
-               define('_CFG_TEST_TEXT_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_TEST_TEXT_N', "");\r
-               define('_CFG_TEST_TEXT_Y', " checked");\r
-       }\r
-       if ($CONFIG['test_subj'] == "N")\r
-       {\r
-               define('_CFG_TEST_SUBJ_N', " checked");\r
-               define('_CFG_TEST_SUBJ_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_TEST_SUBJ_N', "");\r
-               define('_CFG_TEST_SUBJ_Y', " checked");\r
-       }\r
-       if ($CONFIG['url_blacklist'] == "N")\r
-       {\r
-               define('_CFG_URL_BLIST_N', " checked");\r
-               define('_CFG_URL_BLIST_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_URL_BLIST_N', "");\r
-               define('_CFG_URL_BLIST_Y', " checked");\r
-       }\r
-       if ($CONFIG['order_multi_page'] == "N")\r
-       {\r
-               define('_CFG_ORDER_MULTI_N', " checked");\r
-               define('_CFG_ORDER_MULTI_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_ORDER_MULTI_N', "");\r
-               define('_CFG_ORDER_MULTI_Y', " checked");\r
-       }\r
-       if ($CONFIG['autosend_active'] == "N")\r
-       {\r
-               define('_CFG_AUTOSEND_ACTIVE_N', " checked");\r
-               define('_CFG_AUTOSEND_ACTIVE_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_AUTOSEND_ACTIVE_N', "");\r
-               define('_CFG_AUTOSEND_ACTIVE_Y', " checked");\r
-       }\r
-       if ($CONFIG['send_prof_update'] == "N")\r
-       {\r
-               define('_CFG_SEND_UPDATE_N', " checked");\r
-               define('_CFG_SEND_UPDATE_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_SEND_UPDATE_N', "");\r
-               define('_CFG_SEND_UPDATE_Y', " checked");\r
-       }\r
-       if ($CONFIG['admin_notify'] == "N")\r
-       {\r
-               define('_CFG_ADMIN_NOTIFY_N', " checked");\r
-               define('_CFG_ADMIN_NOTIFY_Y', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_ADMIN_NOTIFY_N', "");\r
-               define('_CFG_ADMIN_NOTIFY_Y', " checked");\r
-       }\r
-       if ($CONFIG['css_php'] == "DIRECT")\r
-       {\r
-               define('_CFG_CSS_PHP_DIRECT', " checked");\r
-               define('_CFG_CSS_PHP_FILE', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_CSS_PHP_DIRECT', "");\r
-               define('_CFG_CSS_PHP_FILE', " checked");\r
-       }\r
-       if ($CONFIG['guest_menu'] == "Y")\r
-       {\r
-               define('_CFG_GUEST_MENU_ACTIVE', " checked");\r
-               define('_CFG_GUEST_MENU_INACTIVE', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_GUEST_MENU_ACTIVE', "");\r
-               define('_CFG_GUEST_MENU_INACTIVE', " checked");\r
-       }\r
-       if ($CONFIG['member_menu'] == "Y")\r
-       {\r
-               define('_CFG_MEMBER_MENU_ACTIVE', " checked");\r
-               define('_CFG_MEMBER_MENU_INACTIVE', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_MEMBER_MENU_ACTIVE', "");\r
-               define('_CFG_MEMBER_MENU_INACTIVE', " checked");\r
-       }\r
-       if ($CONFIG['youre_here'] == "Y")\r
-       {\r
-               define('_CFG_YOURE_HERE_ACTIVE', " checked");\r
-               define('_CFG_YOURE_HERE_INACTIVE', "");\r
-       }\r
-        else\r
-       {\r
-               define('_CFG_YOURE_HERE_ACTIVE', "");\r
-               define('_CFG_YOURE_HERE_INACTIVE', " checked");\r
-       }\r
-\r
-       for ($i = 0; $i <= 5; $i++)\r
-       {\r
-               $eval = "define('_COMMA_DEF_".$i."', \"\");";\r
-               if ($CONFIG['max_comma'] == $i) $eval = "define('_COMMA_DEF_".$i."', \" selected\");";\r
-               eval($eval);\r
-       }\r
-\r
-       // Load template\r
-       LOAD_TEMPLATE("admin_config_other");\r
-}\r
-CLOSE_TABLE();\r
-//\r
-?>\r
+<?php
+/************************************************************************
+ * MXChange v0.2.1                                    Start: 10/11/2003 *
+ * ===============                              Last change: 09/21/2004 *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * File              : what-config_other.php                            *
+ * -------------------------------------------------------------------- *
+ * Short description : basic settings                                   *
+ * -------------------------------------------------------------------- *
+ * Kurzbeschreibung  : Grund Einstellungen                              *
+ * -------------------------------------------------------------------- *
+ *                                                                      *
+ * -------------------------------------------------------------------- *
+ * Copyright (c) 2003 - 2008 by Roland Haeder                           *
+ * For more information visit: http://www.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 *
+ * the Free Software Foundation; either version 2 of the License, or    *
+ * (at your option) any later version.                                  *
+ *                                                                      *
+ * This program is distributed in the hope that it will be useful,      *
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of       *
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        *
+ * GNU General Public License for more details.                         *
+ *                                                                      *
+ * You should have received a copy of the GNU General Public License    *
+ * along with this program; if not, write to the Free Software          *
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,               *
+ * MA  02110-1301  USA                                                  *
+ ************************************************************************/
+
+// Some security stuff...
+if ((ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) || (!IS_ADMIN()))
+{
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       require($INC);
+} elseif ((!EXT_IS_ACTIVE("other")) || (GET_EXT_VERSION("other") == "")) {
+       // Missing extension!
+       ADD_FATAL(sprintf(EXTENSION_PROBLEM_NOT_INSTALLED, "other"));
+       return;
+}
+global $link;
+
+// Add description as navigation point
+ADD_DESCR("admin", basename(__FILE__));
+
+// Stop saving data if one input field is !isset
+if (isset($_POST['ok']))
+{
+       if (function_exists('CREATE_TIME_SELECTIONS'))
+       {
+               // Calculate stamps and set calculated stamps
+               $_POST['online_timeout']        = CREATE_TIMESTAMP_FROM_SELECTIONS("ip_timeout"           , $_POST);
+               $_POST['url_tlock']             = CREATE_TIMESTAMP_FROM_SELECTIONS("url_tlock"            , $_POST);
+               $_POST['profile_lock']          = CREATE_TIMESTAMP_FROM_SELECTIONS("profile_lock"         , $_POST);
+               $_POST['profile_update']        = CREATE_TIMESTAMP_FROM_SELECTIONS("profile_update"       , $_POST);
+               $_POST['resend_profile_update'] = CREATE_TIMESTAMP_FROM_SELECTIONS("resend_profile_update", $_POST);
+       }
+
+       // Online-Timeout shall be > 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['max_tlength']))           { unset($_POST['ok']); }
+       if (!isset($_POST['unconfirmed']))           { unset($_POST['ok']); }
+       if (!isset($_POST['code_length']))           { unset($_POST['ok']); }
+       if (!isset($_POST['reject_url']))            { unset($_POST['ok']); }
+}
+
+OPEN_TABLE("100%", "admin_content admin_content_align", "");
+if (isset($_POST['ok']))
+{
+       // Update stamps directly
+       ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
+}
+ 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>");
+       }
+
+       if ($CONFIG['test_text'] == "N")
+       {
+               define('_CFG_TEST_TEXT_N', " checked");
+               define('_CFG_TEST_TEXT_Y', "");
+       }
+        else
+       {
+               define('_CFG_TEST_TEXT_N', "");
+               define('_CFG_TEST_TEXT_Y', " checked");
+       }
+       if ($CONFIG['test_subj'] == "N")
+       {
+               define('_CFG_TEST_SUBJ_N', " checked");
+               define('_CFG_TEST_SUBJ_Y', "");
+       }
+        else
+       {
+               define('_CFG_TEST_SUBJ_N', "");
+               define('_CFG_TEST_SUBJ_Y', " checked");
+       }
+       if ($CONFIG['url_blacklist'] == "N")
+       {
+               define('_CFG_URL_BLIST_N', " checked");
+               define('_CFG_URL_BLIST_Y', "");
+       }
+        else
+       {
+               define('_CFG_URL_BLIST_N', "");
+               define('_CFG_URL_BLIST_Y', " checked");
+       }
+       if ($CONFIG['order_multi_page'] == "N")
+       {
+               define('_CFG_ORDER_MULTI_N', " checked");
+               define('_CFG_ORDER_MULTI_Y', "");
+       }
+        else
+       {
+               define('_CFG_ORDER_MULTI_N', "");
+               define('_CFG_ORDER_MULTI_Y', " checked");
+       }
+       if ($CONFIG['autosend_active'] == "N")
+       {
+               define('_CFG_AUTOSEND_ACTIVE_N', " checked");
+               define('_CFG_AUTOSEND_ACTIVE_Y', "");
+       }
+        else
+       {
+               define('_CFG_AUTOSEND_ACTIVE_N', "");
+               define('_CFG_AUTOSEND_ACTIVE_Y', " checked");
+       }
+       if ($CONFIG['send_prof_update'] == "N")
+       {
+               define('_CFG_SEND_UPDATE_N', " checked");
+               define('_CFG_SEND_UPDATE_Y', "");
+       }
+        else
+       {
+               define('_CFG_SEND_UPDATE_N', "");
+               define('_CFG_SEND_UPDATE_Y', " checked");
+       }
+       if ($CONFIG['admin_notify'] == "N")
+       {
+               define('_CFG_ADMIN_NOTIFY_N', " checked");
+               define('_CFG_ADMIN_NOTIFY_Y', "");
+       }
+        else
+       {
+               define('_CFG_ADMIN_NOTIFY_N', "");
+               define('_CFG_ADMIN_NOTIFY_Y', " checked");
+       }
+       if ($CONFIG['css_php'] == "DIRECT")
+       {
+               define('_CFG_CSS_PHP_DIRECT', " checked");
+               define('_CFG_CSS_PHP_FILE', "");
+       }
+        else
+       {
+               define('_CFG_CSS_PHP_DIRECT', "");
+               define('_CFG_CSS_PHP_FILE', " checked");
+       }
+       if ($CONFIG['guest_menu'] == "Y")
+       {
+               define('_CFG_GUEST_MENU_ACTIVE', " checked");
+               define('_CFG_GUEST_MENU_INACTIVE', "");
+       }
+        else
+       {
+               define('_CFG_GUEST_MENU_ACTIVE', "");
+               define('_CFG_GUEST_MENU_INACTIVE', " checked");
+       }
+       if ($CONFIG['member_menu'] == "Y")
+       {
+               define('_CFG_MEMBER_MENU_ACTIVE', " checked");
+               define('_CFG_MEMBER_MENU_INACTIVE', "");
+       }
+        else
+       {
+               define('_CFG_MEMBER_MENU_ACTIVE', "");
+               define('_CFG_MEMBER_MENU_INACTIVE', " checked");
+       }
+       if ($CONFIG['youre_here'] == "Y")
+       {
+               define('_CFG_YOURE_HERE_ACTIVE', " checked");
+               define('_CFG_YOURE_HERE_INACTIVE', "");
+       }
+        else
+       {
+               define('_CFG_YOURE_HERE_ACTIVE', "");
+               define('_CFG_YOURE_HERE_INACTIVE', " checked");
+       }
+
+       for ($i = 0; $i <= 5; $i++)
+       {
+               $eval = "define('_COMMA_DEF_".$i."', \"\");";
+               if ($CONFIG['max_comma'] == $i) $eval = "define('_COMMA_DEF_".$i."', \" selected\");";
+               eval($eval);
+       }
+
+       // Load template
+       LOAD_TEMPLATE("admin_config_other");
+}
+CLOSE_TABLE();
+//
+?>