* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* For more information visit: http://www.mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
array(bigintval($DATA['id'])), __FILE__, __LINE__);
// "Explode" all receivers into an array
array(bigintval($DATA['id'])), __FILE__, __LINE__);
// "Explode" all receivers into an array
// Now, if we are good little boys and girls Santa Claus left us some user-ids.
// We can now send mails to them...
// Now, if we are good little boys and girls Santa Claus left us some user-ids.
// We can now send mails to them...
array(bigintval($userid)), __FILE__, __LINE__);
} // END - if
// Do we have send maximum mails?
array(bigintval($userid)), __FILE__, __LINE__);
} // END - if
// Do we have send maximum mails?
$P = $GLOBALS['pool_cnt'];
if (!empty($cnt2) && empty($GLOBALS['pool_cnt'])) $P = $cnt2;
//* DEBUG: */ print("+MEDIA/L:".__LINE__.'/'.$P."+<br />");
$P = $GLOBALS['pool_cnt'];
if (!empty($cnt2) && empty($GLOBALS['pool_cnt'])) $P = $cnt2;
//* DEBUG: */ print("+MEDIA/L:".__LINE__.'/'.$P."+<br />");
- updateMediadataEntry(array("total_send", "bonus_send"), 'add', $P);
+ updateMediadataEntry(array('total_send', 'bonus_send'), 'add', $P);
// Queue reached!
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='SEND', `target_send`=0, `receivers`='' WHERE `id`=%s LIMIT 1",
array(bigintval($DATA['id'])), __FILE__, __LINE__);
// Queue reached!
SQL_QUERY_ESC("UPDATE `{?_MYSQL_PREFIX?}_bonus` SET `data_type`='SEND', `target_send`=0, `receivers`='' WHERE `id`=%s LIMIT 1",
array(bigintval($DATA['id'])), __FILE__, __LINE__);
if (getExtensionVersion('mediadata') >= '0.0.4') {
// Update entry (or add missing)
//* DEBUG: */ print("*MEDIA/L:".__LINE__."*<br />");
if (getExtensionVersion('mediadata') >= '0.0.4') {
// Update entry (or add missing)
//* DEBUG: */ print("*MEDIA/L:".__LINE__."*<br />");
- updateMediadataEntry(array("total_orders", "bonus_orders"), 'add', 1);
+ updateMediadataEntry(array('total_orders', 'bonus_orders'), 'add', 1);