File size: 1.43Kb
<?php if (isset($_SESSION['note'])): ?>
<?php if (! is_array($_SESSION['note'])) {
$_SESSION['note'] = array('success' => $_SESSION['note']);
}?>
<?php foreach ($_SESSION['note'] as $status => $messages): ?>
<?php if (is_array($messages)): ?>
<?php $messages = implode('</div><div>', $messages); ?>
<?php endif; ?>
<div class="alert alert-<?= $status ?> alert-block">
<button type="button" class="close" data-dismiss="alert">×</button>
<div><?= $messages ?></div>
</div>
<?php endforeach ?>
<?php endif; ?>
<?php if (is_user()): ?>
<?php if (!empty($udata['users_newprivat'])): ?>
<?php if (!strsearch($php_self, array('/pages/ban.php', '/pages/key.php', '/pages/private.php', '/pages/rules.php', '/pages/closed.php'))): ?>
<img src="/images/img/new_mail.gif" alt="image" /> <b><a href="/pages/private.php"><span style="color:#ff0000">Приватное сообщение! (<?=$udata['users_newprivat']?>)</span></a></b><br />
<?php endif; ?>
<?php endif; ?>
<?php if (!empty($udata['users_newwall'])): ?>
<?php if (!strsearch($php_self, array('/pages/ban.php', '/pages/key.php', '/pages/wall.php', '/pages/rules.php', '/pages/closed.php'))): ?>
<img src="/images/img/wall.gif" alt="image" /> <b><a href="/pages/wall.php"><span style="color:#ff0000">Запись на стене! (<?=$udata['users_newwall']?>)</span></a></b><br />
<?php endif; ?>
<?php endif; ?>
<?php endif; ?>