if (getConfig('bonus_active') != "Y") return false;
// Init variables
- $SQL = ""; $bonys = 0; $mail = 0; $column = "";
+ $sql = ""; $bonys = 0; $mail = 0; $column = "";
// Select SQL command
switch ($type)
$self = false; $OUT = "";
// How many ranks do we have?
- $ranks = sizeof(explode(";", getConfig('turbo_rates'))) + 1;
+ $ranks = count(explode(";", getConfig('turbo_rates'))) + 1;
// Load current user's data
$result = SQL_QUERY_ESC("SELECT level, points, timemark FROM `{!_MYSQL_PREFIX!}_bonus_turbo` WHERE %s=%s AND userid=%s LIMIT 1",