]> git.mxchange.org Git - mailer.git/blobdiff - inc/libs/removeip_functions.php
Fixed bug in surfbar member list
[mailer.git] / inc / libs / removeip_functions.php
index ab59b19cf978e6d95029578a1e546f60d4aede0d..84cf2ce3ae04d2b9a90e62d7bb77767636725e5f 100644 (file)
@@ -38,7 +38,7 @@
 
 // Some security stuff...
 if (!defined('__SECURITY')) {
-       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
+       $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), '/inc') + 4) . '/security.php';
        require($INC);
 }
 
@@ -54,7 +54,7 @@ function GET_ANONYMOUS_REMOTE_ADDR ($remoteAddr) {
                                break;
 
                        case "RANDOM": // Pseudo-random IP number
-                               $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);
                                break;
                } // END - switch
        } // END - if
@@ -78,7 +78,7 @@ function GET_ANONYMOUS_USER_AGENT ($userAgent) {
        // Is config enabled?
        if (getConfig('removeip_anon_ua') == 'Y') {
                // Set anon user agent
-               $userAgent = "-";
+               $userAgent = '-';
        } // END - if
 
        // Return it
@@ -89,7 +89,7 @@ function GET_ANONYMOUS_REFERER ($referer) {
        // Is config enabled?
        if (getConfig('removeip_anon_ref') == 'Y') {
                // Set anon user agent
-               $referer = "-";
+               $referer = '-';
        } // END - if
 
        // Return it