noticew checks
This commit is contained in:
parent
834ee8259c
commit
d808754cfe
8
klan.php
8
klan.php
@ -86,7 +86,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
|
||||
</FORM>';
|
||||
}
|
||||
|
||||
if ($_POST['login']) {
|
||||
if (!empty($_POST['login'])) {
|
||||
$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']) {
|
||||
@ -131,7 +131,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
|
||||
|
||||
|
||||
}
|
||||
if ($_POST['login3'] && $klan['glava'] == $user['id']) {
|
||||
if (!empty($_POST['login3']) && $klan['glava'] == $user['id']) {
|
||||
$sok = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `klan` = \'' . $klan['id'] . '\' AND `login` = \'' . $_POST['login3'] . '\' LIMIT 1;'));
|
||||
//mysql_query('update `users` set `money` = `money` - 30 WHERE `id` = '.$_SESSION['uid'].';');
|
||||
//mysql_query('update `users` set `klan` = \'\', `align` = 0 WHERE `id` = '.$sok['id'].';');
|
||||
@ -140,7 +140,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
|
||||
mysql_query('update `users` set `status` = \'боец\' WHERE `id` = ' . $user['id'] . ';');
|
||||
$klan['glava'] = $sok['id'];
|
||||
}
|
||||
if ($_POST['login2'] && $polno[$user['id']][0] == 1) {
|
||||
if (!empty($_POST['login2']) && $polno[$user['id']][0] == 1) {
|
||||
$sok = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `klan` = \'\' AND `align` = \'0\' AND `login` = \'' . $_POST['login2'] . '\' LIMIT 1;'));
|
||||
$eff = mysql_fetch_array(mysql_query("SELECT * FROM `effects` WHERE `owner` = '" . $sok['id'] . "' AND `type` = 20 LIMIT 1;"));
|
||||
if (!$eff) {
|
||||
@ -153,7 +153,7 @@ if (isset($_POST['kr']) && ($_POST['kolv'] > 0)) {
|
||||
echo "Не хватает денег, или его попросту не существует.";
|
||||
}
|
||||
}
|
||||
if ($_POST['login1'] && $polno[$user['id']][0] == 1) {
|
||||
if (!empty($_POST['login1']) && $polno[$user['id']][0] == 1) {
|
||||
$sok = mysql_fetch_array(mysql_query('SELECT * FROM `users` WHERE `klan` = \'' . $klan['id'] . '\' AND `login` = \'' . $_POST['login1'] . '\' LIMIT 1;'));
|
||||
if ($sok && $user['money'] >= 30 && $klan['glava'] != $sok['id']) {
|
||||
echo 'Персонаж "', $sok['login'], '" покинул клан.';
|
||||
|
Loading…
Reference in New Issue
Block a user