]> git.mxchange.org Git - mailer.git/blobdiff - beg.php
Referal overview completed, thanks to monakoianar for useful hints. :-)
[mailer.git] / beg.php
diff --git a/beg.php b/beg.php
index d212731055f79af25aff299f74f375cb66d01844..2c31d0330e8fd7774765e2ff6c8386e702f36c56 100644 (file)
--- a/beg.php
+++ b/beg.php
@@ -48,6 +48,12 @@ $msg = null;
 // Load the required file(s)
 require ("inc/config.php");
 
+// Is the "beg" extension active?
+if (!EXT_IS_ACTIVE("beg")) {
+       // Redirect to index
+       LOAD_URL("modules.php?module=index&msg=".CODE_EXTENSION_PROBLEM."&ext=beg");
+} // END - if
+
 // Is the script installed?
 if (isBooleanConstantAndTrue('mxchange_installed')) {
        // Check for userid
@@ -56,7 +62,7 @@ if (isBooleanConstantAndTrue('mxchange_installed')) {
                $uid = 0;
 
                // Validate if it is not a number
-               if ("".bigintval($_GET['uid'])."" !== "".$_GET['uid']."") {
+               if ("".($_GET['uid'] + 0)."" !== "".$_GET['uid']."") {
                        if (EXT_IS_ACTIVE("nickname")) {
                                // Maybe we have found a nickname?
                                $result = SQL_QUERY_ESC("SELECT userid, beg_clicks, ref_payout, status, last_online FROM "._MYSQL_PREFIX."_user_data WHERE nickname='%s' LIMIT 1",