fixing zamok
This commit is contained in:
parent
f9623f6f67
commit
8243bc1206
14
klan.php
14
klan.php
@ -65,9 +65,9 @@ $polno = unserialize($klan['vozm']);
|
||||
<tr>
|
||||
<td width=50% rowspan=2 valign=top>
|
||||
<?php
|
||||
$zamok = filter_var(INPUT_POST, 'zamok', FILTER_VALIDATE_INT);
|
||||
$start_zamok = filter_var(INPUT_POST, 'start_zamok', FILTER_VALIDATE_INT);
|
||||
$kr = filter_var(INPUT_POST, 'kr', FILTER_VALIDATE_INT);
|
||||
$zamok = filter_var(INPUT_POST, 'zamok', FILTER_VALIDATE_BOOLEAN);
|
||||
$start_zamok = filter_var(INPUT_POST, 'start_zamok', FILTER_VALIDATE_BOOLEAN);
|
||||
$kr = filter_var(INPUT_POST, 'kr', FILTER_VALIDATE_BOOLEAN);
|
||||
|
||||
if ($zamok) {
|
||||
db::c()->query('UPDATE `clans` SET `zamok` = ?i WHERE `glava` = ?i', 1, $user['id']);
|
||||
@ -116,7 +116,7 @@ $polno = unserialize($klan['vozm']);
|
||||
} else {
|
||||
echo '
|
||||
<form action="klan.php" method="POST">
|
||||
<button type="submit" name="zamok" value="1">Сбор средств на постройку Замка</button>
|
||||
<button type="submit" name="zamok" value=1>Сбор средств на постройку Замка</button>
|
||||
(25000 кр.)<BR>
|
||||
</FORM>';
|
||||
}
|
||||
@ -125,18 +125,18 @@ $polno = unserialize($klan['vozm']);
|
||||
if (($klan['zbor'] >= '25000') AND ($klan['zamok'] == '1') AND ($klan['glava'] == $user['id'])) {
|
||||
echo '
|
||||
<form action="klan.php" method="POST">
|
||||
<button type="submit" name="start_zamok" value="1">Построить замок</button>
|
||||
<button type="submit" name="start_zamok" value=1>Построить замок</button>
|
||||
(Построить замок на Клановой улице)<BR>
|
||||
</FORM>';
|
||||
}
|
||||
|
||||
if ($klan['rating'] >= '1000000' AND $klan['zamok'] == '1') {
|
||||
if ($klan['rating'] >= '1000000' AND $klan['zamok'] == 1) {
|
||||
$ex = $klan['zbor'];
|
||||
echo "Сбор средств на постройку кланового замка: $ex кр./25000 кр.<BR>";
|
||||
echo '
|
||||
<FORM action="klan.php" method="POST">
|
||||
<input name="kolv" size="10">
|
||||
<button type="submit" name="kr" value="1">Пожертвовать</button>
|
||||
<button type="submit" name="kr" value=1>Пожертвовать</button>
|
||||
</FORM>';
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user