remove deprecated
This commit is contained in:
parent
6b7d01b507
commit
834ee8259c
16
klan.php
16
klan.php
@ -48,7 +48,11 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
|
||||
|
||||
<span id="add_member"><input type="submit" onclick="use('add_member')" value="Принять в клан"></span>
|
||||
<?php
|
||||
if (!empty($_POST['login'])) echo 'Это успех, $login!';
|
||||
|
||||
if (!empty($_POST['login'])) {
|
||||
$sok = db::c()->query('SELECT * FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $user['id'])->fetch_assoc();
|
||||
}
|
||||
|
||||
if ($klan['glava'] == $user['id'] OR $polno[$user['id']][0] == 1 OR $polno[$user['id']][1] == 1) {
|
||||
echo "<form method=post>";
|
||||
if ($polno[$user['id']][0] == 1) echo '<INPUT TYPE="button" onclick="findlogin(\'Принять в клан\', \'login2\');" value="Принять в клан" title="Принять в клан"> (это вам обойдется в <B>100</B> кр.)<BR>
|
||||
@ -83,7 +87,7 @@ if (!empty($_POST['login'])) echo 'Это успех, $login!';
|
||||
}
|
||||
|
||||
if ($_POST['login']) {
|
||||
$sok = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `klan` = \'' . $klan['id'] . '\' AND `login` = \'' . $_POST['login'] . '\' LIMIT 1;'));
|
||||
$sok = db::c()->query('SELECT `id`, `status` FROM `users` WHERE `klan` = "?s" AND `login` = "?s"', $klan['id'], $user['id'])->fetch_assoc();
|
||||
$st = strip_tags(str_replace("<", "<", str_replace(">", ">", $_POST['status'])), "<B><I><U>");
|
||||
if ($klan['glava'] == $sok['id']) {
|
||||
$st = "<font color=#008080><b>Глава клана</b></font>";
|
||||
@ -100,15 +104,15 @@ if (!empty($_POST['login'])) echo 'Это успех, $login!';
|
||||
} else {
|
||||
$polno[$sok['id']][1] = 0;
|
||||
}
|
||||
$id_checked = mysql_real_escape_string($sok['id']);
|
||||
|
||||
if (!mysql_query("UPDATE `users` SET `status` = '{$st}' WHERE `id` = '{$id_checked}';")) echo(mysql_error());
|
||||
db::c()->query('UPDATE `users` SET `status` = "?s" WHERE `id` = ?i', $st, $sok['id']);
|
||||
|
||||
if ($klan['glava'] == $user['id']) {
|
||||
mysql_query('UPDATE `clans` SET `vozm` = \'' . serialize($polno) . '\' WHERE `id` = \'' . $klan['id'] . '\';');
|
||||
db::c()->query('UPDATE `clans` SET `vozm` = "?s" WHERE `id` = ?i', serialize($polno), $klan['id']);
|
||||
}
|
||||
$sok['status'] = $st;
|
||||
}
|
||||
echo '<BR><fieldset ><legend>Редактирование статуса "', $sok['login'], '"</legend>
|
||||
echo '<BR><fieldset ><legend>Редактирование статуса "',$user['id'], '"</legend>
|
||||
Звание в клане <input type=text value="', $sok['status'], '" name=status><BR>';
|
||||
if ($klan['glava'] == $user['id']) {
|
||||
echo '<input type=checkbox name=vin ';
|
||||
|
Loading…
Reference in New Issue
Block a user