fixed abort button

This commit is contained in:
Roland Gruber 2005-11-06 16:35:39 +00:00
parent 484e6fe75a
commit 2b639e9066
1 changed files with 9 additions and 8 deletions

View File

@ -53,14 +53,15 @@ if (!$_SESSION['ldap'] || !$_SESSION['ldap']->server()) {
exit;
}
// check if user has pressed submit or abort button
if ($_POST['submit']) {
// on abort go back to main page
if ($_POST['abort']) {
metaRefresh("../lists/listusers.php");
if (isset($_POST['abort'])) {
metaRefresh("../tools.php");
exit;
}
// on submit forward to other profile pages
elseif ($_POST['submit']) {
// check if user has pressed submit button
elseif (isset($_POST['submit'])) {
// forward to other profile pages
if ($_POST['submit']) {
for ($i = 0; $i < sizeof($profileClasses); $i++) {
// create new profile
if ($_POST['profile'] == ("new" . $profileClasses[$i]['scope'])) {