]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-reflinks.php
More variables renamed to , install/admin_WriteData() is now generic (with open TODO)
[mailer.git] / inc / modules / member / what-reflinks.php
index 8b400c254c3efcd9c36ce6d99a1c1b59e1d7cdfa..fbb1b0d59b4dc2c6b7bc6d8a859f333d4020a406 100644 (file)
@@ -78,18 +78,18 @@ if (SQL_NUMROWS($result) > 0) {
        // List available ref banners
        $SW = 2; $OUT = "";
        while (list($id, $url, $alt, $count, $clks) = SQL_FETCHROW($result)) {
-               $test = str_replace(URL, PATH, $url); $size = 0;
+               $test = str_replace(URL, constant('PATH'), $url); $size = 0;
                if ($test == $url) {
                        // Download banner (I hope you keep the banner on same server???)
-                       $fp = GET_URL($url); $file = "";
+                       $fp = GET_URL($url); $bannerContent = "";
                        if ((!empty($fp)) && (is_array($fp)) && (count($fp) > 0) {
                                // Loads only found banner, when there is a 404 error this foreach() command
                                // will cause an "Invalid argument supplied for foreach()" error
                                foreach ($fp as $f) {
-                                       $file .= $f;
+                                       $bannerContent .= $f;
                                }
                        }
-                       $size = strlen($file);
+                       $size = strlen($bannerContent);
                } elseif (FILE_READABLE($test)) {
                        $size = filesize($test);
                }