* -------------------------------------------------------------------- *
* Kurzbeschreibung : Spezielle Funktion fuer removeip-Erweiterung *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Kurzbeschreibung : Spezielle Funktion fuer removeip-Erweiterung *
* -------------------------------------------------------------------- *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
- $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+ $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
// Switch way do we like?
switch (getConfig('anonymous_ip')) {
case "127.0.0.1": // mod_removeip style
// Switch way do we like?
switch (getConfig('anonymous_ip')) {
case "127.0.0.1": // mod_removeip style
- $remoteAddr = mt_rand(1,254).".".mt_rand(0,254).".".mt_rand(0,254).".".mt_rand(1,254);
+ $remoteAddr = mt_rand(1,254).'.'.mt_rand(0,254).'.'.mt_rand(0,254).'.'.mt_rand(1,254);
- if (getConfig('removeip_anon_ip') == "Y") $anonymity++;
- if (getConfig('removeip_anon_host') == "Y") $anonymity++;
- if (getConfig('removeip_anon_ua') == "Y") $anonymity++;
- if (getConfig('removeip_anon_ref') == "Y") $anonymity++;
+ if (getConfig('removeip_anon_ip') == 'Y') $anonymity++;
+ if (getConfig('removeip_anon_host') == 'Y') $anonymity++;
+ if (getConfig('removeip_anon_ua') == 'Y') $anonymity++;
+ if (getConfig('removeip_anon_ref') == 'Y') $anonymity++;