2 /************************************************************************
3 * MXChange v0.2.1 Start: 10/01/2008 *
4 * ================ Last change: 10/01/2008 *
6 * -------------------------------------------------------------------- *
7 * File : what-config_removeip.php *
8 * -------------------------------------------------------------------- *
9 * Short description : Configuration for the caching system *
10 * -------------------------------------------------------------------- *
11 * Kurzbeschreibung : Konfiguration des Caching-Systems *
12 * -------------------------------------------------------------------- *
14 * -------------------------------------------------------------------- *
15 * Copyright (c) 2003 - 2008 by Roland Haeder *
16 * For more information visit: http://www.mxchange.org *
18 * This program is free software; you can redistribute it and/or modify *
19 * it under the terms of the GNU General Public License as published by *
20 * the Free Software Foundation; either version 2 of the License, or *
21 * (at your option) any later version. *
23 * This program is distributed in the hope that it will be useful, *
24 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
25 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
26 * GNU General Public License for more details. *
28 * You should have received a copy of the GNU General Public License *
29 * along with this program; if not, write to the Free Software *
30 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, *
32 ************************************************************************/
34 // Some security stuff...
35 if ((!defined('__SECURITY')) || (!IS_ADMIN())) {
36 $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
40 // Add description as navigation point
41 ADD_DESCR("admin", __FILE__);
43 if (isset($_POST['ok'])) {
45 ADMIN_SAVE_SETTINGS($_POST);
48 switch ($_CONFIG['removeip_anon_ip']) {
50 define('__CFG_REMOVEIP_ANON_IP_Y', " checked=\"checked\"");
51 define('__CFG_REMOVEIP_ANON_IP_N', "");
55 define('__CFG_REMOVEIP_ANON_IP_Y', "");
56 define('__CFG_REMOVEIP_ANON_IP_N', " checked=\"checked\"");
60 switch ($_CONFIG['removeip_anon_host']) {
62 define('__CFG_REMOVEIP_ANON_HOST_Y', " checked=\"checked\"");
63 define('__CFG_REMOVEIP_ANON_HOST_N', "");
67 define('__CFG_REMOVEIP_ANON_HOST_Y', "");
68 define('__CFG_REMOVEIP_ANON_HOST_N', " checked=\"checked\"");
72 switch ($_CONFIG['removeip_anon_ua']) {
74 define('__CFG_REMOVEIP_ANON_UA_Y', " checked=\"checked\"");
75 define('__CFG_REMOVEIP_ANON_UA_N', "");
79 define('__CFG_REMOVEIP_ANON_UA_Y', "");
80 define('__CFG_REMOVEIP_ANON_UA_N', " checked=\"checked\"");
84 switch ($_CONFIG['removeip_anon_ref']) {
86 define('__CFG_REMOVEIP_ANON_REF_Y', " checked=\"checked\"");
87 define('__CFG_REMOVEIP_ANON_REF_N', "");
91 define('__CFG_REMOVEIP_ANON_REF_Y', "");
92 define('__CFG_REMOVEIP_ANON_REF_N', " checked=\"checked\"");
96 switch ($_CONFIG['removeip_admin_show']) {
98 define('__CFG_REMOVEIP_ADMIN_SHOW_Y', " checked=\"checked\"");
99 define('__CFG_REMOVEIP_ADMIN_SHOW_N', "");
103 define('__CFG_REMOVEIP_ADMIN_SHOW_Y', "");
104 define('__CFG_REMOVEIP_ADMIN_SHOW_N', " checked=\"checked\"");
108 switch ($_CONFIG['removeip_guest_show']) {
110 define('__CFG_REMOVEIP_GUEST_SHOW_Y', " checked=\"checked\"");
111 define('__CFG_REMOVEIP_GUEST_SHOW_N', "");
115 define('__CFG_REMOVEIP_GUEST_SHOW_Y', "");
116 define('__CFG_REMOVEIP_GUEST_SHOW_N', " checked=\"checked\"");
120 switch ($_CONFIG['removeip_member_show']) {
122 define('__CFG_REMOVEIP_MEMBER_SHOW_Y', " checked=\"checked\"");
123 define('__CFG_REMOVEIP_MEMBER_SHOW_N', "");
127 define('__CFG_REMOVEIP_MEMBER_SHOW_Y', "");
128 define('__CFG_REMOVEIP_MEMBER_SHOW_N', " checked=\"checked\"");
132 switch ($_CONFIG['removeip_sponsor_show']) {
134 define('__CFG_REMOVEIP_SPONSOR_SHOW_Y', " checked=\"checked\"");
135 define('__CFG_REMOVEIP_SPONSOR_SHOW_N', "");
139 define('__CFG_REMOVEIP_SPONSOR_SHOW_Y', "");
140 define('__CFG_REMOVEIP_SPONSOR_SHOW_N', " checked=\"checked\"");
144 switch ($_CONFIG['anonymous_ip']) {
146 define('__CFG_ANONYMOUS_IP_LOCAL' , " selected=\"selected\"");
147 define('__CFG_ANONYMOUS_IP_ZERO' , "");
148 define('__CFG_ANONYMOUS_IP_RANDOM', "");
152 define('__CFG_ANONYMOUS_IP_LOCAL' , "");
153 define('__CFG_ANONYMOUS_IP_ZERO' , " selected=\"selected\"");
154 define('__CFG_ANONYMOUS_IP_RANDOM', "");
158 define('__CFG_ANONYMOUS_IP_LOCAL' , "");
159 define('__CFG_ANONYMOUS_IP_ZERO' , "");
160 define('__CFG_ANONYMOUS_IP_RANDOM', " selected=\"selected\"");
165 LOAD_TEMPLATE("admin_config_removeip");