remove deprecated
This commit is contained in:
parent
109cfc8d93
commit
793cd4e4f3
@ -1249,7 +1249,8 @@ if (!empty($_POST['open'])) {
|
||||
</TR><TR><TD colspan=3 align=center>Показать только бои персонажа: <INPUT TYPE=text NAME=filter value="' . (($_REQUEST['filter']) ? $_REQUEST['filter'] : $user['login']) . '"> за <INPUT TYPE=text NAME=logs size=12 value="' . (($logs != 1) ? "{$logs}" : "" . date("d.m.y")) . '"> <INPUT TYPE=submit value="фильтр!"></TD>
|
||||
</TR></TABLE>';
|
||||
|
||||
$u = mysql_fetch_array(mysql_query("SELECT `id` FROM `users` WHERE `login` = '" . (($_REQUEST['filter']) ? "{$_REQUEST['filter']}" : "{$user['login']}") . "' LIMIT 1"));
|
||||
|
||||
$u = db::c()->query('SELECT `id` FROM `users` WHERE `login` = "?s"', (($_REQUEST['filter']) ? "{$_REQUEST['filter']}" : "{$user['login']}"))->fetch_assoc();
|
||||
|
||||
$data = mysql_query("SELECT * FROM `battle` WHERE ((`t1` LIKE '%;{$u[0]};%' OR `t1` LIKE '{$u[0]}' OR `t1` LIKE '{$u[0]};%' OR `t1` LIKE '%;{$u[0]}') OR (`t2` LIKE '%;{$u[0]};%' OR `t2` LIKE '{$u[0]}' OR `t2` LIKE '{$u[0]};%' OR `t2` LIKE '%;{$u[0]}')) AND `date` LIKE '" . (($logs != 1) ? "20" . substr($logs, 6, 2) . "-" . substr($logs, 3, 2) . "-" . substr($logs, 0, 2) : "" . date("Y-m-d")) . " %' ORDER by `id` DESC");
|
||||
while ($row = @mysql_fetch_array($data)) {
|
||||
|
Loading…
Reference in New Issue
Block a user