forked from boussou/phpMyReservation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
53 lines (38 loc) · 603 Bytes
/
error.php
File metadata and controls
53 lines (38 loc) · 603 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=utf-8">
<title>Error</title>
</head>
<body>
<p>
<?php
if(isset($_GET['error_code']))
{
$error_code = $_GET['error_code'];
}
else
{
$error_code = '0';
}
if($error_code == '1')
{
echo 'Salt must be 9 characters. Check config.php.';
}
elseif($error_code == '2')
{
echo 'You must enable JavaScript in your browser';
}
elseif($error_code == '3')
{
echo 'You must enable cookies in your browser';
}
else
{
echo 'Unknown error';
}
?>
</p>
<p><a href=".">Click here to go back</a></p>
</body>
</html>