замена mysql #59
@ -16,15 +16,7 @@ $utf8Login = '';
|
|||||||
$utf8Login2 = '';
|
$utf8Login2 = '';
|
||||||
$utf8Login = $uplogin;
|
$utf8Login = $uplogin;
|
||||||
if ($uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete') {
|
if ($uplogin != 'delete' && $utf8Login != 'delete' && $utf8Login2 != 'delete') {
|
||||||
$clan = mysql_fetch_array(
|
$clan = Db::getRow('select * from clan where id = ? or id = ? or name = ? limit 1', [$_GET['id'], $uplogin, $uplogin]);
|
||||||
mysql_query(
|
|
||||||
'SELECT `u`.* FROM `clan` AS `u` WHERE (`u`.`id`="' . mysql_real_escape_string(
|
|
||||||
$_GET['id']
|
|
||||||
) . '" OR `u`.`id`="' . mysql_real_escape_string(
|
|
||||||
$uplogin
|
|
||||||
) . '" OR `u`.`name`="' . mysql_real_escape_string($uplogin) . '") LIMIT 1'
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
if (!isset($clan['id'])) {
|
if (!isset($clan['id'])) {
|
||||||
die(
|
die(
|
||||||
|
Loading…
Reference in New Issue
Block a user