Пример #1
0
function get_email($user, $short = false)
{
    global $g_user, $style;
    if ($g_user['userid'] == 0) {
        return '- (Versteckt)';
    }
    $retstring = '<a href="mailto:' . $user['useremail'] . '">' . ($short ? chopstring($user['useremail'], 20) : $user['useremail']) . '</a>';
    if (!$user['userhideemail']) {
        return $retstring;
    } else {
        if ($user['userid'] == $g_user['userid']) {
            return $retstring . " - (Versteckt)";
        } else {
            if (!$g_user['userisadmin']) {
                return '- (Versteckt)';
            } else {
                if ($short) {
                    return $retstring;
                } else {
                    return '- (Versteckt) ' . $style['smallfont'] . ' [Admin: ' . $retstring . ' ]' . $style['smallfontend'];
                }
            }
        }
    }
}
Пример #2
0
        $user['userjoin'] = form_date($user['userjoin']);
        $user['userlastpost'] = form_date($user['userlastpost']);
        $user['userlocation'] = chopstring(parse_code($user['userlocation']), 50);
        if ($user['userhomepage'] == "http://") {
            $user['userhomepage'] = '';
        }
        $user['userhomepage'] = parse_code($user['userhomepage']);
        $user['username'] = parse_code($user['username']);
        if ($config['showpostslevel'] != 2) {
            if (!$g_user['userisadmin']) {
                $user['userposts'] = 'n/a';
            }
        }
        $user['useremail'] = get_email($user, true);
        if ($user['userhomepage']) {
            $user['userhomepage'] = '<a href="' . str_replace('"', '', $user['userhomepage']) . '" target="_blank">' . chopstring($user['userhomepage'], 35) . "</a>";
        } else {
            $user['userhomepage'] = "&nbsp;";
        }
        if (!$user['usericq']) {
            $user['usericq'] = "&nbsp;";
        }
        if (!$user['userlocation']) {
            $user['userlocation'] = "&nbsp;";
        }
        eval($TMemberrow->GetTemplate("MEMBER_ROWS"));
        $i++;
    }
}
$search = str_replace('"', '&quot;', $search);
$navpath .= 'Mitgliederliste';
Пример #3
0
if ($g_user['userid']) {
    $r_lastvisited = thwb_query("SELECT boardid, lastvisitedtime FROM " . $pref . "lastvisited WHERE userid={$g_user['userid']}");
    while ($lastvisited = mysql_fetch_array($r_lastvisited)) {
        $a_lastvisited[$lastvisited['boardid']] = $lastvisited['lastvisitedtime'];
    }
}
// precache boards
$a_board = array();
$r_board = thwb_query("SELECT b.boardid, b.boardname, b.boardthreads, b.boardposts,\n    b.boardlastpost, b.boarddescription, b.boardlastpostby, b.boardthreadtopic,\n    b.boardthreadid, b.categoryid\n    FROM " . $pref . "board AS b\n    WHERE boarddisabled = 0\n    ORDER BY b.boardorder ASC");
while ($board = mysql_fetch_array($r_board)) {
    $P->set_boardid($board['boardid']);
    if ($P->has_permission(P_VIEW)) {
        if ($board['boardlastpost'] == 0) {
            $board['modified'] = "(Noch kein Post)";
        } else {
            $board['modified'] = form_date($board['boardlastpost']) . "<br><a href=\"" . build_link("showtopic.php?threadid={$board['boardthreadid']}" . (!empty($lastvisited) ? "&amp;time={$lastvisited}" : '') . "&amp;pagenum=lastpage#bottom") . "\" title=\"" . str_replace('"', '&quot;', $board['boardthreadtopic']) . "\">" . parse_code(chopstring($board['boardthreadtopic'], 30)) . '</a> von ' . parse_code($board['boardlastpostby']);
        }
    } else {
        if ($config['showprivateboards']) {
            $board['modified'] = '<font color="' . $style['color_err'] . '">N/A</font>';
            $board['boardthreads'] = '<font color="' . $style['color_err'] . '">N/A</font>';
            $board['boardposts'] = '<font color="' . $style['color_err'] . '">N/A</font>';
            $board['boarddescription'] = '<font color="' . $style['color_err'] . '">[Kein Zugriff] </font>' . $board['boarddescription'];
        } else {
            continue;
        }
    }
    $a_board[$board['categoryid']][] = $board;
}
mysql_free_result($r_board);
$INDEXROWS = '';