-
Notifications
You must be signed in to change notification settings - Fork 0
/
error.php
61 lines (53 loc) · 1.63 KB
/
error.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
<?php
$title = "GC | ERROR";
require_once('./controllers/FileController.php');
if (isset($_POST['createC'])) :
createFile('client');
elseif (isset($_POST['createU'])) :
createFile('user');
endif;
if (!isset($_GET['c']) && !isset($_GET['u'])) :
header('location: ./');
exit();
endif;
require_once('./layout/header.php');
?>
<div class="container mt-5">
<div class="jumbotron">
<h3>
<li class="fa fa-exclamation-triangle mr-2"></li>Error!
</h3>
<hr class="my-4">
<div class="alert alert-danger" role="alert">
<strong>Error:</strong>
<?php
if (isset($_GET['c'])) :
?>
<form action="" method="post">
<input type="hidden" name="createC" value="true">
Client file doesn't exist. Kindly, <button class="btn btn-outline-dark" type="submit">create one!</button>
</form>
<?php
endif;
?>
<?php
if (isset($_GET['u'])) :
?>
<form action="" method="post">
<input type="hidden" name="createU" value="true">
<div class="d-flex align-items-center">
<div class="mr-2">
User file doesn't exist. Kindly,
</div>
<button class="btn btn-outline-dark" type="submit">create one!</button>
</div>
</form>
<?php
endif;
?>
</div>
</div>
</div>
<?php
require_once('./layout/footer.php');
?>