More usage of GET_URL() than file()
[mailer.git] / inc / modules / member / what-reflinks.php
index 3234e51624cefcb03bfcedd5f79f22741474687c..ee7d7827091d700945758f5c61810510d126a8d7 100644 (file)
@@ -6,9 +6,9 @@
  * -------------------------------------------------------------------- *
  * File              : what-reflinks.php                                *
  * -------------------------------------------------------------------- *
- * Short description : Referral links                                   *
+ * Short description : Referal links                                    *
  * -------------------------------------------------------------------- *
- * Kurzbeschreibung  : Referral-Links                                   *
+ * Kurzbeschreibung  : Referal-Links                                    *
  * -------------------------------------------------------------------- *
  *                                                                      *
  * -------------------------------------------------------------------- *
@@ -40,9 +40,9 @@ if (!defined('__SECURITY')) {
 }
 
 // Add description as navigation point
-ADD_DESCR("member", basename(__FILE__));
+ADD_DESCR("member", __FILE__);
 
-// Load current referral clicks
+// Load current referal clicks
 $result = SQL_QUERY_ESC("SELECT ref_clicks FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
  array($GLOBALS['userid']), __FILE__, __LINE__);
 
@@ -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