Exemplo n.º 1
0
<?php

$page_title = translate('messages');
LoginController::LoadNotifications();
if (isset($_GET['nopage'])) {
    ob_end_clean();
}
?>

<table<?php 
if (!isset($_GET['nopage'])) {
    echo ' width="100%"';
}
?>
 border="0">
<?php 
if (sizeof($futurebb_user['notifications']) == 0) {
    echo '<tr><td>' . translate('nonotifs') . '</td></tr>';
}
foreach ($futurebb_user['notifications'] as $entry) {
    echo '<tr><td>';
    switch ($entry['type']) {
        case 'warning':
            if ($entry['read_time'] == 0) {
                echo '<img src="' . $base_config['baseurl'] . '/static/img/msgu_warning.png" alt="warning" width="22" />';
            } else {
                echo '<img src="' . $base_config['baseurl'] . '/static/img/msg_warning.png" alt="warning" width="22" />';
            }
            break;
        case 'msg':
            if ($entry['read_time'] == 0) {