diff --git a/views/header.php b/views/header.php index b336c28..97d767f 100644 --- a/views/header.php +++ b/views/header.php @@ -12,16 +12,16 @@ $validate_user = null; if (isset($UserClass)) { if (isset($_SESSION['flo_id'])): // check if user already registered - $validate_user = $UserClass->doInitialUserHandling($flo_id); + // $validate_user = $UserClass->doInitialUserHandling($flo_id); - if($validate_user == "" || $validate_user == false) { - redirect_to('index.php'); - } + // if($validate_user == "" || $validate_user == false) { + // redirect_to('index.php'); +// } endif; - $tradersList = $OrderClass->UserBalanceList(); - $buy_list[] = $OrderClass->get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy - $sell_list[] = $OrderClass->get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell + $tradersList = UserBalanceList(); + $buy_list[] = get_top_buy_sell_list(TOP_BUYS_TABLE, $asc_desc='DESC'); // buy + $sell_list[] = get_top_buy_sell_list(TOP_SELL_TABLE, $asc_desc='ASC'); // sell } $fullName = isset($_SESSION['user_name']) ? $_SESSION['user_name'] : ""; @@ -99,7 +99,7 @@ $type = isset($_GET['type']) ? trim($_GET['type']) : 'danger';
- +
@@ -119,7 +119,8 @@ $type = isset($_GET['type']) ? trim($_GET['type']) : 'danger'; // Refresh needed every 12 minutes to fetch new time challenge to be digitally signed var delayInMilliseconds = 700000; - setInterval(function() {window.location.reload();}, delayInMilliseconds); +//Need to make sure user is not interrupted +// setInterval(function() {window.location.reload();}, delayInMilliseconds); function ajax_authentication(floID,floPubKey,message,signDataWithFlo) { $.ajax({ @@ -201,11 +202,11 @@ function ajax_authentication(floID,floPubKey,message,signDataWithFlo) {
- LastTradedPrice(); + B_Amount : 'No Data';?>
Last Traded Price:
- +