Code

added schema check
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 10:29:04 +0000 (10:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 10:29:04 +0000 (10:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@873 594d385d-05f5-0310-b6e9-bd551577e9d8

html/index.php

index 17efc37de0ab93edd301916a234d6253d97ebe38..c2ce1dc0f85f9620b6e08e83a94b529f5ceaa458 100644 (file)
@@ -148,8 +148,20 @@ if ($_SERVER["REQUEST_METHOD"] == "POST"){
     print_red(_("GOsa cannot retrieve information about the installed schema files. Please make sure, that this is possible."));
     echo $_SESSION['errors'];
     exit();
+  }else{
+    require_once("functions_setup.inc");
+    $str = (schema_check($config->current['SERVER'],$config->current['ADMIN'],$config->current['PASSWORD']));
+    $checkarr = array();
+    foreach($str as $tr){
+      if(isset($tr['needonstartup'])){
+        print_red(_("Your Schema files are not at actual version, please move your gosa.conf and  run Setup again, to check this."));
+        print $_SESSION['errors'];
+        exit();
+      }
+    }
   }
 
+
   /* Check for locking area */
   $ldap->cat($config->current['CONFIG']);
   $attrs= $ldap->fetch();