redirect to list after successful upload

This commit is contained in:
Roland Gruber 2010-11-28 13:41:44 +00:00
parent 2b60deda6e
commit ac5d7853e2
1 changed files with 7 additions and 1 deletions

View File

@ -122,7 +122,7 @@ if (($_SESSION['mass_counter'] < sizeof($accounts)) || !isset($_SESSION['mass_po
// all accounts have been created // all accounts have been created
else { else {
echo "<div class=\"title\">\n"; echo "<div class=\"title\">\n";
echo "<h2 class=\"titleText\">" . _("LDAP upload has finished") . "</h2>\n"; echo "<h2 class=\"titleText\">" . _("Upload has finished") . "</h2>\n";
echo "</div>"; echo "</div>";
if (sizeof($_SESSION['mass_errors']) > 0) { if (sizeof($_SESSION['mass_errors']) > 0) {
echo "<div class=\"subTitle\">\n"; echo "<div class=\"subTitle\">\n";
@ -133,6 +133,12 @@ else {
echo "<br>"; echo "<br>";
} }
} }
else {
// redirect to list if no errors occured
echo "<script type=\"text/javascript\">\n";
echo "top.location.href = \"lists/list.php?type=" . $_SESSION['mass_scope'] . "&uploadAllOk\";\n";
echo "</script>\n";
}
} }
echo '</div>'; echo '</div>';
include 'main_footer.php'; include 'main_footer.php';