Code

added schemacheck in index.php
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 10:29:40 +0000 (10:29 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 27 Jun 2005 10:29:40 +0000 (10:29 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@874 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_setup.inc

index 335ee204d766e3bb9538e9b7bcfaee0d7ffb5473..f7f3e422492ac8ca599f706a130bd4bba9a36cdc 100644 (file)
@@ -29,6 +29,7 @@ function view_schema_check($table)
   return $message;
 }
 
+
 function is_schema_readable($server, $admin, $password)
 {
   $ds= ldap_connect ($server);
@@ -137,6 +138,7 @@ function schema_check($server, $admin, $password, $aff=0)
         } else {
           if (!check_schema_version($objectclasses[$key], $value['version'])){
             $messages[$key]['msg']= sprintf(_("Optional objectclass '%s' required by plugin '%s' does not have version %s"), $key, $class, $value['version']);
+            $messages[$key]['needonstartup'] = TRUE;
             $messages[$key]['status'] =FALSE;
           }else {
             if(!isset($affich2[$class])){
@@ -156,7 +158,9 @@ function schema_check($server, $admin, $password, $aff=0)
         if (!check_schema_version($objectclasses[$key], $value['version'])){
           $messages[$key]['msg']= sprintf(_("Required objectclass '%s' does not have version %s"), $key, $value['version']);
           $messages[$key]['status'] = FALSE;  
+          $messages[$key]['needonstartup'] = TRUE;
         }
+    
       }
     }
   }