-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.php
39 lines (38 loc) · 1.21 KB
/
setup.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
<?php
session_start();
session_destroy();
$db = 'sas';
try {
$db = new PDO('mysql:host=localhost;dbname=' . $db, 'root', '');
header('location: login.php');
} catch (Exception $e) {
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<title>Document</title>
</head>
<body>
<div class="container-fluid h-100">
<div class="row h-100">
<div class="col h-100 text-center">
<div class="d-flex h-100 align-items-center flex-column justify-content-center">
<h1>Setup page</h1>
<h3 class="text-muted mb-5">By clicking setup a database named 'sas' will be generated</h3>
<div class="w-50 mx-auto">
<form action="setup.php" method="post">
<?php include 'php/scripts/setup.php' ?>
</form>
</div>
</div>
</div>
</div>
</div>
</body>
</html>