Exemplo n.º 1
0
            header('Location: /egroupware/fudforum/3814588639/index.php?' . $returnto . '&S=' . s);
        } else {
            header('Location: /egroupware/fudforum/3814588639/index.php?' . $returnto);
        }
    }
    exit;
}
if (isset($_POST['ok'])) {
    check_return($usr->returnto);
}
$TITLE_EXTRA = ': Error Form';
q('UPDATE phpgw_fud_ses SET returnto=NULL WHERE id=' . $usr->sid);
if (isset($usr->data['er_msg'], $usr->data['err_t'])) {
    $error_message = $usr->data['er_msg'];
    $error_title = $usr->data['err_t'];
    ses_putvar((int) $usr->sid, null);
} else {
    $error_message = 'Invalid URL';
    $error_title = 'Error';
}
echo $GLOBALS['fud_egw_hdr'];
?>
<table width="100%" border="0" cellspacing="3" cellpadding="5"><tr><td class="ForumBackground">
<div align="center">
<table border="0" cellspacing="1" cellpadding="2" class="DialogTable">
<tr><th><?php 
echo $error_title;
?>
</th></tr>
<tr class="RowStyleA" align="center"><td class="GenText"><?php 
echo $error_message;
Exemplo n.º 2
0
            $prev_th = $r->thread_id;
            $message_data .= '<tr><th class="SelTS">&nbsp;Topic: <a class="thLnk" href="/egroupware/fudforum/3814588639/index.php?t=' . d_thread_view . '&amp;goto=' . $r->id . '&amp;' . _rsid . '">' . $r->thr_subject . '</a></th></tr>';
        }
        if (_uid && $r->last_view < $r->post_stamp && $r->post_stamp > $usr->last_read && !isset($mark_read[$r->thread_id])) {
            $mark_read[$r->thread_id] = $r->id;
        }
        $usr->md = $r->md;
        $message_data .= tmpl_drawmsg($r, $usr, $perms, false, $n, '');
    }
    un_register_fps();
    unset($c);
} else {
    $message_data = '';
}
if (_uid && isset($mark_read)) {
    ses_putvar((int) $usr->sid, $mark_read);
}
if (isset($thl)) {
    q('UPDATE phpgw_fud_thread SET views=views+1 WHERE id IN(' . implode(',', $thl) . ')');
}
if (!$message_data) {
    if (isset($_GET['unread'])) {
        $message_data = '<tr><th align=middle>There are no unread messages matching your query.</th></tr>';
        if (!$frm_id && !$th) {
            user_mark_all_read(_uid);
        } else {
            if ($frm_id) {
                user_mark_forum_read(_uid, $frm_id, $usr->last_read);
            }
        }
    } else {