Exemple #1
0
    }
    $tpl->assign('user', $user);
    ob_start();
    $tpl->display(DESIGN . '/tpl/user/user_list.html');
    $content = ob_get_contents();
    ob_end_clean();
    main_content(USER_LIST, $content, '', 1);
}
if (isset($_GET['action'])) {
    switch ($_GET['action']) {
        case 'viewonline':
            user_view_online();
            break;
        case 'list':
            if (@$_SESSION['rights']['public']['user']['list'] or @$_SESSION['rights']['superadmin']) {
                user_liste();
            } else {
                table(ERROR, ACCESS_DENIED);
            }
            break;
        case 'addcomment':
            $conditions['action'] = 'add';
            $conditions['link'] = '?section=user&view=gb&id=' . (int) $_GET['id'];
            comments_add('user', (int) $_GET['id'], $conditions);
            break;
        case 'editcomment':
            $conditions['action'] = 'edit';
            $conditions['link'] = '?section=user&view=gb&id=' . (int) $_GET['subid'];
            comments_edit('user', (int) $_GET['subid'], (int) $_GET['id'], $conditions);
            break;
        default:
Exemple #2
0
     if ($aktion != "chatuserliste") {
         echo "<TABLE CELLPADDING=\"2\" CELLSPACING=\"0\" BORDER=\"0\" WIDTH=\"100%\" BGCOLOR=\"{$farbe_tabelle_kopf}\">\n" . "<TR><TD><A HREF=\"#\" onClick=\"window.close();\">" . "<IMG SRC=\"pics/button-x.gif\" ALT=\"schließen\" WIDTH=\"15\" HEIGHT=\"13\" ALIGN=\"RIGHT\" BORDER=\"0\"></A>" . "<FONT SIZE=\"-1\" COLOR=\"{$farbe_text}\"><B>{$box}</B></FONT>" . "<IMG SRC=\"pics/fuell.gif\" ALT=\"\" WIDTH=1 HEIGHT=13><BR>\n" . "<TABLE CELLPADDING=\"5\" CELLSPACING=\"0\" BORDER=\"0\" WIDTH=\"100%\" BGCOLOR=\"{$farbe_tabelle_koerper}\">" . "<TR><TD><B>" . $larr[0]['r_name'] . "</B><BR>" . ($larr[0]['r_topic'] ? $f1 . "Topic: " . $larr[0]['r_topic'] . $f2 . "<BR>" : "") . "<BR>";
     } else {
         $linkuser = "******"user.php?http_host={$http_host}&id={$id}&aktion=chatuserliste\"";
         echo "<CENTER>" . $f3 . "[<a onMouseOver=\"return(true)\" " . $linkuser . ">" . $t['sonst19'] . "</A>]";
         if ((!isset($beichtstuhl) || !$beichtstuhl) && $smilies_datei != "" && (!isset($smilies_aus) || !$smilies_aus)) {
             $linksmilies = "href=\"" . $smilies_datei . "?http_host={$http_host}&id={$id}\"";
             echo "&nbsp;[<a onMouseOver=\"return(true)\" {$linksmilies}>" . $t['sonst20'] . "</A>]";
         }
         echo $f4 . "<BR>\n" . $f1 . $larr[0]['r_name'] . $f2 . "<BR>\n";
     }
     // Userliste ausgeben
     if ($aktion != "chatuserliste") {
         user_liste($larr, $rows);
     } else {
         user_liste($larr, 0);
     }
     if ($aktion != "chatuserliste") {
         echo "<P ALIGN=\"CENTER\">" . $f1 . $t['sonst12'] . $f2 . "</P>\n";
     }
     echo "</TD></TR></TABLE></TD></TR></TABLE>\n";
     if ($aktion == "chatuserliste") {
         if ($rows > 15) {
             echo "{$f3}<B>[<a onMouseOver=\"return(true)\" {$linkuser}>" . $t['sonst19'] . "</A>]";
             if ($smilies_datei != "") {
                 echo "&nbsp;[<a onMouseOver=\"return(true)\" {$linksmilies}>" . $t['sonst20'] . "</A>]";
             }
             echo "</B>" . $f4 . "</CENTER>\n";
         }
     }
 }