Code errors

This commit is contained in:
lopar 2018-11-05 22:56:50 +02:00
parent 9d14ff16b3
commit e13e29c8ee

View File

@ -736,20 +736,20 @@ if ($_REQUEST['level'] == 'fiz') {
} }
if($_POST['back2']) { if($_POST['back2']) {
$z = $zay->getlist(2,null,$user['zayavka']); $z = $zay->getlist(2,null,$user['zayavka']);
addchp ('<font color=red>Внимание!</font> '.nick::id($user['id'])->full(1).' отозвал заявку.','{[]}'.nick::id($res['$z[$user['zayavka']]['team1'][0]'])->short().'{[]}'); AddChatSystem('Внимание!'.nick::id($user['id'])->short().' отозвал заявку.');
echo $zay->delteam (2,$user['id'], $user['zayavka'], 2); echo $zay->delteam (2,$user['id'], $user['zayavka'], 2);
} }
if($_POST['cansel']) { if($_POST['cansel']) {
$z = $zay->getlist(2,null,$user['zayavka']); $z = $zay->getlist(2,null,$user['zayavka']);
echo $zay->delteam (2,$z[$user['zayavka']]['team2'][0], $user['zayavka'], 2); echo $zay->delteam (2,$z[$user['zayavka']]['team2'][0], $user['zayavka'], 2);
addchp ('<font color=red>Внимание!</font> '.nick::id($user['id'])->full(1).' отказался от поединка.','{[]}'.nick::id($res['$z[$user['zayavka']]['team2'][0]'])->short().'{[]}'); AddChatSystem('Внимание!'.nick::id($user['id'])->short().' отказался от поединка.');
} }
if($_POST['confirm2'] && !$user['zayavka']) { if($_POST['confirm2'] && !$user['zayavka']) {
$z = $zay->getlist(2,null,$_REQUEST['gocombat']); $z = $zay->getlist(2,null,$_REQUEST['gocombat']);
$toper = $z[$_REQUEST['gocombat']]['team1'][0]; $toper = $z[$_REQUEST['gocombat']]['team1'][0];
$toper = mysql_fetch_array(mysql_query("SELECT `klan` FROM `users` WHERE `id`='{$toper}' LIMIT 1;")); $toper = mysql_fetch_array(mysql_query("SELECT `klan` FROM `users` WHERE `id`='{$toper}' LIMIT 1;"));
if($user['klan'] != $toper['klan'] || $user['klan']==''){ if($user['klan'] != $toper['klan'] || $user['klan']==''){
addchp ('<font color=red>Внимание!</font> '.nick::id($user['id'])->full(1).' принял заявку, нужно принять вызов или отказать. ','{[]}'.nick::id($z[$_REQUEST['gocombat']]['team1'][0])->short().'{[]}'); AddChatSystem('Внимание!'.nick::id($user['id'])->short().' принял заявку, нужно принять вызов или отказать.');
} }
echo $zay->addteam (2,$user['id'], $_REQUEST['gocombat'], 2); echo $zay->addteam (2,$user['id'], $_REQUEST['gocombat'], 2);
echo "</b></font><BR>Ожидаем подтверждения боя. <input type=submit name=back2 value='Отозвать заявку'>"; echo "</b></font><BR>Ожидаем подтверждения боя. <input type=submit name=back2 value='Отозвать заявку'>";