// 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
$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",