[CLEANUP] In-line with rest of account pages

This commit is contained in:
Sebastian Grewe 2014-03-12 11:03:37 +01:00
parent d9cfd2a9d4
commit fd30568af7

View File

@ -1,13 +1,9 @@
<?php <?php
$defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1; $defflip = (!cfip()) ? exit(header('HTTP/1.1 401 Unauthorized')) : 1;
// Check user to ensure they are admin // Check user authentication status
if (!$user->isAuthenticated()) { if (!$user->isAuthenticated()) {
header("HTTP/1.1 404 Page not found"); if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
die("404 Page not found");
}
if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$iLimit = 30; $iLimit = 30;
$debug->append('No cached version available, fetching from backend', 3); $debug->append('No cached version available, fetching from backend', 3);
if (!$setting->getValue('disable_transactionsummary')) { if (!$setting->getValue('disable_transactionsummary')) {
@ -16,8 +12,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
$smarty->assign('SUMMARY', $aTransactionSummary); $smarty->assign('SUMMARY', $aTransactionSummary);
$smarty->assign('BYTIME', $aTransactionSummaryByTime); $smarty->assign('BYTIME', $aTransactionSummaryByTime);
} }
} else { } else {
$debug->append('Using cached page', 3); $debug->append('Using cached page', 3);
}
} }
$smarty->assign('CONTENT', 'default.tpl'); $smarty->assign('CONTENT', 'default.tpl');