Added config file version check.
authorjollytoad <jollytoad>
Mon, 20 Jun 2005 16:16:42 +0000 (16:16 +0000)
committerjollytoad <jollytoad>
Mon, 20 Jun 2005 16:16:42 +0000 (16:16 +0000)
libraries/lib.inc.php

index 761749bcfee19df201f2fff4cd646d757bcd56e1..f165a2d12b4f514a7eb108eda27f4c52cc85bb87 100644 (file)
@@ -3,7 +3,7 @@
        /**
         * Function library read in upon startup
         *
-        * $Id: lib.inc.php,v 1.96 2005/06/16 14:40:14 chriskl Exp $
+        * $Id: lib.inc.php,v 1.97 2005/06/20 16:16:42 jollytoad Exp $
         */
        include_once('decorator.inc.php');
        include_once('./lang/translations.php');
                $_SESSION['webdbLanguage'] = $_language;
        }
 
+       // Check for config file version mismatch
+       if (!isset($conf['version']) || $conf['base_version'] > $conf['version']) {
+               echo $lang['strbadconfig'];
+               exit;
+       }
+       
        // Check database support is properly compiled in
        if (!function_exists('pg_connect')) {
                echo $lang['strnotloaded'];