-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
37 lines (33 loc) · 804 Bytes
/
error.php
File metadata and controls
37 lines (33 loc) · 804 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
<?php
session_start();
?>
<!--
error.php
StockExperience
Edited by BinarySoftware on 07/03/2019.
Copyright ©2019 BinarySoftware/Maciej Mikołajek. All rights reserved.
Purpose: Model for giving negative feedback to user in case of unexpected behavior
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Błąd</title>
<?php include 'css/css.html'; ?>
</head>
<body>
<div class="form">
<h1>Błąd</h1>
<p>
<?php
if( isset($_SESSION['message']) AND !empty($_SESSION['message']) ):
echo $_SESSION['message'];
else:
echo "<script type='text/javascript'> document.location = '/index.php'; </script>";
endif;
?>
</p>
<a href="index.php"><button class="button button-block"/>Start</button></a>
</div>
</body>
</html>