get_Suffix('domain')); // get possible suffixes $domsuff = $_SESSION['ldap']->search_units($_SESSION['config']->get_Suffix('domain')); if ($_GET['action'] == "edit") { // remove "\'" $_GET['DN'] = str_replace("\\", "", $_GET['DN']); $_GET['DN'] = str_replace("'", "", $_GET['DN']); // load attributes from domain for ($i = 0; $i < sizeof($domlist); $i++) { if ($domlist[$i]->dn == $_GET['DN']) { $domain = $domlist[$i]; break; } } // get suffix $tmp_arr = explode(",", $domain->dn); array_shift($tmp_arr); $domain_suffix = implode(",", $tmp_arr); } else { $domain = new samba3domain(); $domain_suffix = $_SESSION['config']->get_Suffix('domain'); } // display page echo $_SESSION['header']; echo "