Ejemplo n.º 1
0
    $newdirection = "desc";
} else {
    $newdirection = "asc";
}
echo "<td width='23%' align='center'><b><a href='mbr_list.php?" . $uname . "mstart={$mstart}&order=date_created&direction={$newdirection}'>" . sprintf(_("Date Joined %s"), $site_abbreviation) . "</a></b></td>";
echo "<td width='23%' align='center'><b>" . _("Options") . "</b></td>";
echo "</tr>";
if (!empty($mRows)) {
    $i = 0;
    while ($row = mysql_fetch_assoc($mResult)) {
        if ($i % 2 == 0) {
            echo "<tr bgcolor='" . $theme['color_mainbody_bg'] . "'>";
        } else {
            echo "<tr bgcolor='" . $theme['color_navbar_bg'] . "'>";
        }
        if (can_reveal_details_about($row['username'], $row['u_privacy'])) {
            echo "<td width='5%' align='center'><b>" . $row['u_id'] . "</b></td>";
            echo "<td width='25%'>" . $row['username'] . "</td>";
            echo "<td width='22%' align='center'>" . date("m/d/Y", $row['date_created']) . "</td>";
            $contact_url = get_url_to_compose_message_to_user($row['username']);
            echo "<td width='23%' align='center'><b><a href='mdetail.php?id=" . $row['u_id'] . "'>" . _("Statistics") . "</a>&nbsp;|&nbsp;<a href='{$contact_url}'>" . _("PM") . "</a></b></td>\n";
        } else {
            // Print Anonymous Info
            echo "<td width='5%' align='center'><b>---</b></td>";
            echo "<td width='25%'>" . _("Anonymous") . "</td>";
            echo "<td width='22%' align='center'>---</td>";
            echo "<td width='23%' align='center'>" . _("None") . "</td>";
        }
        echo "</tr>";
        $i++;
    }
Ejemplo n.º 2
0
<?php

$relPath = "./../../pinc/";
include_once $relPath . 'base.inc';
include_once $relPath . 'privacy.inc';
include_once $relPath . 'theme.inc';
include_once $relPath . 'page_tally.inc';
include_once $relPath . 'User.inc';
include_once '../includes/team.inc';
include_once '../includes/member.inc';
$tally_name = array_get($_GET, 'tally_name', null);
$id = get_integer_param($_GET, 'id', null, 0, null);
$user = new User();
$user->load('u_id', $id);
$can_reveal = can_reveal_details_about($user->username, $user->u_privacy);
if ($can_reveal) {
    $user_referent = "'" . $user->username . "'";
} else {
    $user_referent = "#" . $user->u_id;
    // Note that this doesn't reveal anything;
    // the requestor already knows the subject's u_id,
    // because it was included in the request.
}
$desc = sprintf(_("Details for user %s"), $user_referent);
output_header($desc);
echo "<br><center>";
echo "<h1>{$desc}</h1>";
if ($can_reveal) {
    if ($user->u_privacy == PRIVACY_ANONYMOUS) {
        $visibility_note = _("These stats are visible to Site Admins and the user only.");
        echo "<i>({$visibility_note})</i><br>\n";