-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig_error.php
42 lines (39 loc) · 1.3 KB
/
config_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
<?php // -*- mode:html; -*- ?>
<?php
require("sessionCheck.php");
$config_check = true;
require('config.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link rel="stylesheet" type="text/css" href="css/style.css" />
<link rel="shortcut icon" type="image/x-icon" href="http://www.bth.se/favicon.ico" />
<title>MArC :: Configuration error</title>
</head>
<body>
<div id="content">
<?php if ( count($config_error) > 0 ){ ?>
<h1>MArC Configuration error</h1>
<?php foreach ($config_error as $err){ ?>
<div class="alert">
<p><?=$err['message']?></p>
<p>
<?php foreach ($err as $key => $value){ if ( $key == "message" ){ continue; } ?>
<?=$key?>: <?=$value?><br/>
<?php } /* foreach $key => $value */ ?>
</p>
</div>
<?php } /* foreach $config_error */ ?>
<?php } else { /* if ( count > 0 ) */ ?>
<h1>MArC Configuration</h1>
<div class="notice">
<p>Configuration OK</p>
<p><a href="<?=$root?>">Return</a></p>
</div>
<?php } /* if ( count > 0 ) */ ?>
<a href="<?=dirname($_SERVER['REQUEST_URI'])?>">Retry</a>
</div>
</body>
</html>