define('SERVER_URL', "http://www.mxchange.org");
// Current SVN revision
-define('CURR_SVN_REVISION', "598");
+define('CURR_SVN_REVISION', "599");
// Take a prime number which is long (if you know a longer one please try it out!)
define('_PRIME', 591623);
//* DEBUG: */ print __FUNCTION__."(<font color=\"#0000aa\">".__LINE__."</font>):str={$str}<br />\n";
return mysql_real_escape_string($str, $link);
} elseif (function_exists('mysql_escape_string')) {
- // The obsulete function
+ // The obsolete function
return mysql_escape_string($str, $link);
} else {
// If nothing else works
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
}
-//
+
+// Init variables
global $EXT_CSS_FILES;
$EXT_CSS_FILES = array();
$ADD = "";
}
// Do not recreate cache file when it's switched off!
- if (($cacheMode == "init") && ($_CONFIG['cache_exts'] == "N")) $cacheMode = "skip";
+
+ // If we need to init the cache init it now
+ if ($cacheMode == "init") {
+ // Init cache file
+ $cacheInstance->cache_init("EXTENSIONS");
+
+ if ($_CONFIG['cache_exts'] == "N") $cacheMode = "skip";
+ } // END - if
} else {
// Cache extension not active
$cacheMode = "no";
}
+// Load cache?
if ($cacheMode == "load") {
// Init include array
$EXT_POOL = array();
// Remove array
unset($EXT_POOL);
} else {
- // If current user is not admin load only activated extensions
- // The admin shall use every available extension for testing purposes
+ // If current user is not admin load only activated extensions. But load
+ // them all if we are going to init the cache files. The admin shall use
+ // every available extension for testing purposes.
if ((!IS_ADMIN()) && ($cacheMode != "init")) $ADD = " WHERE ext_active='Y'";
if (GET_EXT_VERSION("sql_patches") >= "0.0.6") {
FROM "._MYSQL_PREFIX."_extensions".$ADD."
ORDER BY ext_name", __FILE__, __LINE__);
} else {
- // Old obsulete query string
+ // Old obsolete query string
$res_ext_crt = SQL_QUERY("SELECT id, ext_name, ext_lang_file, ext_name, ext_active, ext_version
FROM "._MYSQL_PREFIX."_extensions".$ADD."
ORDER BY ext_name", __FILE__, __LINE__);
$DEL = array();
// At least one found?
-if ((SQL_NUMROWS($res_ext_crt) > 0) && (($cacheMode == "init") || ($cacheMode == "no")) && ($CSS != "1") && ($CSS != "-1")) {
+if ((SQL_NUMROWS($res_ext_crt) > 0) && ((($cacheMode == "init") && ($CSS != "1") && ($CSS != "-1")) || ($cacheMode == "no"))) {
// Load theme management
require_once(PATH."inc/theme-manager.php");
- // If we need to init the cache init it now
- if ($cacheMode == "init") $cacheInstance->cache_init("EXTENSIONS");
-
// Extensions are registered so we load them
while (list($EXT_ID, $name, $lang, $css, $active, $version) = SQL_FETCHROW($res_ext_crt)) {
// Get menu entry
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("")) {
+} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "");
return;
} elseif ($BLOCK_MODE) {
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("online")) {
+} elseif ((!EXT_IS_ACTIVE("online")) && (!IS_ADMIN())) {
// Just skip this extension
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4)."/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("sponsor")) {
+} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
return;
} elseif ($BLOCK_MODE) {
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("theme")) {
+} elseif ((!EXT_IS_ACTIVE("theme")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("active")) {
+} elseif ((!EXT_IS_ACTIVE("active")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "active");
return;
}
// Add description as navigation point
ADD_DESCR("guest", __FILE__);
-// The day normally starts on 00:00:00, so let's subtract current hours/minutes/seconds from current time stamp!
-$START = time() - date("H", time())*60*60 - date("m", time())*60 - date("s", time());
-
-// Check for members who were active only this day
+// Extra field to include is by default uid
$ADD = "uid";
+
+// If nickname is installed the extra field is the nickname of the user
if (EXT_IS_ACTIVE("nickname")) $ADD = "nickname";
+// Check for members who were active only this day
$result = SQL_QUERY_ESC("SELECT userid, ".$ADD.", last_online
FROM "._MYSQL_PREFIX."_user_data
WHERE last_online >= %s AND status='CONFIRMED'
ORDER BY last_online DESC LIMIT %s",
- array($START, $_CONFIG['active_limit']), __FILE__, __LINE__);
+ array(START_TDAY, $_CONFIG['active_limit']), __FILE__, __LINE__);
-if (SQL_NUMROWS($result) > 0)
-{
+// Entries found?
+if (SQL_NUMROWS($result) > 0) {
// At least one member was online so let's load them all
$OUT = ""; $SW = 2;
- while(list($uid, $nick, $last) = SQL_FETCHROW($result))
- {
+ while(list($uid, $nick, $last) = SQL_FETCHROW($result)) {
$nick2 = "---";
if (($nick != $uid) && (!empty($nick))) $nick2 = $nick;
// Switch colors
$SW = 3 - $SW;
}
-}
- else
-{
+} else {
// No member was online today! :-(
$OUT = LOAD_TEMPLATE("guest_active_none_row", true);
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("beg")) {
+} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("doubler")) {
+} elseif ((!EXT_IS_ACTIVE("doubler")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "doubler");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("mediadata")) {
+} elseif ((!EXT_IS_ACTIVE("mediadata")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "mediadata");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("rallye")) {
+} elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("top10")) {
+} elseif ((!EXT_IS_ACTIVE("top10")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "top10");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("wernis")) {
+} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("sql_patches", true)) {
+} elseif ((!EXT_IS_ACTIVE("sql_patches", true)) && (!IS_ADMIN())) {
// The extension "sql_patches" *MUST* be activated or you have lot's of problems!
LOAD_URL("modules.php?module=admin");
}
require($INC);
} elseif (!IS_LOGGED_IN()) {
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("")) {
+} elseif ((!EXT_IS_ACTIVE("")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "");
return;
} elseif ($BLOCK_MODE) {
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
} elseif ($BLOCK_MODE) {
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("order")) {
+} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
return;
} elseif ($BLOCK_MODE) {
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
} elseif ($BLOCK_MODE) {
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("theme")) {
+} elseif ((!EXT_IS_ACTIVE("theme")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
} elseif (!IS_MEMBER()) {
* ================ Last change: 01/07/2004 *
* *
* -------------------------------------------------------------------- *
- * File : what- *
+ * File : what-bank_deposit.php *
* -------------------------------------------------------------------- *
* Short description : *
* -------------------------------------------------------------------- *
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("bank")) {
+} elseif ((!EXT_IS_ACTIVE("bank")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bank");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("beg")) {
+} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php[5~?module=index");
-} elseif (!EXT_IS_ACTIVE("beg")) {
+} elseif ((!EXT_IS_ACTIVE("beg")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "beg");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php[5~?module=index");
-} elseif (!EXT_IS_ACTIVE("bonus")) {
+} elseif ((!EXT_IS_ACTIVE("bonus")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "bonus");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php[5~?module=index");
-} elseif (!EXT_IS_ACTIVE("doubler")) {
+} elseif ((!EXT_IS_ACTIVE("doubler")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "doubler");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("holiday")) {
+} elseif ((!EXT_IS_ACTIVE("holiday")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "holiday");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("html_mail")) {
+} elseif ((!EXT_IS_ACTIVE("html_mail")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "html_mail");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("mydata")) {
+} elseif ((!EXT_IS_ACTIVE("mydata")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "mydata");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("newsletter")) {
+} elseif ((!EXT_IS_ACTIVE("newsletter")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "newsletter");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("nickname")) {
+} elseif ((!EXT_IS_ACTIVE("nickname")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "nickname");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("order")) {
+} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
return;
}
} elseif (!IS_MEMBER()) {
// Not logged in
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("payout")) {
+} elseif ((!EXT_IS_ACTIVE("payout")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "payout");
return;
}
} elseif (!IS_MEMBER()) {
// User is not logged in
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("primera")) {
+} elseif ((!EXT_IS_ACTIVE("primera")) && (!IS_ADMIN())) {
// Extension "primera" is not activated
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "primera");
return;
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("rallye")) {
+} elseif ((!EXT_IS_ACTIVE("rallye")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "rallye");
return;
}
} elseif (!IS_MEMBER()) {
// User is not logged in
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("refback")) {
+} elseif ((!EXT_IS_ACTIVE("refback")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "refback");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("sponsor")) {
+} elseif ((!EXT_IS_ACTIVE("sponsor")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "sponsor");
return;
}
require($INC);
} elseif (!IS_MEMBER()){
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("support")) {
+} elseif ((!EXT_IS_ACTIVE("support")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "support");
return;
}
} elseif (!IS_MEMBER()) {
// Redirect
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
} elseif (!IS_MEMBER()) {
// Not logged in
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL(URL."/modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("surfbar")) {
+} elseif ((!EXT_IS_ACTIVE("surfbar")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "surfbar");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("theme")) {
+} elseif ((!EXT_IS_ACTIVE("theme")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "theme");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("transfer")) {
+} elseif ((!EXT_IS_ACTIVE("transfer")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "transfer");
return;
}
require($INC);
} elseif (!IS_MEMBER()) {
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("mailid")) {
+} elseif ((!EXT_IS_ACTIVE("mailid")) && (!IS_ADMIN())) {
LOAD_URL("modules.php?module=login");
}
} elseif (!IS_MEMBER()) {
// User is not logged in
LOAD_URL("modules.php?module=index");
-} elseif (!EXT_IS_ACTIVE("wernis")) {
+} elseif ((!EXT_IS_ACTIVE("wernis")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "wernis");
return;
}
if (!defined('__SECURITY')) {
$INC = substr(dirname(__FILE__), 0, strpos(dirname(__FILE__), "/inc") + 4) . "/security.php";
require($INC);
-} elseif (!EXT_IS_ACTIVE("order")) {
+} elseif ((!EXT_IS_ACTIVE("order")) && (!IS_ADMIN())) {
ADD_FATAL(EXTENSION_PROBLEM_EXT_INACTIVE, "order");
return;
} elseif (!IS_MEMBER()) {
// Return action value
return $ret;
}
-//
+
+// Get category name back
function GET_CATEGORY ($cid) {
// Default is not found
$ret = _CATEGORY_404;
// Return result
return $ret;
}
-//
+
+// Get a string of "mail title" and price back
function GET_PAYMENT ($pid, $full=false) {
// Default is not found
$ret = _PAYMENT_404;
// Return result
return $ret;
}
-//
+
+// Get (basicly) the price of given payment id
function GET_PAY_POINTS($pid, $lookFor="price")
{
$ret = "-1";
}
return $ret;
}
+
// Remove a receiver's ID from $ARRAY and add a link for him to confirm
-function REMOVE_RECEIVER(&$ARRAY, $key, $uid, $pool_id, $stats_id="", $bonus=false)
+function REMOVE_RECEIVER (&$ARRAY, $key, $uid, $pool_id, $stats_id="", $bonus=false)
{
$ret = "failed";
if ($uid > 0)
$result = SQL_QUERY_ESC("DELETE LOW_PRIORITY FROM "._MYSQL_PREFIX."_online WHERE timestamp <= (UNIX_TIMESTAMP() - %s)",
array($_CONFIG['online_timeout']), __FILE__, __LINE__);
}
-// OBSULETE: Sends out mail to all administrators
+// OBSOLETE: Sends out mail to all administrators
function SEND_ADMIN_EMAILS ($subj, $msg) {
// Load all admin email addresses
$result = SQL_QUERY("SELECT email FROM "._MYSQL_PREFIX."_admins ORDER BY id ASC", __FILE__, __LINE__);