mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
		
						commit
						c56a92b395
					
				|  | @ -77,7 +77,6 @@ class SeedDMS_Controller_EmptyFolder extends SeedDMS_Controller_Common { | |||
| 			} | ||||
| 
 | ||||
| 			/* Register another callback which removes the preview images of the document */ | ||||
| 			require_once("SeedDMS/Preview.php"); | ||||
| 			$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| 			$dms->addCallback('onPreRemoveDocument', 'SeedDMS_Controller_EmptyFolder::removePreviews', array($previewer)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -43,7 +43,6 @@ class SeedDMS_Controller_RemoveDocument extends SeedDMS_Controller_Common { | |||
| 
 | ||||
| 		$result = $this->callHook('removeDocument', $document); | ||||
| 		if($result === null) { | ||||
| 			require_once("SeedDMS/Preview.php"); | ||||
| 			$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| 			$previewer->deleteDocumentPreviews($document); | ||||
| 			if (!$document->remove()) { | ||||
|  |  | |||
|  | @ -77,7 +77,6 @@ class SeedDMS_Controller_RemoveFolder extends SeedDMS_Controller_Common { | |||
| 			} | ||||
| 
 | ||||
| 			/* Register another callback which removes the preview images of the document */ | ||||
| 			require_once("SeedDMS/Preview.php"); | ||||
| 			$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| 			$dms->addCallback('onPreRemoveDocument', 'SeedDMS_Controller_RemoveFolder::removePreviews', array($previewer)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -49,7 +49,7 @@ if($settings->_enableFullSearch) { | |||
| 	$fulltextservice->setConversionMgr($conversionmgr); | ||||
| 	$fulltextservice->setMaxSize($settings->_maxSizeForFullText); | ||||
| 	$fulltextservice->setCmdTimeout($settings->_cmdTimeout); | ||||
| 	require_once("SeedDMS/Preview.php"); | ||||
| //	require_once("vendor/seeddms/preview/Preview.php");
 | ||||
| 	$txtpreviewer = new SeedDMS_Preview_TxtPreviewer($settings->_cacheDir, $settings->_cmdTimeout, $settings->_enableXsendfile); | ||||
| 	if($conversionmgr) | ||||
| 		$txtpreviewer->setConversionMgr($conversionmgr); | ||||
|  |  | |||
|  | @ -520,7 +520,6 @@ switch($command) { | |||
| 							$previewer->deleteDocumentPreviews($document); | ||||
| 							return null; | ||||
| 						} | ||||
| 						require_once("SeedDMS/Preview.php"); | ||||
| 						$previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| 						$dms->addCallback('onPreRemoveDocument', 'removePreviews', array($previewer)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -29,11 +29,6 @@ include("../inc/inc.DBInit.php"); | |||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| if (!isset($_GET["filename"])) { | ||||
| 	exit; | ||||
| } | ||||
|  |  | |||
|  | @ -30,11 +30,6 @@ include("../inc/inc.ClassUI.php"); | |||
| include("../inc/inc.ClassController.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -30,11 +30,6 @@ include("../inc/inc.ClassUI.php"); | |||
| include("../inc/inc.ClassController.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| $tmp = explode('.', basename($_SERVER['SCRIPT_FILENAME'])); | ||||
| $controller = Controller::factory($tmp[1], array('dms'=>$dms, 'user'=>$user)); | ||||
| 
 | ||||
|  |  | |||
|  | @ -68,7 +68,6 @@ if($document->isLocked()) { | |||
| $folder = $document->getFolder(); | ||||
| 
 | ||||
| /* Remove all preview images. */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| $previewer->deleteDocumentPreviews($document); | ||||
| 
 | ||||
|  |  | |||
|  | @ -65,7 +65,6 @@ if (($document->getAccessMode($user, 'removeDocumentFile') < M_ALL)&&($user->get | |||
| } | ||||
| 
 | ||||
| /* Remove preview image. */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| $previewer->deletePreview($file, $settings->_previewWidthDetail); | ||||
| 
 | ||||
|  |  | |||
|  | @ -62,7 +62,7 @@ function removePreviews($arr, $document) { | |||
| 	$previewer->deleteDocumentPreviews($document); | ||||
| 	return null; | ||||
| } | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| require_once("vendor/seeddms/preview/Preview.php"); | ||||
| $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| $dms->addCallback('onPreRemoveDocument', 'removePreviews', array($previewer)); | ||||
|  */ | ||||
|  |  | |||
|  | @ -62,7 +62,6 @@ if (!is_object($version)) { | |||
| 	UI::exitError(getMLText("document_title", array("documentname" => $document->getName())),getMLText("invalid_version")); | ||||
| } | ||||
| 
 | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| $previewer = new SeedDMS_Preview_Previewer($settings->_cacheDir); | ||||
| $folder = $document->getFolder(); | ||||
| /* Check if there is just one version. In that case remove the document */ | ||||
|  |  | |||
|  | @ -1392,8 +1392,6 @@ class RestapiController { /* {{{ */ | |||
|     } /* }}} */ | ||||
| 
 | ||||
|     function getDocumentPreview($request, $response, $args) { /* {{{ */ | ||||
|         require_once "SeedDMS/Preview.php"; | ||||
| 
 | ||||
|         $dms = $this->container->dms; | ||||
|         $userobj = $this->container->userobj; | ||||
|         $settings = $this->container->config; | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for Calendar view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for Categories view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for clipboard view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for DropFolderChooser view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ExpiredDocuments view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ObjectCheck view | ||||
|  * | ||||
|  |  | |||
|  | @ -16,11 +16,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for RemoveUserFromProcesses view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for clipboard view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //require_once("class.Bootstrap.php");
 | ||||
| 
 | ||||
| /** | ||||
|  * Include class to preview documents | ||||
|  */ | ||||
| require_once("SeedDMS/Preview.php"); | ||||
| 
 | ||||
| /** | ||||
|  * Class which outputs the html page for ViewDocument view | ||||
|  * | ||||
|  |  | |||
|  | @ -18,11 +18,6 @@ | |||
|  */ | ||||
| //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,11 +18,6 @@ | |||
|  */ | ||||
| //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