renamings

This commit is contained in:
Igor Barkov [iwork] 2019-06-21 13:22:26 +03:00
parent 07c4200e01
commit a850563d5f
5 changed files with 91 additions and 2 deletions

View File

@ -150,7 +150,7 @@ switch ($location[0]) {
move(31, 'tower.php');
break;
case 'level14':
move(30, 'clan_edit.php');
move(30, 'clan_create.php');
break;
case 'level650':
move(650, 'ul_clans.php');

View File

@ -18,6 +18,7 @@ if (!isset($_SESSION['uid'])) header("Location: index.php");
<head>
<title>Окно игры</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/main.css">
<style>
form {
width: 100%;

88
game2.php Normal file
View File

@ -0,0 +1,88 @@
<?php
/**
* Copyright (c) 2018.
* Author: Igor Barkov <lopar.4ever@gmail.com>
* Project name: Battles-Game
*/
session_start();
if (!isset($_SESSION['uid'])) header("Location: index.php");
//include("config.php");
//$msg = filter_input(INPUT_POST,'msg');
//$uid = $_SESSION['uid'];
//if ($msg) db::c()->query('INSERT INTO `chat` (`cid`, `uid`, `msg`) VALUES (?i, ?i, "?s")', 1, $uid, $msg);
?>
<!doctype html>
<html>
<head>
<title>Окно игры</title>
<meta charset="utf-8">
<link rel="stylesheet" href="css/main.css">
<style>
form {
width: 100%;
text-align: center;
}
form input {
border: 1px solid silver;
width: 80%;
margin-right: .5%;
}
form input[type="submit"] {
width: 15%;
}
body {
margin: 0;
}
.wrap {
display: grid;
height: 100vh;
grid-template-rows: 45px /* Шапка */ 2fr /* Окно игры */ 1fr /* Окно чата*/ 30px; /* Подвал */
}
header {
text-align: right;
box-shadow: 0 3px 2px -2px slategray;
}
footer {
margin: 5px;
}
#game, #chat {
overflow: auto;
box-shadow: 0 3px 2px -2px slategray;
padding: 5px;
}
a img {
border: 1px solid #fff;
transition: box-shadow 0.5s ease;
margin: 5px;
}
a img:hover {
box-shadow: 0 0 7px slategray;
}
</style>
</head>
<body>
<div class="wrap">
<header>
Всякие заголовки, кнопки, ссылки, etc...
</header>
<div id="game"></div>
</div>
<script>
$("#game").load("main.php");
</script>
</body>
</html>

View File

@ -2355,7 +2355,7 @@ if ($user['room'] == 31) {
die();
}
if ($user['room'] == 30) {
header('Location: clan_edit.php');
header('Location: clan_create.php');
die();
}
if ($user['room'] == 34) {