0) { foreach ($reserves_arr as $k=>$v) { if ($v != "") $new_reserve = (float)$v; else $new_reserve = ""; if ($new_reserve >= 0 || $new_reserve == "") smart_mysql_query("UPDATE exchangerix_currencies SET reserve='".$new_reserve."' WHERE currency_id='".(int)$k."'"); } header("Location: index.php?msg=reserves_updated"); exit(); } } smart_mysql_query("UPDATE exchangerix_exchanges SET status='timeout' WHERE (created < (NOW() - INTERVAL 120 MINUTE) AND status='waiting')"); $today = date("Y-m-d"); $yesterday = date("Y-m-d", mktime(0, 0, 0, date("m") , date("d") - 1, date("Y"))); $exchanges_today = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE date(created)='$today'")); $exchanges_today = $exchanges_today['total']; $exchanges_yesterday = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE date(created)='$yesterday'")); $exchanges_yesterday = $exchanges_yesterday['total']; $exchanges_7days = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE date_sub(curdate(), interval 7 day) <= created")); $exchanges_7days = $exchanges_7days['total']; $exchanges_30days = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE date_sub(curdate(), interval 30 day) <= created")); $exchanges_30days = $exchanges_30days['total']; $users_yesterday = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_users WHERE date(created)='$yesterday'")); $users_yesterday = $users_yesterday['total']; $users_today = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_users WHERE date(created)='$today'")); $users_today = $users_today['total']; $users_7days = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_users WHERE date_sub(curdate(), interval 7 day) <= created")); $users_7days = $users_7days['total']; $users_30days = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_users WHERE date_sub(curdate(), interval 30 day) <= created")); $users_30days = $users_30days['total']; $all_users = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_users")); $all_users = $all_users['total']; $all_currencies = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_currencies")); $all_currencies = $all_currencies['total']; $all_ex_directions = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exdirections")); $all_ex_directions = $all_ex_directions['total']; $all_exchanges = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE status!='request'")); $all_exchanges = $all_exchanges['total']; $exchanges_today = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_exchanges WHERE date(created)='$today'")); $exchanges_today = $exchanges_today['total']; $all_reviews = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_reviews")); $all_reviews = $all_reviews['total']; $reviews_today = mysqli_fetch_array(smart_mysql_query("SELECT COUNT(*) AS total FROM exchangerix_reviews WHERE date(added)='$today'")); $reviews_today = $reviews_today['total']; $title = "Admin Dashboard"; require_once ("inc/header.inc.php"); ?>

Operator Dashboard

You must now delete "install.php" from your server. Failing to delete these files is a serious security risk!
Exchangerix version: 1.1
License Key:
Exchanges Today: 0) ? "+".$exchanges_today : "0"; ?>
Exchanges Yesterday:
Last 7 Days Exchanges:
Last 30 Days Exchanges:
Users Today: 0) ? "+".$users_today : "0"; ?>
Users Yesterday:
Last 7 Days Users:
Last 30 Days Users:


Our Reserves

Reserves has been successfully updated
0) { ?> "; ?> ">
  Currency Reserve ?

" class="form-control" placeholder="no limit" size="10" />  
5) echo "
"; ?>

No currencies added at this time.

0) { ?>

show all currencies

Top Exchange Directions

0 ORDER BY total_exchanges DESC, today_exchanges DESC LIMIT 10"; $res2_result = smart_mysql_query($res2_query); $total2_res = mysqli_num_rows($res2_result); $cc = 0; if ($total2_res > 0) { ?>
">
Direction Today All time

0) ? "+".number_format($row2_res['today_exchanges'])."" : "".number_format($row2_res['today_exchanges'])."" ; ?>

No stats at this time.


view all

10 Latest Exchanges

Exchange has been successfully deleted
%h:%i %p') AS payment_date FROM exchangerix_exchanges WHERE status!='request' ORDER BY created DESC LIMIT 10"; $res3_result = smart_mysql_query($res3_query); $total3_res = mysqli_num_rows($res3_result); $cc = 0; if ($total3_res > 0) { ?>

" style="background: ; border-bottom: 1px solid #FFF">
ID Reference ID Date Exchange Direction / Rate / Amount   User Status Actions



(Exchange Rate: = )

  0) { ?>
confirmed"; break; case "pending": echo " awaiting confirmation"; break; case "waiting": echo " waiting for payment"; break; case "declined": echo " declined"; break; case "failed": echo " failed"; break; case "timeout": echo " timeout"; break; case "request": echo " awaiting approval"; break; case "paid": echo ""; break; default: echo "".$row3['status'].""; break; } ?> View Delete

No exchanges at this time.


All Time Stats


0) { ?>

+ today


0) { ?>

+ today




0) { ?>

+ today

$
exchanges in USD
0) $stats_period = (int)$_GET['stats_period']; else $stats_period = 30; ?> 0) $stats_period2 = (int)$_GET['stats_period2']; else $stats_period2 = 22222; ?>

Stats

Show for:    Period:

created - ".$stats_period2.""; $chart_data2 = array_reverse($days); } if (isset($_GET['show_for']) && $_GET['show_for'] == "signups") $chart_result2 = smart_mysql_query("SELECT DATE_FORMAT(created, '".$www."') as stats_date, COUNT(*) as stats_amount FROM exchangerix_users WHERE 1=1 ".$vvv." GROUP BY ".$eee); else $chart_result2 = smart_mysql_query("SELECT DATE_FORMAT(created, '".$www."') as stats_date, SUM(receive_amount) as stats_amount FROM exchangerix_exchanges WHERE status='confirmed' ".$vvv." GROUP BY ".$eee); if (mysqli_num_rows($chart_result2) > 0) { while ($chart_row2 = mysqli_fetch_array($chart_result2)) { if (array_key_exists($chart_row2['stats_date'], $chart_data2)) $chart_data2[$chart_row2['stats_date']] = $chart_row2['stats_amount']; } } ?>