forked from salvozappa/fakebook
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy patherror.php
More file actions
33 lines (31 loc) · 797 Bytes
/
error.php
File metadata and controls
33 lines (31 loc) · 797 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
<?php
require_once 'config.php';
$pageTitle = 'Error';
$code = $_GET['code'];
$messages = array(
1 => 'You have to enter all fields',
2 => 'You have to enter both e-mail and password',
3 => 'Wrong username or password',
4 => 'Missing parameters',
5 => 'Sorry but this user doesn\'t exists :(',
6 => 'It seems you are friends already!',
7 => 'Ops, something wrong happened :(',
8 => 'Sorry but there is no user with that name'
);
?>
<!DOCTYPE html>
<html lang="en">
<?php include 'head.inc.php'; ?>
<body>
<div id="topbar">
<div>
<span id="logo"><a href="index.php"><?= TITLE ?></a></span>
</div>
</div>
<div id="container" style="margin-top: 50px;">
<h1>Error</h1>
<?= $messages[$code]; ?><br><br>
<a href="javascript:history.back()">Go Back</a>
</div>
</body>
</html>