From 4a5d859b1548414c5382dac9938afeaa174b5f9d Mon Sep 17 00:00:00 2001 From: Roland Gruber Date: Sun, 30 May 2004 11:54:18 +0000 Subject: [PATCH] removed domain check --- lam/templates/main.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/lam/templates/main.php b/lam/templates/main.php index 319ad4cd..2562578e 100644 --- a/lam/templates/main.php +++ b/lam/templates/main.php @@ -47,23 +47,15 @@ if ($conf->get_DomainSuffix() && ($conf->get_DomainSuffix() != "")) { if (!$res && !in_array($conf->get_DomainSuffix(), $new_suffs)) $new_suffs[] = $conf->get_DomainSuffix(); } -if ($_SESSION['config']->is_samba3()) { - $doms = $_SESSION['ldap']->search_domains($_SESSION['config']->get_domainSuffix()); -} - echo $_SESSION['header']; echo ("LDAP Account Manager\n"); echo (""); echo ("\n"); echo ("\n"); echo ("\n"); -// display page to add suffixes or add domain, if needed +// display page to add suffixes, if needed if (sizeof($new_suffs) > 0) echo ("\n"); -elseif (($_SESSION['config']->is_samba3()) && (sizeof($doms) < 1)) { - $_SESSION['domain_message'] = _("No domains found, please create one."); - echo ("\n"); -} else echo ("\n"); echo ("\n"); echo ("This page requires a browser that can show frames!\n");