-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
37 lines (31 loc) · 946 Bytes
/
index.php
File metadata and controls
37 lines (31 loc) · 946 Bytes
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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>DB viewer</title>
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<?php
session_start();
if(!isset($_SESSION['database_name'])||!isset($_SESSION['encr_username'])||!isset($_SESSION['encr_password']))
{
setcookie ('login_error','No data is set',['samesite' => 'Lax']);
header('Location: login.php');
exit();
}
?>
<div class="navbar">
<?php
include('php/tablelist.php');
?>
<button class="btn btn-danger" onclick="exit()">Exit</button>
</div>
<div><div id='here_goes_the_table'/> <div>
<script src="js/jquery-3.5.1.min.js"></script>
<script src="js/scripts.js"></script>
</body>