new refresh

This commit is contained in:
Roland Gruber 2018-11-25 10:51:39 +01:00
parent bb9a1b1719
commit d07d20f546
4 changed files with 9 additions and 9 deletions

View File

@ -622,7 +622,7 @@ class lamList {
}
// add new account
if (isset($_POST['new']) && checkIfNewEntriesAreAllowed($this->type->getId())){
metaRefresh("../account/edit.php?type=" . $this->type->getId() . "&suffix=" . $this->suffix);
metaRefresh("../account/edit.php?type=" . $this->type->getId() . "&suffix=" . $this->suffix);
exit;
}
// delete account(s)

View File

@ -849,7 +849,7 @@ class accountContainer {
*/
function continue_main() {
if (!empty($_POST['account_randomID']) && ($this->randomID != $_POST['account_randomID'])) {
metaRefresh("../lists/list.php?type=" . $this->type->getId() . '&accountEditInvalidID=true');
metaRefresh("../lists/list.php?type=" . $this->type->getId() . '&accountEditInvalidID=true');
exit();
}
$oldPage = $this->current_page;
@ -880,26 +880,26 @@ class accountContainer {
if (isset($_POST['accountContainerCreateAgain'])) {
// open fresh account page
unset($_SESSION[$this->base]);
metaRefresh("edit.php?type=" . $this->type->getId() . "&suffix=" . $this->dnSuffix);
metaRefresh("edit.php?type=" . $this->type->getId() . "&suffix=" . $this->dnSuffix);
exit();
}
// reedit account
if (isset($_POST['accountContainerBackToEdit'])) {
// open fresh account page
unset($_SESSION[$this->base]);
metaRefresh("edit.php?type=" . $this->type->getId() . "&DN=" . urlencode($this->finalDN));
metaRefresh("edit.php?type=" . $this->type->getId() . "&DN=" . urlencode($this->finalDN));
exit();
}
// back to account list
if (isset($_POST['accountContainerBackToList'])) {
// Return to account list
unset($_SESSION[$this->base]);
metaRefresh("../lists/list.php?type=" . $this->type->getId() . '&accountEditBack=true');
metaRefresh("../lists/list.php?type=" . $this->type->getId() . '&accountEditBack=true');
exit;
}
// create PDF file
if (isset($_POST['accountContainerCreatePDF'])) {
metaRefresh('../lists/list.php?printPDF=1&type=' . $this->type->getId() . "&refresh=true&PDFSessionID=" . $this->base);
metaRefresh('../lists/list.php?printPDF=1&type=' . $this->type->getId() . "&refresh=true&PDFSessionID=" . $this->base);
exit;
}
// module actions

View File

@ -88,10 +88,10 @@ for ($i = 0; $i < sizeof($sessionKeys); $i++) {
}
if ($result === LAMConfig::SAVE_OK) {
metaRefresh('../login.php?configSaveOk=1&amp;configSaveFile=' . $conf->getName());
metaRefresh('../login.php?configSaveOk=1&configSaveFile=' . $conf->getName());
}
else {
metaRefresh('../login.php?configSaveFailed=1&amp;configSaveFile=' . $conf->getName());
metaRefresh('../login.php?configSaveFailed=1&configSaveFile=' . $conf->getName());
}
?>

View File

@ -55,7 +55,7 @@ $dn = search_username($user);
if ($dn) {
// redirect to account/edit.php
metaRefresh("../account/edit.php?type=user&amp;DN='" . rawurlencode($dn) . "'");
metaRefresh("../account/edit.php?type=user&DN='" . rawurlencode($dn) . "'");
}
else {