if (!(GET('withoutmenu') == 1 || POST('withoutmenu') == 1)) { include "../hmenu.php"; } $ip = POST('ip'); $binddn = POST('binddn'); $password = POST('password'); $scope = POST('scope'); ossim_valid($ip, OSS_IP_ADDR, OSS_NULLABLE, 'illegal:' . _("Server IP")); ossim_valid($binddn, OSS_ALPHA, OSS_SPACE, OSS_SCORE, OSS_PUNC, OSS_NULLABLE, 'illegal:' . _("Bind DN")); ossim_valid($password, OSS_ALPHA, OSS_NULLABLE, OSS_SPACE, OSS_PUNC_EXT, 'illegal:' . _("Password")); ossim_valid($scope, OSS_ALPHA, OSS_NULLABLE, OSS_SPACE, OSS_PUNC, OSS_AT, 'illegal:' . _("Scope")); if (ossim_error()) { die(ossim_error()); } if ($ip != "" && $binddn != "") { ActiveDirectory::insert($conn, $ip, $binddn, $password, $scope); echo "<p>" . _("Active directory succesfully inserted") . "</p>"; ?> <script>document.location.href="activedirectory.php"</script><?php } ?> <form method="post" action="newactivedirectory.php"> <table align="center"> <tr> <th> <?php echo gettext("Server IP"); ?> </th> <td style="text-align:left;padding-left:3px;" class="nobborder"><input type="text" name="ip" value="<?php echo $ip;