示例#1
0
$downloaded = mksize($arr["downloaded"]);
$added = substr($arr['added'],0,10);
$last_access = substr($arr['last_access'],0,10);
if($uc%2 == 0)
$utc = "a08f74";
else
$utc = "bbaf9b";
echo '<tr bgcolor="#'.$utc.'"><td align=left><b><a href="userdetails.php?id=' . $arr['id'] . '">' . 
$arr['username'].'</b></a>' . get_user_icons($arr) . '</td>
<td align=center>'.$arr[email].'</td>
<td align=center>'.$added.'</td>
<td align=center>'.$last_access.'</td>
<td align=center>'.$downloaded.'</td>
<td align=center>'.$uploaded.'</td>
<td align=center>'.$ratio.'</td>
<td align=center>'.gethostbyaddr_with_cache($arr[ip]).'</td></tr>'."\n";
$ip = $arr[ip];
}
}
}
}
}
else
{
print("<br><table width=60% border=1 cellspacing=0 cellpadding=9><tr><td align=center>");
print("<h2>You are not able to view this page.</h2></table></td></tr>");
}
}

stdfoot();
?>
示例#2
0
 echo "<td nowrap>";
 echo "<a href='" . $sorthref . "user_id&amp;orderdir=ASC'><img src=" . $arrow_up . "></a>";
 echo "<a href='" . $sorthref . "user_id&amp;orderdir=DESC'><img src=" . $arrow_down . "></a>&nbsp;" . _AM_VOTER . "</td>";
 echo "<td nowrap>";
 echo "<a href='" . $sorthref . "time&amp;orderdir=ASC'><img src=" . $arrow_up . "></a>";
 echo "<a href='" . $sorthref . "time&amp;orderdir=DESC'><img src=" . $arrow_down . "></a>&nbsp;" . _AM_VOTETIME . "</td>";
 //		echo "<td nowrap>&nbsp;</td>";
 echo "</tr>";
 $max = $logs_count > $limit ? $limit : $logs_count;
 for ($i = 0; $i < $max; $i++) {
     $option = new XoopsPollOption($logs_arr[$i]->getVar("option_id"));
     echo "<tr class='bg1'>";
     echo "<td align='center'>" . $logs_arr[$i]->getVar("log_id") . "</td>";
     echo "<td>" . $option->getVar('option_text') . "</td>";
     if ($xoopsModuleConfig['lookuphost'] == 1) {
         $remote_ip = gethostbyaddr_with_cache($logs_arr[$i]->getVar("ip"));
     } else {
         $remote_ip = $logs_arr[$i]->getVar("ip");
     }
     echo "<td align='center'>" . $remote_ip . "</td>";
     if ($logs_arr[$i]->getVar("user_id") != 0) {
         $user = new XoopsUser($logs_arr[$i]->getVar("user_id"));
         $uname = $user->getVar('uname');
         echo "<td align='center'><a href=" . XOOPS_URL . "/userinfo.php?uid=" . $user->getVar("uid") . ">" . $uname . "</a></td>";
     } else {
         $uname = $xoopsConfig['anonymous'];
         echo "<td align='center'>" . $uname . "</td>";
     }
     echo "<td>" . formatTimeStamp($logs_arr[$i]->getVar("time"), "l") . "</td>";
     //			echo "<td>"._DELETE."</td>";
     echo "</tr>";