diff --git a/base.php b/base.php index 2a47a0b..9001904 100644 --- a/base.php +++ b/base.php @@ -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(); } } diff --git a/checkconfig.php b/checkconfig.php index 032cb14..4a036dd 100644 --- a/checkconfig.php +++ b/checkconfig.php @@ -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; + } ?> @@ -32,6 +40,16 @@
+ +
+
You've been redirected because COPS is not configured properly
+
+
+
Check if GD is properly installed and loaded