-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·24 lines (21 loc) · 1.42 KB
/
index.php
File metadata and controls
executable file
·24 lines (21 loc) · 1.42 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
<html>
<?php include "header.php"; ?>
<body>
<div class="container-full cool-red">
<div class="row cool-red">
<div class="col-lg-12 text-center v-center">
<?php if(!isSignedIn())
echo "<h1>" . $sitename . "</h1><p class=\"lead\">" . $sitename . " is a simple site to connect you with fellow developers.</p> <br class=\"\"> <form class=\"col-lg-12\" method=\"GET\" action=\"register/\"> <div class=\"input-group\" style=\"width:340px;text-align:center;margin:0 auto;\"> <input name=\"email\" id=\"email\" type=\"text\" class=\"form-control input-lg\" title=\"Don\'t worry. We hate spam, and will not share your email with anyone.\" placeholder=\"Enter your email address...\"> <span class=\"input-group-btn\"><button class=\"btn btn-lg btn-primary\" type=\"button\" value=\"OK\">OK</button></span> </div> </form>";
else {
$arr = array("Welcome back, " . $_SESSION['username'] . "!", "Aloha!", "Hey!", "Howdy, " . $_SESSION['username'] . "!", "Hello again!", "Sup, " . $_SESSION['username'] . "!");
echo "<h1>" . htmlspecialchars($arr[array_rand($arr)]) . "</h1>";
}
?>
<br>
</div>
</div>
</div>
<?php showSimilar() ?>
<?php include "footer.php"; ?>
</body>
</html>