diff --git a/lam/lib/config.inc b/lam/lib/config.inc
index a0ed084d..e50a2aeb 100644
--- a/lam/lib/config.inc
+++ b/lam/lib/config.inc
@@ -309,6 +309,10 @@ function extractConfigOptionsFromPOST($confTypes) {
* @param string $page the URL of the target page
*/
function metaRefresh($page) {
+ if (!headers_sent()) {
+ header('Location: ' . $page);
+ return;
+ }
if (isset($_SESSION['header'])) {
echo $_SESSION['header'];
}
diff --git a/lam/templates/initsuff.php b/lam/templates/initsuff.php
index fcdba617..073679d4 100644
--- a/lam/templates/initsuff.php
+++ b/lam/templates/initsuff.php
@@ -1,9 +1,8 @@
0) {
@@ -161,7 +160,7 @@ if (isset($_POST['add_suff']) || isset($_POST['cancel'])) {
foreach ($failedDNs as $suffix => $error) {
StatusMessage("ERROR", _("Failed to create entry!") . "
" . htmlspecialchars($error), htmlspecialchars($suffix));
}
- include 'main_footer.php';
+ include '../lib/adminFooter.inc';
}
else {
// print success message
@@ -172,7 +171,7 @@ if (isset($_POST['add_suff']) || isset($_POST['cancel'])) {
else {
// no suffixes were created
StatusMessage("INFO", "", _("No changes were made."));
- include 'main_footer.php';
+ include '../lib/adminFooter.inc';
}
exit;
}
@@ -183,24 +182,24 @@ $newSuffixes = str_replace("\\", "", $newSuffixes);
$newSuffixes = str_replace("'", "", $newSuffixes);
$newSuffixes = explode(";", $newSuffixes);
-include 'main_header.php';
+include '../lib/adminHeader.inc';
echo '
" . _("Back to group list") . "
"; - include '../main_footer.php'; + include '../../lib/adminHeader.inc'; + $container = new htmlResponsiveRow(); + $container->addVerticalSpacer('1rem'); + $container->add(new htmlStatusMessage("ERROR", _("This user was not found!"), htmlspecialchars($user)), 12); + $container->addVerticalSpacer('1rem'); + $container->add(new \htmlLink(_("Back to group list"), 'javascript:history.back()'), 12); + parseHtml(null, $container, array(), false, $tabindex, 'user'); + include '../../lib/adminFooter.inc'; } diff --git a/lam/templates/tools/ou_edit.php b/lam/templates/tools/ou_edit.php index cdb49bf8..86dc0508 100644 --- a/lam/templates/tools/ou_edit.php +++ b/lam/templates/tools/ou_edit.php @@ -118,7 +118,7 @@ if (isset($_POST['createOU']) || isset($_POST['deleteOU'])) { $info = ldap_get_entries($_SESSION['ldap']->server(), $sr); if ($sr && $info['count'] == 0) { // print header - include '../main_header.php'; + include '../../lib/adminHeader.inc'; echo '