X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=beg.php;h=2c31d0330e8fd7774765e2ff6c8386e702f36c56;hb=91363bcf76271274fac784976e494bf04e6b4120;hp=d212731055f79af25aff299f74f375cb66d01844;hpb=efee806bdf3f96472cfc10247943446169f752d1;p=mailer.git diff --git a/beg.php b/beg.php index d212731055..2c31d0330e 100644 --- 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",