Ejemplo n.º 1
0
 <?php 
    # Put the rows for showing Polls
    if ($this_page == 'xnews' || $this_page == 'chapters' || $this_page == 'accounts' || $this_page == 'gallery') {
        show_polls();
    }
    # Put the rows for showing Birthdays
    if ($this_page == 'preferences' || $this_page == 'univ' || $this_page == 'mecnews' || $this_page == 'gallery') {
        show_bday();
    }
    # Put the rows for showing Credits
    if ($this_page == 'subscribe' || $this_page == 'preferences' || $this_page == 'mecnews' || $this_page == 'bday') {
        show_credits();
    }
    # Put the rows for showing Mailing Lists
    if ($this_page == 'preferences' || $this_page == 'contact' || $this_page == 'accounts') {
        show_groups();
    }
    ?>

  <TR>
    <TD align=center>
<?php 
    if (!$no_search_menu) {
        ?>
<!--XMECian search starts-->
<TABLE cellSpacing=2 cellPadding=0 border=0>
<FORM name=frmxsearch method=get action="/search.php">
  <TR>
    <TD colspan=2 align=center><img src="images/xsearch.jpg"></TD>
  </TR>
  <TR>
Ejemplo n.º 2
0
    }
}
setcookie("THREADED", $threaded, time() + 90 * 86400, "/");
if ($search != "") {
    $options = "+T{$threaded}+Q" . urlencode($search);
} else {
    $options = "+T{$threaded}";
}
// Now handle the request...
switch ($op) {
    case 'l':
        // List
        if ($group) {
            show_messages($group, $groups, $start, $search, $threaded);
        } else {
            show_groups($groups, $search);
        }
        break;
    case 'n':
        // New message
        if ($LOGIN_USER == "") {
            $options = str_replace("+", "%2B", "+g" . urlencode($group) . $options);
            header("Location: login.php?PAGE={$PHP_SELF}?n{$options}");
            return;
        }
        new_message($group, $groups, $start, "", $from, "");
        break;
    case 'p':
        // Post message
        if ($LOGIN_USER == "") {
            $options = str_replace("+", "%2B", "+g" . urlencode($group) . $options);