-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadminpanel.php
More file actions
29 lines (29 loc) · 960 Bytes
/
adminpanel.php
File metadata and controls
29 lines (29 loc) · 960 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
<?php
session_start();
if(!$_SESSION['user']['login']!='admin'){
header('Location: index.php');
}
require_once 'includes/connect.php';
include "includes/add_test.php";
include 'views/header.php'; ?>
<!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">
<link rel="stylesheet" href="css/questions.css">
<title>Document</title>
</head>
<body>
<h1 style="margin: 0 auto; width: 330px">CREATE NEW TEST</h1>
<form action="" method="post" class="add_opt">
<label for="photo">Choose test topic</label>
<input type="text" name="topic" id="photo">
<label for="desc">add short description</label>
<input type="text" name="description" id="desc">
<input type="submit" name="save" id="save" class="btn">
</form>
</body>
</html>