]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/removeip_functions.php
A lot rewrites from double-quote to single-quote, some fixes for extension handling...
[mailer.git] / inc / libs / removeip_functions.php
index 88182524047aaf59918ee2152c4b3e8038eb5d37..ab59b19cf978e6d95029578a1e546f60d4aede0d 100644 (file)
@@ -45,7 +45,7 @@ if (!defined('__SECURITY')) {
 // "Getter" for anonymous remote IP number
 function GET_ANONYMOUS_REMOTE_ADDR ($remoteAddr) {
        // Is config enabled?
-       if (getConfig('removeip_anon_ip') == "Y") {
+       if (getConfig('removeip_anon_ip') == 'Y') {
                // Switch way do we like?
                switch (getConfig('anonymous_ip')) {
                        case "127.0.0.1": // mod_removeip style
@@ -65,7 +65,7 @@ function GET_ANONYMOUS_REMOTE_ADDR ($remoteAddr) {
 // "Getter" for anonymous remote hostname
 function GET_ANONYMOUS_REMOTE_HOST ($remoteHost) {
        // Is config enabled?
-       if (getConfig('removeip_anon_host') == "Y") {
+       if (getConfig('removeip_anon_host') == 'Y') {
                // Set anon hostname
                $remoteHost = "localhost.localnet";
        } // END - if
@@ -76,7 +76,7 @@ function GET_ANONYMOUS_REMOTE_HOST ($remoteHost) {
 // "Getter" for anonymous user agent
 function GET_ANONYMOUS_USER_AGENT ($userAgent) {
        // Is config enabled?
-       if (getConfig('removeip_anon_ua') == "Y") {
+       if (getConfig('removeip_anon_ua') == 'Y') {
                // Set anon user agent
                $userAgent = "-";
        } // END - if
@@ -87,7 +87,7 @@ function GET_ANONYMOUS_USER_AGENT ($userAgent) {
 // "Getter" for anonymous referer
 function GET_ANONYMOUS_REFERER ($referer) {
        // Is config enabled?
-       if (getConfig('removeip_anon_ref') == "Y") {
+       if (getConfig('removeip_anon_ref') == 'Y') {
                // Set anon user agent
                $referer = "-";
        } // END - if
@@ -101,10 +101,10 @@ function REMOVEIP_ADD_INFOS () {
        $anonymity = 0;
 
        // Is some data anonymized?
-       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++;
 
        // Calculate anonymity level
        $level = round($anonymity / 4 * 3);
@@ -151,7 +151,7 @@ function FILTER_ADD_ANONYMITY_NOTICE ($data) {
        $content = $data;
 
        // Extension removeip activated?
-       if ((EXT_IS_ACTIVE("removeip")) && (getConfig('removeip_'.strtolower($data['access_level']).'_show') == "Y")) {
+       if ((EXT_IS_ACTIVE('removeip')) && (getConfig('removeip_'.strtolower($data['access_level']).'_show') == 'Y')) {
                // Add anoymity/privacy infos
                $content['content'] .= REMOVEIP_ADD_INFOS()."<br />\n";
        } // END - if