From 48126bcad74530eb97fa93749557c82da0284a7b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 6 Jan 2013 09:49:05 +0100 Subject: [PATCH] Try to better explain why the user has been redirected --- base.php | 2 +- checkconfig.php | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) 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