]> git.mxchange.org Git - mailer.git/blobdiff - inc/modules/member/what-reflinks.php
Several bugfixes, getMessage() introduced
[mailer.git] / inc / modules / member / what-reflinks.php
index 51d31adf799dc8c40e492dc1208c3443d46a5604..2ce512e0601c90c8e9530207576874c776353b84 100644 (file)
@@ -40,10 +40,10 @@ if (!defined('__SECURITY')) {
 }
 
 // Add description as navigation point
-ADD_DESCR("member", basename(__FILE__));
+ADD_DESCR("member", __FILE__);
 
 // Load current referal clicks
-$result = SQL_QUERY_ESC("SELECT ref_clicks FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
+$result = SQL_QUERY_ESC("SELECT ref_clicks FROM `"._MYSQL_PREFIX."_user_data` WHERE userid=%s LIMIT 1",
  array($GLOBALS['userid']), __FILE__, __LINE__);
 
 list($c) = SQL_FETCHROW($result);
@@ -89,7 +89,7 @@ if (SQL_NUMROWS($result) > 0)
                if ($test == $url)
                {
                        // Download banner (I hope you keep the banner on same server???)
-                       $fp = @file($url); $file = "";
+                       $fp = GET_URL($url); $file = "";
                        if ((!empty($fp)) && (is_array($fp)) && (count($fp) > 0))
                        {
                                // Loads only found banner, when there is a 404 error this foreach() command