ADD_DESCR('guest', __FILE__);
// @TODO Rewrite all constants
ADD_DESCR('guest', __FILE__);
// @TODO Rewrite all constants
-define('user_confirmed' , round(GET_TOTAL_DATA("CONFIRMED" , "user_data", 'userid', "status", true)));
-define('user_unconfirmed', round(GET_TOTAL_DATA("UNCONFIRMED", "user_data", 'userid', "status", true)));
-define('user_locked' , round(GET_TOTAL_DATA("LOCKED" , "user_data", 'userid', "status", true)));
+define('user_confirmed' , round(GET_TOTAL_DATA('CONFIRMED' , 'user_data', 'userid', 'status', true)));
+define('user_unconfirmed', round(GET_TOTAL_DATA('UNCONFIRMED', 'user_data', 'userid', 'status', true)));
+define('user_locked' , round(GET_TOTAL_DATA('LOCKED' , 'user_data', 'userid', 'status', true)));
define('user_count' , (constant('user_confirmed') + constant('user_unconfirmed') + constant('user_locked')));
// Start of this exchange
define('user_count' , (constant('user_confirmed') + constant('user_unconfirmed') + constant('user_locked')));
// Start of this exchange
// Projected number of members
define('__MT_STAGE', getConfig('mt_stage'));
// Projected number of members
define('__MT_STAGE', getConfig('mt_stage'));
-$TEST = MAKE_TIME(0, 0, 0, $PROJECTED);
+$TEST = makeTime(0, 0, 0, $PROJECTED);
-define('max', GET_TOTAL_DATA("CONFIRMED", "user_data", "max_mails", "status", false, " AND `max_mails` > 0"));
+define('max', GET_TOTAL_DATA('CONFIRMED', 'user_data', 'max_mails', 'status', false, " AND `max_mails` > 0"));
-define('rec', GET_TOTAL_DATA("CONFIRMED", "user_data", "receive_mails", "status", false, " AND `receive_mails` > 0"));
+define('rec', GET_TOTAL_DATA('CONFIRMED', 'user_data', 'receive_mails', 'status', false, " AND `receive_mails` > 0"));
// Initial lots of variables
$bmails = 0; $sent = 0; $max = 0; $rec = 0; $clicks = 0;
// Mail orders (only current)
// Initial lots of variables
$bmails = 0; $sent = 0; $max = 0; $rec = 0; $clicks = 0;
// Mail orders (only current)
if (empty($sent)) $sent = 0;
if (empty($clicks)) $clicks = 0;
// Bonus mails
if (EXT_IS_ACTIVE('bonus')) {
if (empty($sent)) $sent = 0;
if (empty($clicks)) $clicks = 0;
// Bonus mails
if (EXT_IS_ACTIVE('bonus')) {
if (empty($dmy)) $dmy = 0;
if (empty($dmy2)) $dmy2 = 0;
$sent += $dmy2; $clicks += $dmy;
if (empty($dmy)) $dmy = 0;
if (empty($dmy2)) $dmy2 = 0;
$sent += $dmy2; $clicks += $dmy;
// Load jackpot
$result = SQL_QUERY("SELECT points FROM `{!_MYSQL_PREFIX!}_jackpot` WHERE ok='ok' LIMIT 1", __FILE__, __LINE__);
list($jackpot) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
if (empty($jackpot)) $jackpot = 0;
// Load jackpot
$result = SQL_QUERY("SELECT points FROM `{!_MYSQL_PREFIX!}_jackpot` WHERE ok='ok' LIMIT 1", __FILE__, __LINE__);
list($jackpot) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
if (empty($jackpot)) $jackpot = 0;
// Total referal link clicks, total logins
$result = SQL_QUERY("SELECT DISTINCT SUM(d.ref_clicks), SUM(d.total_logins)
// Total referal link clicks, total logins
$result = SQL_QUERY("SELECT DISTINCT SUM(d.ref_clicks), SUM(d.total_logins)
define('__TOTAL_REFCLICKS', $ref);
define('__TOTAL_LOGINS' , $logins);
define('__TOTAL_REFCLICKS', $ref);
define('__TOTAL_LOGINS' , $logins);
// Add first line (count)
$content = array(
'lang' => getMessage('MEDIA_DOUBLER_COUNT'),
'value' => $count1,
// Add first line (count)
$content = array(
'lang' => getMessage('MEDIA_DOUBLER_COUNT'),
'value' => $count1,
// Patch level and it's timespamp
define('__PATCH_LEVEL', getConfig('patch_level'));
// Patch level and it's timespamp
define('__PATCH_LEVEL', getConfig('patch_level'));