-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
67 lines (65 loc) · 2.79 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
<?php
require_once "login_helper.php";
verify_session();
?>
<!DOCTYPE html>
<html lang="en">
<head>
<?php require_once 'head.php'; ?>
</head>
<body>
<?php require_once 'nav.php'; ?>
<div class="container">
<!-- Example row of columns -->
<div class="row">
<?php
if(!$logged_in){
?>
<div class="col-md-4">
<h2>Login</h2>
<p>Click here to login to our code deployment environment! </p>
<p><a class="btn btn-default" href="/login.php" role="button">Login</a></p>
</div>
<div class="col-md-4">
<h2>Register</h2>
<p>Start running your code on our custom code deployment environment today! We wrote all of our services from scratch and don't beleive in using libraries so you know our stuff is secure. We accept all major credit cards. </p>
<p><a class="btn btn-default" href="/register.php" role="button">Register</a></p>
</div>
<div class="col-md-4">
<h2>Live Server Status</h2>
<p>Need to check if the code runners are online? Our custom monitoring software keeps track of the runner servers in real-time and displays their status here.</p>
<p><a class="btn btn-default" href="/srvstatus.php?p=runscript" role="button">Check Server Status</a></p>
</div>
<?php
}else{
?>
<div class="col-md-4">
<h2>Welcome <?php echo $user;?></h2>
<p>Welcome to the Cluster Deployment Company. Logout?</p>
<p><a class="btn btn-default" href="/logout.php" role="button">Logout</a></p>
</div>
<div class="col-md-4">
<h2>Live Server Status</h2>
<p>Need to check if the code runners are online? Our custom monitoring software keeps track of the runner servers in real-time and displays their status here.</p>
<p><a class="btn btn-default" href="/srvstatus.php?p=runscript" role="button">Check Server Status</a></p>
</div>
<div class="col-md-4">
<h2>My Account</h2>
<p>Manage account details and get server keys all in one convenient place.</p>
<p><a class="btn btn-default" href="/viewacct.php?u=<?php echo $user;?>" role="button">My Account</a></p>
</div>
<?php
}
?>
</div>
<div class="container" style="text-align: center; margin-top: 30px;">
<h2>A tribute to <a href="https://twitter.com/tompohl/status/713561371791601664">@CPCharron</a>, friend of @tompohl.</h2>
<img style="border: 40px solid transparent; border-image: url('/logo.png'); height: 600px;" src="/dist/img/real_hackers.png"/>
</div>
<hr>
<footer>
<p>© 2016 CDC Inc. <a href="/privacy.txt">privacy policy</a></p>
</footer>
</div> <!-- /container -->
</body>
</html>