set splash message on success execution

This commit is contained in:
Uwe Steinmann 2013-05-21 08:39:03 +02:00
parent 195db7d598
commit 5589a07b71
7 changed files with 12 additions and 2 deletions

View File

@ -37,6 +37,8 @@ if (isset($_GET["id"]) && is_numeric($_GET["id"]) && isset($_GET['type'])) {
}
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_added_to_clipboard')));
/* FIXME: this does not work because the folder id is not passed */
$folderid = $_GET['folderid'];
header("Location:../out/out.ViewFolder.php?folderid=".$folderid);

View File

@ -170,6 +170,8 @@ if(strcasecmp($sequence, "keep")) {
}
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_folder_edited')));
add_log_line("?folderid=".$folderid);
header("Location:../out/out.ViewFolder.php?folderid=".$folderid."&showtree=".$_POST["showtree"]);

View File

@ -51,7 +51,7 @@ if (!$document->setLocked($user)) {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("error_occured"));
}
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document locked'));
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_document_locked')));
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);

View File

@ -37,6 +37,8 @@ if (isset($_GET["id"]) && is_numeric($_GET["id"]) && isset($_GET['type'])) {
}
}
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_removed_from_clipboard')));
$folderid = $_GET['folderid'];
header("Location:../out/out.ViewFolder.php?folderid=".$folderid);

View File

@ -25,6 +25,8 @@ include("../inc/inc.Authentication.php");
$session->resetSu();
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_switched_back_user')));
add_log_line("");
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));

View File

@ -33,6 +33,8 @@ if (!isset($_GET["userid"])) {
$session->setSu($_GET['userid']);
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_substituted_user')));
add_log_line("?userid=".$_GET["userid"]);
header("Location: ../".(isset($settings->_siteDefaultPage) && strlen($settings->_siteDefaultPage)>0 ? $settings->_siteDefaultPage : "out/out.ViewFolder.php?folderid=".$settings->_rootFolderID));

View File

@ -57,7 +57,7 @@ else {
UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("access_denied"));
}
$session->setFlashMsg(array('type'=>'success', 'msg'=>'Document unlocked'));
$session->setSplashMsg(array('type'=>'success', 'msg'=>getMLText('splash_document_unlocked')));
add_log_line();
header("Location:../out/out.ViewDocument.php?documentid=".$documentid);