} } else { $ip = POST('ip'); ossim_valid($ip, OSS_IP_ADDR, 'illegal:' . _("Server IP")); $binddn = POST('binddn'); ossim_valid($binddn, OSS_ALPHA, OSS_SPACE, OSS_SCORE, OSS_PUNC, 'illegal:' . _("Bind DN")); $password = POST('password'); ossim_valid($password, OSS_ALPHA, OSS_NULLABLE, OSS_SPACE, OSS_PUNC_EXT, 'illegal:' . _("Password")); $scope = POST('scope'); ossim_valid($scope, OSS_ALPHA, OSS_NULLABLE, OSS_SPACE, OSS_PUNC, OSS_AT, 'illegal:' . _("Scope")); if (ossim_error()) { die(ossim_error()); } } if ($ip != "" && $binddn != "" && GET('id') == "") { ActiveDirectory::update($conn, $id, $ip, $binddn, $password, $scope); echo "<p>" . _("Active directory succesfully updated") . "</p>"; ?> <script type='text/javascript'>document.location.href="activedirectory.php"</script> <?php } ?> <form method="post" action="modifyactivedirectory.php"> <input type="hidden" name="id" value="<?php echo $id; ?> "/> <table align="center"> <tr> <th> <?php