} // END - if
// Get total confirmed user ids...
-$content['user_confirmed'] = round(countSumTotalData('CONFIRMED' , 'user_data', 'userid', 'status', true));
-$content['user_unconfirmed'] = round(countSumTotalData('UNCONFIRMED', 'user_data', 'userid', 'status', true));
-$content['user_locked'] = round(countSumTotalData('LOCKED' , 'user_data', 'userid', 'status', true));
+$content['user_confirmed'] = getTotalConfirmedUser();
+$content['user_unconfirmed'] = getTotalUnconfirmedUser();
+$content['user_locked'] = getTotalLockedUser();
$content['user_count'] = ($content['user_confirmed'] + $content['user_unconfirmed'] + $content['user_locked']);
// Start of this exchange
$clr = '0.00000';
if ($sent > 0) $clr = $clicks / $sent * 100;
-$content['_clr'] = translateComma($clr) . '%';
+$content['_clr'] = $clr;
// Load jackpot
$jackpot = '0';
$content['jackpot'] = translateComma($jackpot);
// Total referal link clicks, total logins
-$result = SQL_QUERY("SELECT
+$result = SQL_QUERY('SELECT
SUM(d.ref_clicks), SUM(d.total_logins)
FROM
- `{?_MYSQL_PREFIX?}_user_data` AS d", __FILE__, __LINE__);
+ `{?_MYSQL_PREFIX?}_user_data` AS d', __FILE__, __LINE__);
list($ref, $logins) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
if (empty($ref)) $ref = '0';
if (empty($logins)) $logins = '0';
-$content['total_points'] = translateComma($points);
+$content['total_points'] = $points;
$content['total_refclicks'] = $ref;
$content['total_logins'] = $logins;
// Clicks on beg links
$data = array(
'lang' => '{--MEDIA_BEG_CLICKS--}',
- 'value' => countSumTotalData('0', 'user_data', 'beg_clicks', 'userid', false, " AND `beg_clicks` > 0")
+ 'value' => countSumTotalData('0', 'user_data', 'beg_clicks', 'userid', false, ' AND `beg_clicks` > 0')
);
$OUT_EXTRA .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
if (isExtensionActive('doubler')) {
// Add header
// Add first line (count)
$data = array(
'lang' => '{--MEDIA_DOUBLER_COUNT--}',
- 'value' => countSumTotalData('Y','doubler','id','completed', true, " AND `points` > 0"),
+ 'value' => countSumTotalData('Y','doubler','id','completed', true, ' AND `points` > 0'),
);
// Add points
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_CPOINTS--}',
- 'value' => translateComma(countSumTotalData('Y','doubler','id','completed', false, " AND `points` > 0"))
+ 'value' => countSumTotalData('Y','doubler','id','completed', false, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_WAITING--}',
- 'value' => translateComma(countSumTotalData('N','doubler','id','completed', true, " AND `points` > 0"))
+ 'value' => countSumTotalData('N','doubler','id','completed', true, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_DOUBLER_WPOINTS--}',
- 'value' => translateComma(countSumTotalData('N','doubler','id','completed', false, " AND `points` > 0"))
+ 'value' => countSumTotalData('N','doubler','id','completed', false, ' AND `points` > 0')
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
if (isExtensionActive('holiday')) {
// Total holiday requests
'value' => $holiday
);
$OUT_USER .= loadTemplate('mediadata_extra_row', true, $data);
-}
+} // END - if
if (isExtensionActive('transfer')) {
// Statistics for points transfers
if (empty($count_in)) $count_in = '0';
if (empty($points_in)) $points_in = '0';
- $result = SQL_QUERY("SELECT COUNT(t.id), SUM(t.points)
-FROM `{?_MYSQL_PREFIX?}_user_transfers_out` AS t
-LEFT JOIN `{?_MYSQL_PREFIX?}_user_data` AS d
-ON t.userid=d.userid",
+ $result = SQL_QUERY("SELECT
+ COUNT(t.id), SUM(t.points)
+FROM
+ `{?_MYSQL_PREFIX?}_user_transfers_out` AS t
+LEFT JOIN
+ `{?_MYSQL_PREFIX?}_user_data` AS d
+ON
+ t.userid=d.userid",
__FILE__, __LINE__);
list($count_out, $points_out) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row2', true, $data);
$data = array(
'lang' => '{--MEDIA_TRANSFER_IN_POINTS--}',
- 'value' => translateComma($points_in)
+ 'value' => $points_in
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
$data = array(
'lang' => '{--MEDIA_TRANSFER_OUT_POINTS--}',
- 'value' => translateComma($points_out)
+ 'value' => $points_out
);
$OUT_SPECIAL .= loadTemplate('mediadata_extra_row', true, $data);
} // END - if