Try to better explain why the user has been redirected

This commit is contained in:
Sébastien Lucas 2013-01-06 09:49:05 +01:00
부모 024ac23fbd
커밋 48126bcad7
2개의 변경된 파일19개의 추가작업 그리고 1개의 파일을 삭제

파일 보기

@ -463,7 +463,7 @@ abstract class Base
try {
self::$db = new PDO('sqlite:'. self::getDbFileName ());
} catch (Exception $e) {
header("location: checkconfig.php");
header("location: checkconfig.php?err=1");
exit();
}
}

파일 보기

@ -11,6 +11,14 @@
require_once ("base.php");
header ("Content-Type:application/xhtml+xml");
$err = getURLParam ("err", -1);
$error = NULL;
switch ($err) {
case 1 :
$error = "Database error";
break;
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
@ -32,6 +40,16 @@
<div class="clearer" />
<div id="content" style="display: none;"></div>
<div class="entries">
<?php
if (!is_null ($error)) {
?>
<div class="entry">
<div class="entryTitle">You've been redirected because COPS is not configured properly</div>
<div class="entryContent"><?php echo $error ?></div>
</div>
<?php
}
?>
<div class="entry">
<div class="entryTitle">Check if GD is properly installed and loaded</div>
<div class="entryContent">