template updates for new empty content
This commit is contained in:
parent
5c11c74974
commit
0dd1cc7d50
@ -5,7 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt');
|
|||||||
if ($user->isAuthenticated()) {
|
if ($user->isAuthenticated()) {
|
||||||
if ($setting->getValue('disable_notifications') == 1) {
|
if ($setting->getValue('disable_notifications') == 1) {
|
||||||
$_SESSION['POPUP'][] = array('CONTENT' => 'Notification system disabled by admin.', 'TYPE' => 'info');
|
$_SESSION['POPUP'][] = array('CONTENT' => 'Notification system disabled by admin.', 'TYPE' => 'info');
|
||||||
$smarty->assign('CONTENT', '../../global/empty.tpl');
|
$smarty->assign('CONTENT', 'empty');
|
||||||
} else {
|
} else {
|
||||||
if (@$_REQUEST['do'] == 'save') {
|
if (@$_REQUEST['do'] == 'save') {
|
||||||
if ($notification->updateSettings($_SESSION['USERDATA']['id'], $_REQUEST['data'])) {
|
if ($notification->updateSettings($_SESSION['USERDATA']['id'], $_REQUEST['data'])) {
|
||||||
|
|||||||
@ -9,5 +9,5 @@ if ($user->isAuthenticated()) {
|
|||||||
header("Location: " . $_SERVER['HTTP_REFERER']);
|
header("Location: " . $_SERVER['HTTP_REFERER']);
|
||||||
}
|
}
|
||||||
// Somehow we still need to load this empty template
|
// Somehow we still need to load this empty template
|
||||||
$smarty->assign("CONTENT", "../../global/empty.tpl");
|
$smarty->assign("CONTENT", "empty");
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -67,9 +67,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
|
|
||||||
// Public / private page detection
|
// Public / private page detection
|
||||||
if ($setting->getValue('acl_pool_statistics')) {
|
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')) {
|
} else if ($user->isAuthenticated() && ! $setting->getValue('acl_pool_statistics')) {
|
||||||
$smarty->assign("CONTENT", "authenticated.tpl");
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
} else {
|
} else {
|
||||||
$smarty->assign("CONTENT", "../default.tpl");
|
$smarty->assign("CONTENT", "../default.tpl");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -19,13 +19,13 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
$iKey = $_REQUEST['height'];
|
$iKey = $_REQUEST['height'];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$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
|
||||||
@ -38,7 +38,9 @@ if (!$smarty->isCached('master.tpl', $smarty_cache_key)) {
|
|||||||
|
|
||||||
if ($setting->getValue('acl_round_statistics')) {
|
if ($setting->getValue('acl_round_statistics')) {
|
||||||
$smarty->assign("CONTENT", "default.tpl");
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
} else if ($user->isAuthenticated()) {
|
} else if ($user->isAuthenticated(false)) {
|
||||||
$smarty->assign("CONTENT", "default.tpl");
|
$smarty->assign("CONTENT", "default.tpl");
|
||||||
|
} else {
|
||||||
|
$smarty->assign("CONTENT", "empty");
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
|
|||||||
@ -41,7 +41,7 @@
|
|||||||
<h4 class="{$smarty.session.POPUP[popup].TYPE|default:"info"}">{$smarty.session.POPUP[popup].CONTENT}</h4>
|
<h4 class="{$smarty.session.POPUP[popup].TYPE|default:"info"}">{$smarty.session.POPUP[popup].CONTENT}</h4>
|
||||||
{/section}
|
{/section}
|
||||||
{/if}
|
{/if}
|
||||||
{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}
|
{if $CONTENT != "empty" or $CONTENT != ""}{if file_exists($smarty.current_dir|cat:"/$PAGE/$ACTION/$CONTENT")}{include file="$PAGE/$ACTION/$CONTENT"}{else}Missing template for this page{/if}{/if}
|
||||||
<div class="spacer"></div>
|
<div class="spacer"></div>
|
||||||
</section>
|
</section>
|
||||||
</body>
|
</body>
|
||||||
|
|||||||
@ -12,7 +12,7 @@
|
|||||||
{assign var=rank value=1}
|
{assign var=rank value=1}
|
||||||
{assign var=listed value=0}
|
{assign var=listed value=0}
|
||||||
{section shares $CONTRIBSHARES}
|
{section shares $CONTRIBSHARES}
|
||||||
<tr{if $GLOBAL.userdata.username == $CONTRIBSHARES[shares].account}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
|
<tr{if $GLOBAL.userdata.username|default:"" == $CONTRIBSHARES[shares].account}{assign var=listed value=1} style="background-color:#99EB99;"{else} class="{cycle values="odd,even"}"{/if}>
|
||||||
<td align="center">{$rank++}</td>
|
<td align="center">{$rank++}</td>
|
||||||
<td>{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
|
<td>{if $CONTRIBSHARES[shares].is_anonymous|default:"0" == 1}anonymous{else}{$CONTRIBSHARES[shares].account|escape}{/if}</td>
|
||||||
<td align="right" style="padding-right: 25px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
|
<td align="right" style="padding-right: 25px;">{$CONTRIBSHARES[shares].shares|number_format}</td>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user