]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/admin/what-config_removeip.php
More XHTML-fied and extended header added to templates
[mailer.git] / inc / modules / admin / what-config_removeip.php
index 443d032ff8e37f1396937464be26d642ba2ebb87..5786970b55f69ad4dde5d5471bd4d9b0e15bea40 100644 (file)
  * -------------------------------------------------------------------- *
  * Kurzbeschreibung  : Konfiguration des Caching-Systems                *
  * -------------------------------------------------------------------- *
- *                                                                      *
+ * $Revision:: 856                                                    $ *
+ * $Date:: 2009-03-06 20:24:32 +0100 (Fr, 06. March 2009)             $ *
+ * $Tag:: 0.2.1-FINAL                                                 $ *
+ * $Author:: stelzi                                                   $ *
+ * Needs to be in all Files and every File needs "svn propset           *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!!            *
  * -------------------------------------------------------------------- *
  * Copyright (c) 2003 - 2008 by Roland Haeder                           *
  * For more information visit: http://www.mxchange.org                  *
@@ -38,110 +43,110 @@ if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
 }
 
 // Add description as navigation point
-ADD_DESCR("admin", basename(__FILE__));
+ADD_DESCR("admin", __FILE__);
 
-if (isset($_POST['ok'])) {
+if (IS_FORM_SENT()) {
        // Save configuration
-       ADMIN_SAVE_SETTINGS($_POST);
+       ADMIN_SAVE_SETTINGS_POST();
 } else {
        // Prepare data
-       switch ($_CONFIG['removeip_anon_ip']) {
-               case 'Y':
+       switch (getConfig('removeip_anon_ip')) {
+               case "Y":
                        define('__CFG_REMOVEIP_ANON_IP_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_ANON_IP_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_ANON_IP_Y', "");
                        define('__CFG_REMOVEIP_ANON_IP_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_anon_host']) {
-               case 'Y':
+       switch (getConfig('removeip_anon_host')) {
+               case "Y":
                        define('__CFG_REMOVEIP_ANON_HOST_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_ANON_HOST_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_ANON_HOST_Y', "");
                        define('__CFG_REMOVEIP_ANON_HOST_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_anon_ua']) {
-               case 'Y':
+       switch (getConfig('removeip_anon_ua')) {
+               case "Y":
                        define('__CFG_REMOVEIP_ANON_UA_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_ANON_UA_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_ANON_UA_Y', "");
                        define('__CFG_REMOVEIP_ANON_UA_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_anon_ref']) {
-               case 'Y':
+       switch (getConfig('removeip_anon_ref')) {
+               case "Y":
                        define('__CFG_REMOVEIP_ANON_REF_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_ANON_REF_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_ANON_REF_Y', "");
                        define('__CFG_REMOVEIP_ANON_REF_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_admin_show']) {
-               case 'Y':
+       switch (getConfig('removeip_admin_show')) {
+               case "Y":
                        define('__CFG_REMOVEIP_ADMIN_SHOW_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_ADMIN_SHOW_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_ADMIN_SHOW_Y', "");
                        define('__CFG_REMOVEIP_ADMIN_SHOW_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_guest_show']) {
-               case 'Y':
+       switch (getConfig('removeip_guest_show')) {
+               case "Y":
                        define('__CFG_REMOVEIP_GUEST_SHOW_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_GUEST_SHOW_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_GUEST_SHOW_Y', "");
                        define('__CFG_REMOVEIP_GUEST_SHOW_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_member_show']) {
-               case 'Y':
+       switch (getConfig('removeip_member_show')) {
+               case "Y":
                        define('__CFG_REMOVEIP_MEMBER_SHOW_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_MEMBER_SHOW_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_MEMBER_SHOW_Y', "");
                        define('__CFG_REMOVEIP_MEMBER_SHOW_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['removeip_sponsor_show']) {
-               case 'Y':
+       switch (getConfig('removeip_sponsor_show')) {
+               case "Y":
                        define('__CFG_REMOVEIP_SPONSOR_SHOW_Y', " checked=\"checked\"");
                        define('__CFG_REMOVEIP_SPONSOR_SHOW_N', "");
                        break;
 
-               case 'N':
+               case "N":
                        define('__CFG_REMOVEIP_SPONSOR_SHOW_Y', "");
                        define('__CFG_REMOVEIP_SPONSOR_SHOW_N', " checked=\"checked\"");
                        break;
        } // END - switch
 
-       switch ($_CONFIG['anonymous_ip']) {
+       switch (getConfig('anonymous_ip')) {
                case "127.0.0.1":
                        define('__CFG_ANONYMOUS_IP_LOCAL' , " selected=\"selected\"");
                        define('__CFG_ANONYMOUS_IP_ZERO'  , "");