You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
1.0 KiB
30 lines
1.0 KiB
14 years ago
|
<?php
|
||
|
/*
|
||
|
*
|
||
|
* @copyright (c) 2010 animegame.eu
|
||
|
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public Licence
|
||
|
*
|
||
|
*/
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/config.inc.php');
|
||
|
include_once($_SERVER['DOCUMENT_ROOT'].'ag/include/designfunctions.inc.php');
|
||
|
?>
|
||
|
<table cellpadding="0" cellspacing="0" height="45">
|
||
|
<tr>
|
||
|
<th class="content" align="center" colspan="2">Wer ist Online?</th>
|
||
|
</tr>
|
||
|
<tr>
|
||
|
<th class="content" align="center" width="100">User</td>
|
||
|
<th class="content" align="center" width="100">Letze Aktivität</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
$online_k = mysql_query('SELECT nickname, id, TIMESTAMPDIFF(minute, online_zeit, now()) as afk FROM user WHERE online_zeit between TIMESTAMPADD(MINUTE,-15,now()) and now() ORDER BY nickname');
|
||
|
while($row = mysql_Fetch_assoc($online_k)) {
|
||
|
?>
|
||
|
<tr>
|
||
|
<td align="center" class="content"><?php echo displayUserLink($row['id'], $row['nickname']); ?></td>
|
||
|
<td align="center" class="content">vor <?php echo $row['afk']; ?> min</td>
|
||
|
</tr>
|
||
|
<?php
|
||
|
}
|
||
|
?>
|
||
|
</table>
|