-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdoozer.php
More file actions
112 lines (102 loc) · 2.63 KB
/
Copy pathdoozer.php
File metadata and controls
112 lines (102 loc) · 2.63 KB
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
<?php
session_start();
include 'functions.php';
?>
<!DOCTYPE HTML>
<html>
<head>
<title>TK Practice</title>
<link rel="stylesheet" type="text/css" href="css\style.css">
<?php
if(!empty($_SESSION['login'])){
echo '
<script>
window.onload = function() {
$("#chat_form").submit(Send);
}
function Send() {
$.post("apply_mess.php",
{
act: "send",
id: "'.$_SESSION['id'].'",
name: "'.$_SESSION['login'].'",
text: $("#mess").val()
});
$("#mess").val("");
$("#mess").focus();
return false;
}
function Get_Emoji_List(){
var div = document.getElementById(\'overlay\');
if(div.style.display == \'block\'){
div.style.display = \'none\';
}else{
div.style.display = \'block\';
}
}
function append(emoji){
document.getElementById(\'mess\').value = document.getElementById(\'mess\').value + \' \' + emoji;
}
</script>';
}
?>
<style>
#overlay {
position: fixed;
display: none;
width: 100%;
height: 100%;
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2;
cursor: pointer;
}
#text{
background: #C4C4C4;
position: absolute;
top: 50%;
left: 50%;
font-size: 50px;
color: white;
transform: translate(-50%,-50%);
-ms-transform: translate(-50%,-50%);
}
</style>
</head>
<body>
<table cellpadding="0" cellspacing="0" width="100%" align="center">
<tr>
<td colspan="3" class="header">Практика</td>
</tr>
<tr>
<td class="left_col">
<? include('menu.php'); ?>
</td>
<td class="center_col">
Інша версія системи by Слава (оновлення кожні 5 хвилин):
<br>
<?php
$doozers = array('http://tk2017euro.apphb.com', 'http://tk2017usa.apphb.com');
$db = connect();
foreach($doozers as $page){
$query = "SELECT `HTTP_STATUS` FROM FUN WHERE `URL`='".$page."' ORDER BY `TIME` DESC LIMIT 1";
$res = $db->query($query);
$status = (int)$res->fetch_assoc()['HTTP_STATUS'];
$color = "red";
if($status / 100 == 2)$color = "green";
echo "<a href='".$page."' target='_blank'>".$page."</a> - HTTP STATUS: ".$status." <span style='color:".$color."; font-size: 15pt;'>●</span><br>";
}
?>
</td>
<td class="right_col">Чат
<? include('chat.php'); ?>
</td>
</tr>
<tr>
<td colspan="3" class="footer">© 2017</td>
</tr>
</table>
</body>
</html>