class fixes

This commit is contained in:
lopar 2018-03-03 18:03:39 +02:00
parent 48f6b75e32
commit 6700bed0d5

View File

@ -224,9 +224,9 @@ $polno = unserialize($klan['vozm']);
<table bgcolor=#eeeeee>
<tr>
<td>
<?
$data = mysql_query("SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= " . (time() - 60) . " AND `id` = users.`id`) as `online` FROM `users` WHERE `klan` = '" . $klan['id'] . "' order by online DESC, login asc ;");
while ($row = mysql_fetch_array($data)) {
<?php
$data = db::c()->query('SELECT `id`, `login`, `status`, `level`, `room`, `align`, (select `id` from `online` WHERE `date` >= ?i AND `id` = users.`id`) AS `online` FROM `users` WHERE `klan` = ?i ORDER BY `online` DESC , `login` ASC', (time()-60), $klan['id']);
while ($row = $data->fetch_assoc()) {
if ($row['online'] > 0) {
echo '<A HREF="javascript:top.AddToPrivate(\'', nick7($row['id']), '\', top.CtrlPress)" target=refreshed><img src="i/lock.gif" width=20 height=15></A>';
nick2($row['id']);