Мелкие ошибки из анализатора.
This commit is contained in:
+15
-16
@@ -1,7 +1,11 @@
|
||||
<?php
|
||||
|
||||
use Battles\Template;
|
||||
use Battles\User;
|
||||
|
||||
session_start();
|
||||
require_once "functions.php";
|
||||
$user = $user ?? new \Battles\User($_SESSION['uid']);
|
||||
$user = $user ?? new User($_SESSION['uid']);
|
||||
|
||||
function secs2hrs($s, $short = 0)
|
||||
{
|
||||
@@ -66,7 +70,7 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
$cavedata = [620 => ['x1' => 3, 'y1' => 2, 'dir1' => 2]];
|
||||
$podzemdata = [621 => ['name1' => 'Проклятый Рудник', 'name2' => 'Проклятого Рудника']];
|
||||
$warning = $_GET["warning"] ?? '';
|
||||
\Battles\Template::header('enter_cave');
|
||||
Template::header('enter_cave');
|
||||
if ($warning) {
|
||||
echo sprintf('<b style="color: #f80000">%s</b>', $warning);
|
||||
}
|
||||
@@ -130,7 +134,7 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
|
||||
if ($wawe == 0) {
|
||||
echo "<FORM id='REQUEST'>
|
||||
<FIELDSET style='padding-left: 5; width=50%; color:#000000;'><LEGEND><B> Группа </B> </LEGEND>
|
||||
<FIELDSET style='padding-left: 5px; width=50%; color:#000000;'><LEGEND><B> Группа </B> </LEGEND>
|
||||
<table>
|
||||
<tr>
|
||||
<td>Комментарий</td>
|
||||
@@ -149,7 +153,7 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
</FORM>";
|
||||
} else {
|
||||
echo "<FORM id='REQUEST'>
|
||||
<FIELDSET style='padding-left: 5; width=50%'>
|
||||
<FIELDSET style='padding-left: 5px; width=50%'>
|
||||
<LEGEND><B> Группа </B> </LEGEND>";
|
||||
if ($nawe == 1) {
|
||||
echo "<INPUT style=\"font-size:12px;\" type='submit' name='start' value='Начать' /> ";
|
||||
@@ -258,11 +262,10 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
?>
|
||||
|
||||
<TR>
|
||||
<TD>
|
||||
</TD>
|
||||
<TD></TD>
|
||||
</TR>
|
||||
<TR height=1>
|
||||
<TD height=1 colspan=2><SPAN></SPAN></TD>
|
||||
<TR>
|
||||
<TD colspan=2></TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<?php
|
||||
@@ -436,7 +439,6 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
?>
|
||||
|
||||
<TD nowrap valign=top>
|
||||
|
||||
<BR>
|
||||
<DIV align=right>
|
||||
<INPUT style="font-size:12px;" onClick="document.location.href='enter_cave.php?<?= time(); ?>'"
|
||||
@@ -444,13 +446,10 @@ if (in_array($user->room, Config::$canalenters)) {
|
||||
<input style="font-size: 12px;" type="button" value="Вернуться"
|
||||
onclick="document.location.href='enter_cave.php?ext=1';"/>
|
||||
</DIV>
|
||||
</TD>
|
||||
</TR></TBODY></TABLE>
|
||||
</TD>
|
||||
</TR>
|
||||
</TABLE>
|
||||
<div id="goto" style="text-align:right;white-space:nowrap"> </div>
|
||||
<br><br>
|
||||
</TABLE>
|
||||
</TABLE>
|
||||
<div id="goto" style="text-align:right;white-space:nowrap"> </div>
|
||||
<br><br>
|
||||
<?php
|
||||
} else {
|
||||
header("location: main.php");
|
||||
|
||||
Reference in New Issue
Block a user