Лишние переменные в addteam() удалены.
This commit is contained in:
parent
9a6f1c8567
commit
86f3dfbfc6
12
zayavka.php
12
zayavka.php
@ -86,9 +86,11 @@ class zayavka
|
|||||||
return $zay;
|
return $zay;
|
||||||
}
|
}
|
||||||
|
|
||||||
function addteam($team, $id, $zay, $r)
|
function addteam($team, $r)
|
||||||
{
|
{
|
||||||
global $user;
|
global $user;
|
||||||
|
$id = $_SESSION['uid'];
|
||||||
|
$zay = $_REQUEST['gocombat'];
|
||||||
$owntravma = db::c()->query('SELECT `id`, `type` FROM `effects` WHERE (`type` = 12 OR `type` = 13) AND `owner` = ?i', $id)->fetch_assoc();
|
$owntravma = db::c()->query('SELECT `id`, `type` FROM `effects` WHERE (`type` = 12 OR `type` = 13) AND `owner` = ?i', $id)->fetch_assoc();
|
||||||
$z = $this->getlist($r, null, $zay);
|
$z = $this->getlist($r, null, $zay);
|
||||||
if ($owntravma) {
|
if ($owntravma) {
|
||||||
@ -680,7 +682,7 @@ if (!empty($_POST['open'])) {
|
|||||||
if ($user['klan'] != $toper['klan'] || $user['klan'] == '') {
|
if ($user['klan'] != $toper['klan'] || $user['klan'] == '') {
|
||||||
AddChatSystem('Внимание!' . nick::id($user['id'])->short() . ' принял заявку, нужно принять вызов или отказать.');
|
AddChatSystem('Внимание!' . nick::id($user['id'])->short() . ' принял заявку, нужно принять вызов или отказать.');
|
||||||
}
|
}
|
||||||
echo $zay->addteam(2, $user['id'], $_REQUEST['gocombat'], 2);
|
echo $zay->addteam(2, 2);
|
||||||
echo "</b></font><BR>Ожидаем подтверждения боя. <input type=submit name=back2 value='Отозвать заявку'>";
|
echo "</b></font><BR>Ожидаем подтверждения боя. <input type=submit name=back2 value='Отозвать заявку'>";
|
||||||
}
|
}
|
||||||
if (!empty($_POST['gofi'])) {
|
if (!empty($_POST['gofi'])) {
|
||||||
@ -887,10 +889,10 @@ if (!empty($_POST['open'])) {
|
|||||||
echo "<font color=red><b>";
|
echo "<font color=red><b>";
|
||||||
|
|
||||||
if (($_POST['confirm1']) && $_POST['gocombat'] && !$user['zayavka']) {
|
if (($_POST['confirm1']) && $_POST['gocombat'] && !$user['zayavka']) {
|
||||||
echo $zay->addteam(1, $user['id'], $_REQUEST['gocombat'], 4);
|
echo $zay->addteam(1, 4);
|
||||||
}
|
}
|
||||||
if (($_POST['confirm2']) && $_POST['gocombat'] && !$user['zayavka']) {
|
if (($_POST['confirm2']) && $_POST['gocombat'] && !$user['zayavka']) {
|
||||||
echo $zay->addteam(2, $user['id'], $_REQUEST['gocombat'], 4);
|
echo $zay->addteam(2, 4);
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($_POST['open'] && !$user['zayavka']) {
|
if ($_POST['open'] && !$user['zayavka']) {
|
||||||
@ -1047,7 +1049,7 @@ if (!empty($_POST['open'])) {
|
|||||||
echo $zay->addzayavka($_POST['startime2'] / 60, $_POST['timeout'], 99, 99, $_POST['k'], $min1, $min1, $max1, $max1, $_POST['cmt'], $user['id'], 5, 0, $blood);
|
echo $zay->addzayavka($_POST['startime2'] / 60, $_POST['timeout'], 99, 99, $_POST['k'], $min1, $min1, $max1, $max1, $_POST['cmt'], $user['id'], 5, 0, $blood);
|
||||||
}
|
}
|
||||||
if (!empty($_POST['confirm2'])) {
|
if (!empty($_POST['confirm2'])) {
|
||||||
echo "<span class='redalert'>" . $zay->addteam(1, $user['id'], $_REQUEST['gocombat'], 5) . "</span>";
|
echo "<span class='redalert'>" . $zay->addteam(1, 5) . "</span>";
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '<table cellspacing=0 cellpadding=0><tr><td>';
|
echo '<table cellspacing=0 cellpadding=0><tr><td>';
|
||||||
|
Loading…
Reference in New Issue
Block a user