-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror.php
More file actions
36 lines (33 loc) · 795 Bytes
/
error.php
File metadata and controls
36 lines (33 loc) · 795 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
<?php
global $url;
switch ($url['params'][0]) {
case 'database':
$msg = 'There was an error with the database.';
break;
case 'off':
$msg = 'This poll is no longer active.';
break;
case 'expired':
$msg = 'This poll has expired.';
break;
default:
$msg = 'An unknown error occured.';
}
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Error</title>
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap-combined.min.css" />
<link rel="stylesheet" href="<?php echo $url['base']; ?>/css/fonts.css" />
<link rel="stylesheet" href="<?php echo $url['base']; ?>/css/styles.css" />
</head>
<body>
<section>
<header class="page-header">
<h1><?php echo $msg; ?></h1>
</header>
</section>
</body>
</html>