* -------------------------------------------------------------------- *
* File : what-reflinks.php *
* -------------------------------------------------------------------- *
- * Short description : Referral links *
+ * Short description : Referal links *
* -------------------------------------------------------------------- *
- * Kurzbeschreibung : Referral-Links *
+ * Kurzbeschreibung : Referal-Links *
* -------------------------------------------------------------------- *
* *
* -------------------------------------------------------------------- *
}
// Add description as navigation point
-ADD_DESCR("member", basename(__FILE__));
+ADD_DESCR("member", __FILE__);
-// Load current referral clicks
-$result = SQL_QUERY_ESC("SELECT ref_clicks FROM "._MYSQL_PREFIX."_user_data WHERE userid=%s LIMIT 1",
+// 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__);
list($c) = SQL_FETCHROW($result);
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