indentations
This commit is contained in:
parent
d4ce764d77
commit
b656be751d
@ -6,28 +6,28 @@ if (!defined('SECURITY')) die('Hacking attempt');
|
|||||||
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
||||||
$debug->append('No cached version available, fetching from backend', 3);
|
$debug->append('No cached version available, fetching from backend', 3);
|
||||||
|
|
||||||
if (@$_REQUEST['next'] && !empty($_REQUEST['height'])) {
|
if (@$_REQUEST['next'] && !empty($_REQUEST['height'])) {
|
||||||
$iKey = $roundstats->getNextBlock($_REQUEST['height']);
|
$iKey = $roundstats->getNextBlock($_REQUEST['height']);
|
||||||
} else if (@$_REQUEST['prev'] && !empty($_REQUEST['height'])) {
|
} else if (@$_REQUEST['prev'] && !empty($_REQUEST['height'])) {
|
||||||
$iKey = $roundstats->getPreviousBlock($_REQUEST['height']);
|
$iKey = $roundstats->getPreviousBlock($_REQUEST['height']);
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (empty($_REQUEST['height'])) {
|
if (empty($_REQUEST['height'])) {
|
||||||
$iBlock = $block->getLast();
|
$iBlock = $block->getLast();
|
||||||
$iKey = $iBlock['height'];
|
$iKey = $iBlock['height'];
|
||||||
} else {
|
} else {
|
||||||
$iKey = $_REQUEST['height'];
|
$iKey = $_REQUEST['height'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
echo $iKey;
|
echo $iKey;
|
||||||
$aDetailsForBlockHeight = $roundstats->getDetailsForBlockHeight($iKey, $user->isAdmin($_SESSION['USERDATA']['id']));
|
$aDetailsForBlockHeight = $roundstats->getDetailsForBlockHeight($iKey, $user->isAdmin($_SESSION['USERDATA']['id']));
|
||||||
$aRoundShareStats = $roundstats->getRoundStatsForAccounts($iKey, $user->isAdmin($_SESSION['USERDATA']['id']));
|
$aRoundShareStats = $roundstats->getRoundStatsForAccounts($iKey, $user->isAdmin($_SESSION['USERDATA']['id']));
|
||||||
|
|
||||||
if ($user->isAdmin($_SESSION['USERDATA']['id'])) {
|
if ($user->isAdmin($_SESSION['USERDATA']['id'])) {
|
||||||
$aUserRoundTransactions = $roundstats->getAllRoundTransactions($iKey);
|
$aUserRoundTransactions = $roundstats->getAllRoundTransactions($iKey);
|
||||||
} else {
|
} else {
|
||||||
$aUserRoundTransactions = $roundstats->getUserRoundTransactions($iKey, $_SESSION['USERDATA']['id']);
|
$aUserRoundTransactions = $roundstats->getUserRoundTransactions($iKey, $_SESSION['USERDATA']['id']);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Propagate content our template
|
// Propagate content our template
|
||||||
$smarty->assign('BLOCKDETAILS', $aDetailsForBlockHeight);
|
$smarty->assign('BLOCKDETAILS', $aDetailsForBlockHeight);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user