new refresh
This commit is contained in:
parent
bb9a1b1719
commit
d07d20f546
|
@ -622,7 +622,7 @@ class lamList {
|
||||||
}
|
}
|
||||||
// add new account
|
// add new account
|
||||||
if (isset($_POST['new']) && checkIfNewEntriesAreAllowed($this->type->getId())){
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
// delete account(s)
|
// delete account(s)
|
||||||
|
|
|
@ -849,7 +849,7 @@ class accountContainer {
|
||||||
*/
|
*/
|
||||||
function continue_main() {
|
function continue_main() {
|
||||||
if (!empty($_POST['account_randomID']) && ($this->randomID != $_POST['account_randomID'])) {
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
$oldPage = $this->current_page;
|
$oldPage = $this->current_page;
|
||||||
|
@ -880,26 +880,26 @@ class accountContainer {
|
||||||
if (isset($_POST['accountContainerCreateAgain'])) {
|
if (isset($_POST['accountContainerCreateAgain'])) {
|
||||||
// open fresh account page
|
// open fresh account page
|
||||||
unset($_SESSION[$this->base]);
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
// reedit account
|
// reedit account
|
||||||
if (isset($_POST['accountContainerBackToEdit'])) {
|
if (isset($_POST['accountContainerBackToEdit'])) {
|
||||||
// open fresh account page
|
// open fresh account page
|
||||||
unset($_SESSION[$this->base]);
|
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();
|
exit();
|
||||||
}
|
}
|
||||||
// back to account list
|
// back to account list
|
||||||
if (isset($_POST['accountContainerBackToList'])) {
|
if (isset($_POST['accountContainerBackToList'])) {
|
||||||
// Return to account list
|
// Return to account list
|
||||||
unset($_SESSION[$this->base]);
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
// create PDF file
|
// create PDF file
|
||||||
if (isset($_POST['accountContainerCreatePDF'])) {
|
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;
|
exit;
|
||||||
}
|
}
|
||||||
// module actions
|
// module actions
|
||||||
|
|
|
@ -88,10 +88,10 @@ for ($i = 0; $i < sizeof($sessionKeys); $i++) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($result === LAMConfig::SAVE_OK) {
|
if ($result === LAMConfig::SAVE_OK) {
|
||||||
metaRefresh('../login.php?configSaveOk=1&configSaveFile=' . $conf->getName());
|
metaRefresh('../login.php?configSaveOk=1&configSaveFile=' . $conf->getName());
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
metaRefresh('../login.php?configSaveFailed=1&configSaveFile=' . $conf->getName());
|
metaRefresh('../login.php?configSaveFailed=1&configSaveFile=' . $conf->getName());
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
|
@ -55,7 +55,7 @@ $dn = search_username($user);
|
||||||
|
|
||||||
if ($dn) {
|
if ($dn) {
|
||||||
// redirect to account/edit.php
|
// redirect to account/edit.php
|
||||||
metaRefresh("../account/edit.php?type=user&DN='" . rawurlencode($dn) . "'");
|
metaRefresh("../account/edit.php?type=user&DN='" . rawurlencode($dn) . "'");
|
||||||
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in New Issue