-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
287 lines (247 loc) · 6.94 KB
/
index.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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
<?php
require 'steamauth/steamauth.php';
include_once 'db_connect.php';
?>
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="Description" content="GIC is a community of gamers who like to play and share fun together. We also run TF2 servers across asia.">
<meta name="Keywords" content="GIC,gaming,gaminginstitute,tf2,csgo,dota2,steam,indian gamers, indian tf2 server, indian gaming community, pc gaming, paladins, overwatch">
<link href="css/style.css" rel="stylesheet">
<link rel="icon" href="images/favicon.ico">
<link href="css/font-awesome-4.7.0/css/font-awesome.min.css" rel="stylesheet">
<link href="bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link href="css/pace.css" rel="stylesheet">
<script src="bootstrap/js/pace.min.js" type="text/javascript" async></script>
<script src="bootstrap/js/bootstrap.min.js" type="text/javascript" async></script>
<script src="bootstrap/js/jquery.min.js" type="text/javascript" async></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js" async></script>
<link rel="stylesheet" href="css/css.php" media="screen">
<style>
.banner-head a:hover {
text-decoration: none;
color: lightblue !important;
}
.flashit {
-webkit-animation: flash ease-out 7s infinite;
-moz-animation: flash ease-out 7s infinite;
animation: flash ease-out 7s infinite;
animation-delay: 2s;
}
@-webkit-keyframes flash {
from {
opacity: 0;
}
92% {
opacity: 0;
}
93% {
opacity: 0.6;
}
94% {
opacity: 0.2;
}
96% {
opacity: 0.9;
}
to {
opacity: 0;
}
}
@keyframes flash {
from {
opacity: 0;
}
92% {
opacity: 0;
}
93% {
opacity: 0.6;
}
94% {
opacity: 0.2;
}
96% {
opacity: 1;
}
to {
opacity: 0;
}
}
</style>
<title>Home - GIC </title>
<script>
$(document).ready(function() {
var num = 80;
$(window).scroll(function() {
//if you hard code, then use console
//.log to determine when you want the
//nav bar to stick.
console.log($(window).scrollTop())
if ($(window).scrollTop() > num) {
$('#header-inner').addClass('navbar-fixed');
}
if ($(window).scrollTop() < num) {
$('#header-inner').removeClass('navbar-fixed');
}
});
});
</script>
</head>
<body>
<header>
<div id="header-inner">
<a href="index.php" id="logo"></a>
<nav>
<a href="#" id="menu-icon"></a>
<ul>
<li><a href="index">Home</a></li>
<li><a href="servers">Servers</a></li>
<li><a href="download">Downloads</a></li>
<li><a href="http://gaminginstitute.in/bans/">Sourcebans</a></li>
<li><a href="about">About us</a></li><br>
<div id="login">
<?php
if(!isset($_SESSION['steamid'])) {
loginbutton("rectangle"); //login button
} else {
include ('steamauth/userInfo.php'); //To access the $steamprofile array
//Protected content
?>
<div class="dropdown">
<?php echo "<img src='".$_SESSION['steam_avatar']."'>"; ?>
<div class="dropdown-content">
<a href="profile.php" class="drop">Dashboard</a>
<a href="clans.php" class="drop">Clans</a>
<a href="#" class="drop">
<?php logoutbutton(); } ?>
</a>
</div>
</div>
</div>
</ul>
</nav>
</div>
</header>
<!- -Endheader- ->
<section class="banner">
<div class="banner-inner lightning flashit">
<img src="" id="banner-img">
<div id="hlstat">
<h3>GIC hlstatsx</h3>
Tracking
<?php ?>
</div>
<h2 class="banner-head"><br><br>
<br><br>
</h2>
</div>
</section>
<!--end banner-->
<section class="one-fourth" id="matches">
<a href="matches">
<td><i class="fa fa-clock-o"></i></td>
<h3>Matches</h3>
</a>
</section>
<section class="one-fourth" id="results">
<a href="logs">
<td><i class="fa fa-trophy"></i></td>
<h3>Match Logs</h3>
</a>
</section>
<section class="one-fourth" id="reg">
<a href="ultiduo">
<td><i class="fa fa-pencil"></i></td>
<h3>Team Registration</h3>
</a>
</section>
<section class="one-fourth" id="upload">
<a href="https://gaminginstitute.in/uploader">
<td><i class="fa fa-upload"></i></td>
<h3>Upload Map</h3>
</a>
</section>
<div id="up_matches">
<div id="match_head">
<center>
<h3 class="match_header">Upcoming matches</h3>
</center>
</div>
<div id="list_matches">
<table class="table table-responsive table_match_table">
<?php
$q="select team1,team2, date from matches WHERE complete = 0 ORDER BY DATE LIMIT 5";
$r=mysqli_query($db,$q);
while($row=mysqli_fetch_array($r)){
echo "<tr><td>$row[0]</td>";
echo "<td>$row[1]</td>";
echo "<td>$row[2]</td></tr>";
}
?>
</table>
</div>
<hr style="color:white; width:100%">
<div id="icons">
<center>
<h3 class="icon_header">Join Us</h3>
</center>
<div id="icon_id">
<div class="icon_links">
<a href="http://steamcommunity.com/groups/gamiin" target="_blank"><img src="images/steam.png" id="steam"></a>
</div>
<div class="icon_links">
<a href="http://discord.me/gic" target="_blank"><img src="images/discord.png" id="discord"></a>
</div>
</div>
</div>
<hr style="color:white; width:100%">
<!--End of four-column section-->
<div id="footer"><br><br><br><br>
<div class="footer-block">
<div class="footer-column">
<h4>GIC</h4>
<a href="https://gaminginstitute.in/stat">Hlstatsx</a><br>
<a href="servers">Servers</a><br>
<a href="credits.htm">Credits</a><br>
<a href="donate">Donation</a><br>
</div>
<div class="footer-column">
<h4>Matches</h4>
<a href="matches">Upcoming Matches</a><br>
<a href="logs">Logs</a><br>
<a href="sch_match">Schedule Matches</a><br>
<a href="clans">Clans</a><br>
<a href="tour_list">Tournaments</a><br>
<a href="faqs">FAQs/Rules</a><br>
</div>
<div class="footer-column">
<h4>Report</h4>
<a href="http://steamcommunity.com/groups/gamiin/discussions/1/1471966894881988542/">Report Bug</a><br>
<a href="http://steamcommunity.com/groups/gamiin/discussions/1/1471966894881988542/">Suggestions</a><br>
<a href="http://gaminginstitute.in/bans/">Server Bans</a><br>
<a href="#">Report Abuse</a><br>
</div>
</div>
</div>
<div id="footer2">
<center><br><br> © 2017 Gaming Institute <br><img src="images/logo2.png"><br></center>
</div>
</div>
<?php
/**
* include database settings
*/
require_once( 'admin/visitorTracking/src/_installation/db.php' );
/**
* include the class
*/
require_once( 'admin/visitorTracking/src/class.visitorTracking.php' );
/**
* instance the class
*/
$visitors = new visitorTracking();
?>
</body>
</html>