mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-30 20:51:22 +00:00 
			
		
		
		
	move inclusion SeedDMS/Preview.php into view
This commit is contained in:
		
							parent
							
								
									fcf85a88e0
								
							
						
					
					
						commit
						7e3cd7d6c4
					
				|  | @ -24,11 +24,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
| 	UI::exitError(getMLText("my_documents"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -25,11 +25,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if (!$user->isAdmin()) { | ||||
| 	UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -26,11 +26,6 @@ include("../inc/inc.ClassUI.php"); | |||
| include("../inc/inc.ClassAccessOperation.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if (!isset($_GET["documentid"]) || !is_numeric($_GET["documentid"]) || intval($_GET["documentid"])<1) { | ||||
| 	UI::exitError(getMLText("document_title", array("documentname" => getMLText("invalid_doc_id"))),getMLText("invalid_doc_id")); | ||||
| } | ||||
|  |  | |||
|  | @ -24,11 +24,6 @@ include("../inc/inc.DBInit.php"); | |||
| include("../inc/inc.Language.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| $form = preg_replace('/[^A-Za-z0-9_]+/', '', $_GET["form"]); | ||||
| 
 | ||||
| if(substr($settings->_dropFolderDir, -1, 1) == DIRECTORY_SEPARATOR) | ||||
|  |  | |||
|  | @ -25,11 +25,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if (!$user->isAdmin()) { | ||||
| 	UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -22,11 +22,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
| 	UI::exitError(getMLText("my_account"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -24,11 +24,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
| 	UI::exitError(getMLText("my_documents"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -25,11 +25,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
| 	UI::exitError(getMLText("my_documents"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -26,11 +26,6 @@ include("../inc/inc.ClassUI.php"); | |||
| include("../inc/inc.ClassAccessOperation.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| function getTime() { | ||||
| 	if (function_exists('microtime')) { | ||||
| 		$tm = microtime(); | ||||
|  |  | |||
|  | @ -23,11 +23,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if (!$user->isAdmin()) { | ||||
| 	UI::exitError(getMLText("admin_tools"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -25,11 +25,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.Authentication.php"); | ||||
| include("../inc/inc.ClassUI.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $view = UI::factory($theme, $tmp[1], array('dms'=>$dms, 'user'=>$user)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -25,11 +25,6 @@ include("../inc/inc.Language.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
| 	UI::exitError(getMLText("my_documents"),getMLText("access_denied")); | ||||
| } | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ApprovalSummary view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for AttributeMgr view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for DocumentVersionDetail view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for CategoryChooser view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for GroupMgr view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ManageNotify view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for MyDocuments view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ReviewSummary view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for Search result view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for Timeline view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ViewFolder view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,6 +18,11 @@ | |||
|  */ | ||||
| require_once("class.Bootstrap.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for WorkflowSummary view | ||||
|  * | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann