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