-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathchat.php
92 lines (84 loc) · 3.1 KB
/
chat.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
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
<?php
require 'config/config.php';
?>
<!DOCTYPE html>
<html>
<head>
<script src="//code.jquery.com/jquery-latest.min.js" type="text/javascript"></script>
<script type="text/javascript" src="/js/bootstrap.js"></script>
<script type="text/javascript" src="/js/chat.min.js"></script>
<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Coda">
<link rel="stylesheet" type="text/css" href="/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="/css/misc.css">
<?
echo " <title>{$cfg['site']['title']} - Chat Logs</title>\n";
if (isset($_GET['key']))
{
$key = $_GET['key'];
if (isset($_GET['debug']))
echo " 8:session started\n";
echo " <script>var apiKey = '{$key}';</script>\n";
}
else
{
header("location: /?afterlogin={$_SERVER['PHP_SELF']}");
}
?>
</head>
<body>
<p></p>
<div class="btn-group">
<button id="showPub" type="button" class="btn" onclick="toggleChannel('Pub');"><i class="sprite sprite-neutral"></i>Public</button>
<button id="showRe" type="button" class="btn btn-primary" onclick="toggleChannel('Re');"><i class="sprite sprite-resistance"></i></button>
<button id="showEn" type="button" class="btn btn-success" onclick="toggleChannel('En');"><i class="sprite sprite-aliens"></i></button>
</div>
<div class="btn-group">
<button id="Calgary" type="button" class="btn" onclick="toggleRegion(1);">Calgary</button>
<button id="Edmonton" type="button" class="btn" onclick="toggleRegion(2);">Edmonton</button>
</div>
<div class="btn-group">
<a class="btn btn-mini" target="_blank" href="https://github.com/WritheM/ingress-scrapper/issues">Suggestions/Issues</a>
<a class="btn btn-mini" href="/">Account</a>
<a class="btn btn-mini" href="/?logout">Logout</a>
</div>
<p></p>
<div id="loading" style="position:absolute;top:50px;right:50px;">
<!-- Map Loading Spinner -->
<div class="img_outerwheel">
<div class="img_innerwheel">
</div>
</div>
<div id="map_spinner_text">
Loading Data...
</div>
</div>
<div id="offline" style="position:absolute;top:50px;right:50px;display:none;">
<!-- Map Loading Spinner -->
<div class="img_outerwheel">
<div class="img_innerwheel">
</div>
</div>
<div id="map_spinner_text">
Upgrading System...
</div>
</div>
<div id="chat" style="overflow-x: hidden;
overflow-y: scroll;
position: absolute;
width: 100%;
bottom: 50px;
left: 0;
top: 60px">
</div>
<!-- END CONTENT -->
<div id="footer" style="position: absolute;
width: 100%;
bottom: 0px;">
<button id="status" type="button" class="btn btn-mini btn-inverse disabled">Loading...</button>
· Copyright © 2013 · <a href="http://writhem.com/">WritheM Web Solutions.</a>
</div>
<?
echo $cfg['analytics'];
?>
</body>
</html>