From: hickert Date: Mon, 27 Jun 2005 10:29:04 +0000 (+0000) Subject: added schema check X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=337c75dcf6c641022bd31edcb3acbe97d899289d;p=gosa.git added schema check git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@873 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/html/index.php b/html/index.php index 17efc37de..c2ce1dc0f 100644 --- a/html/index.php +++ b/html/index.php @@ -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();