diff --git a/public/include/pages/account/notifications.inc.php b/public/include/pages/account/notifications.inc.php index a4b5aab0..a454fe12 100644 --- a/public/include/pages/account/notifications.inc.php +++ b/public/include/pages/account/notifications.inc.php @@ -5,7 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt'); if ($user->isAuthenticated()) { if ($setting->getValue('disable_notifications') == 1) { $_SESSION['POPUP'][] = array('CONTENT' => 'Notification system disabled by admin.', 'TYPE' => 'info'); - $smarty->assign('CONTENT', '../../global/empty.tpl'); + $smarty->assign('CONTENT', 'empty'); } else { if (@$_REQUEST['do'] == 'save') { if ($notification->updateSettings($_SESSION['USERDATA']['id'], $_REQUEST['data'])) { diff --git a/public/include/pages/account/reset_failed.inc.php b/public/include/pages/account/reset_failed.inc.php index 39541dc2..ef30938f 100644 --- a/public/include/pages/account/reset_failed.inc.php +++ b/public/include/pages/account/reset_failed.inc.php @@ -9,5 +9,5 @@ if ($user->isAuthenticated()) { header("Location: " . $_SERVER['HTTP_REFERER']); } // Somehow we still need to load this empty template -$smarty->assign("CONTENT", "../../global/empty.tpl"); +$smarty->assign("CONTENT", "empty"); ?> diff --git a/public/include/pages/statistics/pool.inc.php b/public/include/pages/statistics/pool.inc.php index 7937029d..0e2383d0 100644 --- a/public/include/pages/statistics/pool.inc.php +++ b/public/include/pages/statistics/pool.inc.php @@ -67,9 +67,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { // Public / private page detection if ($setting->getValue('acl_pool_statistics')) { - $smarty->assign("CONTENT", "authenticated.tpl"); + $smarty->assign("CONTENT", "default.tpl"); } else if ($user->isAuthenticated() && ! $setting->getValue('acl_pool_statistics')) { - $smarty->assign("CONTENT", "authenticated.tpl"); + $smarty->assign("CONTENT", "default.tpl"); } else { $smarty->assign("CONTENT", "../default.tpl"); } diff --git a/public/include/pages/statistics/round.inc.php b/public/include/pages/statistics/round.inc.php index 869dbb72..e984ed66 100644 --- a/public/include/pages/statistics/round.inc.php +++ b/public/include/pages/statistics/round.inc.php @@ -19,13 +19,13 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { $iKey = $_REQUEST['height']; } } - $aDetailsForBlockHeight = $roundstats->getDetailsForBlockHeight($iKey, $user->isAdmin($_SESSION['USERDATA']['id'])); - $aRoundShareStats = $roundstats->getRoundStatsForAccounts($iKey, $user->isAdmin($_SESSION['USERDATA']['id'])); + $aDetailsForBlockHeight = $roundstats->getDetailsForBlockHeight($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); } else { - $aUserRoundTransactions = $roundstats->getUserRoundTransactions($iKey, $_SESSION['USERDATA']['id']); + $aUserRoundTransactions = $roundstats->getUserRoundTransactions($iKey, @$_SESSION['USERDATA']['id']); } // Propagate content our template @@ -38,7 +38,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) { if ($setting->getValue('acl_round_statistics')) { $smarty->assign("CONTENT", "default.tpl"); -} else if ($user->isAuthenticated()) { +} else if ($user->isAuthenticated(false)) { $smarty->assign("CONTENT", "default.tpl"); +} else { + $smarty->assign("CONTENT", "empty"); } ?> diff --git a/public/templates/test/master.tpl b/public/templates/test/master.tpl index 79e36d09..eb5633d3 100644 --- a/public/templates/test/master.tpl +++ b/public/templates/test/master.tpl @@ -41,7 +41,7 @@