X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fmodules%2Fmember%2Fwhat-bonus.php;h=48fbd70980181c865e6c0d098c27cc2e1afebd6e;hb=49c081caf258b57714b44904bb10f2deb851c508;hp=57b238cb1af2a04794ea2d0b4e53b7d44eec5e83;hpb=d0ab0382dd73638f0bc13a1a3d6f117ec11a203e;p=mailer.git diff --git a/inc/modules/member/what-bonus.php b/inc/modules/member/what-bonus.php index 57b238cb1a..48fbd70980 100644 --- a/inc/modules/member/what-bonus.php +++ b/inc/modules/member/what-bonus.php @@ -39,7 +39,7 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) } elseif (!IS_LOGGED_IN()) { - LOAD_URL(URL."/modules.php[5~?module=index"); + LOAD_URL("modules.php[5~?module=index"); } elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) { @@ -49,17 +49,17 @@ if (ereg(basename(__FILE__), $_SERVER['PHP_SELF'])) // Add description as navigation point ADD_DESCR("member", basename(__FILE__)); -OUTPUT_HTML ("
"); +OUTPUT_HTML("
"); if (GET_EXT_VERSION("bonus") >= "0.6.9") { // Add more bonus points here $USE = "(0"; - if ($CONFIG['bonus_click_yn'] == "Y") $USE .= " + turbo_bonus"; - if ($CONFIG['bonus_login_yn'] == "Y") $USE .= " + login_bonus"; - if ($CONFIG['bonus_order_yn'] == "Y") $USE .= " + bonus_order"; - if ($CONFIG['bonus_stats_yn'] == "Y") $USE .= " + bonus_stats"; - if ($CONFIG['bonus_ref_yn'] == "Y") $USE .= " + bonus_ref"; + if ($_CONFIG['bonus_click_yn'] == 'Y') $USE .= " + turbo_bonus"; + if ($_CONFIG['bonus_login_yn'] == 'Y') $USE .= " + login_bonus"; + if ($_CONFIG['bonus_order_yn'] == 'Y') $USE .= " + bonus_order"; + if ($_CONFIG['bonus_stats_yn'] == 'Y') $USE .= " + bonus_stats"; + if ($_CONFIG['bonus_ref_yn'] == 'Y') $USE .= " + bonus_ref"; $USE .= ")"; } else @@ -74,14 +74,14 @@ if (EXT_IS_ACTIVE("autopurge")) { // Use last online timestamp to keep inactive members away from here $LAST = " AND last_online >= %s"; - $ONLINE = bigintval(time() - $CONFIG['ap_in_since']); + $ONLINE = bigintval(time() - $_CONFIG['ap_in_since']); } // Let's check if there are some points left we can "pay"... $result = SQL_QUERY_ESC("SELECT userid, ".$USE." AS active_bonus, last_online FROM "._MYSQL_PREFIX."_user_data WHERE ".$USE." > 0 AND status='CONFIRMED'".$LAST." ORDER BY active_bonus DESC, last_online DESC, userid LIMIT %s", - array($ONLINE, $CONFIG['bonus_ranks']), __FILE__, __LINE__); + array($ONLINE, $_CONFIG['bonus_ranks']), __FILE__, __LINE__); // Reset temporary variable and check for users $OUT = "";