X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-reflinks.php;h=bae32d9f1df047d6e983b80bc2db88bbe25dcd77;hp=e9dcc54c19449ec91ad1230bd1c5283b911a6c9f;hb=357b2ca133fc1f89db74097955c366cb4bee6996;hpb=4ef4c88fc481335dc0631b223111c15a84cccb51 diff --git a/inc/modules/member/what-reflinks.php b/inc/modules/member/what-reflinks.php index e9dcc54c19..bae32d9f1d 100644 --- a/inc/modules/member/what-reflinks.php +++ b/inc/modules/member/what-reflinks.php @@ -6,9 +6,9 @@ * -------------------------------------------------------------------- * * File : what-reflinks.php * * -------------------------------------------------------------------- * - * Short description : Referral links * + * Short description : Referal links * * -------------------------------------------------------------------- * - * Kurzbeschreibung : Referral-Links * + * Kurzbeschreibung : Referal-Links * * -------------------------------------------------------------------- * * * * -------------------------------------------------------------------- * @@ -32,22 +32,17 @@ ************************************************************************/ // Some security stuff... -if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) -{ +if (!defined('__SECURITY')) { $INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php"; require($INC); -} - elseif (!IS_LOGGED_IN()) -{ +} elseif (!IS_MEMBER()) { LOAD_URL("modules.php?module=index"); } // Add description as navigation point -ADD_DESCR("member", basename(__FILE__)); - -OPEN_TABLE("90%", "member_table member_content_align", ""); +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__); @@ -55,7 +50,7 @@ list($c) = SQL_FETCHROW($result); SQL_FREERESULT($result); OUTPUT_HTML("".YOUR_PERSONAL_REFLINK.":
-".URL."/ref.php?ref=".$GLOBALS['userid']."
+".URL."/ref.php?ref=".$GLOBALS['userid']."

"); if (EXT_IS_ACTIVE("nickname")) @@ -137,6 +132,5 @@ if (SQL_NUMROWS($result) > 0) // Free result SQL_FREERESULT($result); -CLOSE_TABLE(); // ?>