summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c009ac1)
raw | patch | inline | side by side (parent: c009ac1)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 May 2005 06:06:23 +0000 (06:06 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 17 May 2005 06:06:23 +0000 (06:06 +0000) |
include/setup_checks.inc | patch | blob | history |
index b7640a2ed6d142c12cd0ec4acef7f726b6a7cab7..58a0728dc487f9d9c8e20d16a33e3bf65ff04dab 100644 (file)
--- a/include/setup_checks.inc
+++ b/include/setup_checks.inc
// This values also represent out default values
# first try to get $base
- if(!$ds = ldap_connect (validate($uri)))
+ if(!$ds = @ldap_connect (validate($uri)))
{
$fault = true;
}
- elseif(!ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3))
+ elseif(!@ldap_set_option($ds, LDAP_OPT_PROTOCOL_VERSION, 3))
{
$fault = true;
}
- elseif(! $r = ldap_bind ($ds))
+ elseif(! $r = @ldap_bind ($ds))
{
$fault = true;
}
else
{
- $sr= ldap_search ($ds, "", "objectClass=*", array("namingContexts"));
+ $sr= @ldap_search ($ds, "", "objectClass=*", array("namingContexts"));
- $attr= ldap_get_entries($ds,$sr);
+ $attr= @ldap_get_entries($ds,$sr);
if((empty($attr)))
{
$base= "dc=example,dc=net";
{
$ldap= new LDAP($_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password'], $_SESSION['ldapconf']['uri']);
- if($withoutput){
$m= schema_check($_SESSION['ldapconf']['uri'], $_SESSION['ldapconf']['admin'], $_SESSION['ldapconf']['password']);
$_SESSION['classes']= $m;
- }
if ($ldap->error != "Success")
{
// get smarty
$smarty = get_smarty();
- $classes = $_SESSION['classes'];
+ if(isset($_SESSION['classes']))
+ $classes = $_SESSION['classes'];
$info= posix_getgrgid(posix_getgid());
$smarty->assign ("webgroup", $info['name']);
$ldapconf = $_SESSION['ldapconf'];
$smarty = get_smarty();
- $classes= $_SESSION['classes'];
+
+
+ if(isset($_SESSION['classes']))
+ $classes= $_SESSION['classes'];
// Everything runns perfect ...
// So we do a last test on this page