\n"); echo ("\n"); // add/edit domain if (($_GET['action'] == "edit") || ($_GET['action'] == "new")) { // get list of domains $domlist = $_SESSION['ldap']->search_domains($_SESSION['config']->get_domainSuffix()); // get possible suffixes $domsuff = $_SESSION['ldap']->search_units($_SESSION['config']->get_domainSuffix()); if ($_GET['action'] == "edit") { // 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_domainSuffix(); } // display page echo "\n"; echo "
\n"; echo "" . $_SESSION['domain_message'] . "
"; // print fieldset echo "\n"; echo "\n"; echo "\n"; } // delete domain, ask if sure elseif ($_GET['action'] == "delete") { } // save domain elseif ($_POST['sub_save']) { } // back to list elseif ($_POST['sub_back']) { } // delete domain, user was sure elseif ($_POST['sub_delete']) { } ?>