Внедрение шаблонизатора. Решение самых идиотских ошибок вёрстки. Кое-где исправлены ошибки синтаксиса php.
This commit is contained in:
58
hell.php
58
hell.php
@@ -42,34 +42,21 @@ $hr = new hellround;
|
||||
|
||||
$mytrip = $hr->is_in_trip($user['id']);
|
||||
$tr = $hr->get_par($mytrip);
|
||||
|
||||
Template::header('hell');
|
||||
if ($mytrip > 0) {
|
||||
|
||||
?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.css">
|
||||
<meta content="text/html; charset=utf-8" http-equiv=Content-type>
|
||||
<style>
|
||||
body {
|
||||
background-image: url('i/hell. jpg');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right;
|
||||
}
|
||||
</style>
|
||||
</HEAD>
|
||||
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor=#e0e0e0>
|
||||
<?
|
||||
<style>
|
||||
body {
|
||||
background-image: url('i/hell.jpg');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right;
|
||||
}
|
||||
</style>
|
||||
<?php
|
||||
echo "<h3>Приближается <i>" . ($tr['volna'] + 1) . "</i> волна нашествия...</h3>";
|
||||
// диалоговый бот
|
||||
?>
|
||||
<table width=100%>
|
||||
|
||||
</table>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<?
|
||||
} else {
|
||||
|
||||
if ($_GET['start'] > 0) {
|
||||
$f = mysql_fetch_array(mysql_query("SELECT `date_out` FROM `hellround_pohod` WHERE `owner`= " . $user['id'] . " ORDER by `id` DESC LIMIT 1;"));
|
||||
if ((time() - strtotime($f['date_out'])) < 3600 * 24) {
|
||||
@@ -82,20 +69,14 @@ if ($mytrip > 0) {
|
||||
}
|
||||
|
||||
?>
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<link rel=stylesheet type="text/css" href="css/main.css">
|
||||
<meta content="text/html; charset=utf-8" http-equiv=Content-type>
|
||||
<style>
|
||||
<style>
|
||||
|
||||
body {
|
||||
background-image: url('i/hell. jpg');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right;
|
||||
}
|
||||
</style>
|
||||
</HEAD>
|
||||
<body leftmargin=5 topmargin=5 marginwidth=5 marginheight=5 bgcolor=#e0e0e0>
|
||||
body {
|
||||
background-image: url('i/hell.jpg');
|
||||
background-repeat: no-repeat;
|
||||
background-position: top right;
|
||||
}
|
||||
</style>
|
||||
<TABLE border=0 width=100% cellspacing="0" cellpadding="0">
|
||||
<td align=left>
|
||||
<INPUT TYPE="button" onclick="location.href = 'hell.php?start=1';" value="НАЧАТЬ ПОХОД" name="strah">
|
||||
@@ -139,8 +120,5 @@ if ($mytrip > 0) {
|
||||
</fieldset>
|
||||
</center>
|
||||
</FORM>
|
||||
</BODY>
|
||||
</HTML>
|
||||
<?
|
||||
}
|
||||
?>
|
||||
}
|
||||
Reference in New Issue
Block a user