-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwaiting.php
53 lines (46 loc) · 1.67 KB
/
waiting.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
include('config.php');
go_home_if_not_logged_in();
if($_SESSION['room_id']>0){
$room = get_room_by_id($_SESSION['room_id']);
if($room->room_id<=0){
go_to('rooms.php');
}
}
$game_settings = array(
'room_id'=> $_SESSION['room_id'],
'player_id' => $_SESSION['player_id']
);
?>
<!DOCTYPE html>
<html>
<head>
<title>Chờ bạn chơi ....</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/request.js"></script>
<script type="text/javascript">
var GAME_SETTINGS = <?php echo json_encode($game_settings); ?>;
</script>
<script type="text/javascript" src="js/waiting.js"></script>
<link rel="stylesheet" href="css/style.css" media="all">
</head>
<body>
<div class="wrap">
<div class="toolbar">
<a href="rooms.php?action=left-room">Rời phòng</a>
<a target="_blank" href="help.php">Luật chơi</a>
<a href="index.php?action=logout">Thoát Game</a>
</div>
<div class="clock turning">
</div>
<div id="caro-canvas"></div>
<div class="users-info">
<div class="user-1 user"><?php echo display_user_name(); ?></div>
<div class="sp">vs</div>
<div class="user-2 user">(Đang chờ...)</div>
</div>
<div class="player-note">Bạn đi quân <img src="images/s1.png"> Đối phương quân <img src="images/s-1.png"> </div>
</div>
</body>
</html>