server(), $dn, $attr)) { $fail[] = $suff; $error[] = ldap_error($_SESSION['ldap']->server()); } } } } echo $_SESSION['header']; echo "\n"; echo "initsuff\n"; echo "\n"; echo "\n"; // print error/success messages if ($_POST['add_suff']) { if (sizeof($fail) > 0) { for ($i = 0; $i < sizeof($fail); $i++) { StatusMessage("ERROR", _("Failed to create entry!") . "
" . $error[$i], $fail[$i]); } } else StatusMessage("INFO", "", _("All changes were successful.")); } else StatusMessage("INFO", "", _("No changes were made.")); echo "

 

\n"; echo "" . _("User list") . "\n"; echo "\n"; exit; } // first show of page $new_suff = $_GET['suffs']; $new_suff = str_replace("\\'", "", $new_suff); $new_suff = explode(";", $new_suff); echo $_SESSION['header']; echo "initsuff\n"; echo "\n"; echo "\n"; echo "

 

\n"; echo "

" . _("The following suffix(es) are missing in LDAP. LAM can create them for you.") . "

\n"; echo "

 

\n"; // print missing suffixes for ($i = 0; $i < sizeof($new_suff); $i++) { echo "

" . $new_suff[$i] . "

\n"; } echo "

 

\n"; echo "
\n"; echo "\n"; echo ""; echo ""; echo "
\n"; echo "\n"; ?>