* -------------------------------------------------------------------- *
* Kurzbeschreibung : Spezielle Funktion fuer bonus-Erweiterung *
* -------------------------------------------------------------------- *
- * *
+ * $Revision:: $ *
+ * $Date:: $ *
+ * $Tag:: 0.2.1-FINAL $ *
+ * $Author:: $ *
+ * Needs to be in all Files and every File needs "svn propset *
+ * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2008 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
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",