-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.php~
87 lines (61 loc) · 2.5 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
<?php require_once("./private/initialize.php"); ?>
<!DOCTYPE html>
<html>
<head>
<?php require_once(SHARED_PATH."/dependencies.php")?>
<title>Nice Trip Beta</title>
<style type="text/css">
.card-header, .btn {
font-family: 'Oswald', sans-serif;
}
header {
font-family: 'Lobster', cursive;
}
</style>
</head>
<header>
<h2 style="text-align: center"><u> Trip Scrap Book </u></h2>
</header>
<body class="bg-light">
<div class="container">
<div class="row">
<div class="col-sm-3"></div>
<div class="col-sm-6">
<div class="card" >
<div class="card-header " style="text-align: center">Login</div>
<div class="card-body" style=" text-align: center;">
<form class="form-inline" action="./public/loggedin.php" style=" text-align: center;" method="POST" >
<div class="form-group " >
<label for="pass">Password: </label>
<input type="password" class="form-control" id="pass" name="pass" />
</div>
<button class="btn btn-default" type="submit" >ENTER</button>
</form>
<hr>
<u>DEVELOPER TOOLS</u>
<?php
$connection = makeConnection();
$stat = pg_connection_status($connection);
if($connection){
echo "<br> Connected to Database";
}else {
echo "<br> Disconnected";
}
echo "<br> connection status: " . $stat ;
pg_close($connection);
?>
<br>
<a href=<?php echo WROOT."/../private/initialize_database.php"?>><button class="btn btn-danger" >INITIALISE DATABASE</button></a>
<hr>
<p style="font-size:small">
© ShayneOS</p>
</div>
</div>
</div>
<div class="collg-sm-3"></div>
</div>
</div>
</body>
<footer>
</footer>
</html>