mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	set splash message on success execution
This commit is contained in:
		
							parent
							
								
									195db7d598
								
							
						
					
					
						commit
						5589a07b71
					
				|  | @ -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); | ||||
|  |  | |||
|  | @ -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"]); | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
|  | @ -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); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -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); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann