-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php
56 lines (38 loc) · 1.01 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
<head>
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<?php include('preload.php'); ?>
<?php
echo(__loadResources());
if($_SESSION['user']){
echo "<div class='alert alert-success' role='alert'>";
echo "<div class='container'>";
echo "<div class='row'>";
echo "<div class='col-xs-4'>Currently logged in</div>";
echo "<div class='col-md-offset-6 col-xs-2'><button onclick='logout()' type='button' class='btn btn-default'>Log Out</button></div>";
echo "</div>";
echo "</div>";
echo "</div>";
};
?>
<div class="container">
<div class="header">
<h1 stlye="tetx">Awks Roullette</h1>
</div>
<?php ?>
</div>
<script>
$('#create-account-block').hide();
$('#sign-in-block').hide();
function showSignInBlock(){
$('#sign-in-block').show();
$('#create-account-block').hide();
}
function showRegisterBlock(){
$('#create-account-block').show();
$('#sign-in-block').hide();
}
function logout(){
window.location.href = "/api/user/logout";
}
</script>