mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 05:11:27 +00:00 
			
		
		
		
	fix line endings, remove some old code
This commit is contained in:
		
							parent
							
								
									e78fdaf32a
								
							
						
					
					
						commit
						49d6099462
					
				|  | @ -1,26 +1,26 @@ | |||
| <?php | ||||
| //    MyDMS. Document Management System
 | ||||
| //    Copyright (C) 2010 Matteo Lucarelli
 | ||||
| //
 | ||||
| //    This program is free software; you can redistribute it and/or modify
 | ||||
| //    it under the terms of the GNU General Public License as published by
 | ||||
| //    the Free Software Foundation; either version 2 of the License, or
 | ||||
| //    (at your option) any later version.
 | ||||
| //
 | ||||
| //    This program is distributed in the hope that it will be useful,
 | ||||
| //    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | ||||
| //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | ||||
| //    GNU General Public License for more details.
 | ||||
| //
 | ||||
| //    You should have received a copy of the GNU General Public License
 | ||||
| //    along with this program; if not, write to the Free Software
 | ||||
| //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | ||||
| 
 | ||||
| include("../inc/inc.Settings.php"); | ||||
| <?php | ||||
| //    MyDMS. Document Management System
 | ||||
| //    Copyright (C) 2010 Matteo Lucarelli
 | ||||
| //
 | ||||
| //    This program is free software; you can redistribute it and/or modify
 | ||||
| //    it under the terms of the GNU General Public License as published by
 | ||||
| //    the Free Software Foundation; either version 2 of the License, or
 | ||||
| //    (at your option) any later version.
 | ||||
| //
 | ||||
| //    This program is distributed in the hope that it will be useful,
 | ||||
| //    but WITHOUT ANY WARRANTY; without even the implied warranty of
 | ||||
| //    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 | ||||
| //    GNU General Public License for more details.
 | ||||
| //
 | ||||
| //    You should have received a copy of the GNU General Public License
 | ||||
| //    along with this program; if not, write to the Free Software
 | ||||
| //    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 | ||||
| 
 | ||||
| include("../inc/inc.Settings.php"); | ||||
| include("../inc/inc.DBInit.php"); | ||||
| include("../inc/inc.Language.php"); | ||||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.ClassEmail.php"); | ||||
| include("../inc/inc.Language.php"); | ||||
| include("../inc/inc.ClassUI.php"); | ||||
| include("../inc/inc.ClassEmail.php"); | ||||
| include("../inc/inc.Authentication.php"); | ||||
| 
 | ||||
| if ($user->isGuest()) { | ||||
|  | @ -36,7 +36,7 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) { | |||
| 	 | ||||
| 		// include all folder's document
 | ||||
| 		 | ||||
| 		$documents = $folder->getDocuments(); | ||||
| 		$documents = $folder->getDocuments(); | ||||
| 		$documents = SeedDMS_Core_DMS::filterAccess($documents, $dms->getUser($userid), M_READ); | ||||
| 
 | ||||
| 		foreach($documents as $document) | ||||
|  | @ -47,16 +47,16 @@ function add_folder_notify($folder,$userid,$recursefolder,$recursedoc) { | |||
| 	 | ||||
| 		// recurse all folder's folders
 | ||||
| 		 | ||||
| 		$subFolders = $folder->getSubFolders(); | ||||
| 		$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ); | ||||
| 		$subFolders = $folder->getSubFolders(); | ||||
| 		$subFolders = SeedDMS_Core_DMS::filterAccess($subFolders, $dms->getUser($userid), M_READ); | ||||
| 
 | ||||
| 		foreach($subFolders as $subFolder) | ||||
| 			add_folder_notify($subFolder,$userid,$recursefolder,$recursedoc); | ||||
| 	} | ||||
| } | ||||
| 
 | ||||
| if (!isset($_GET["type"])) UI::exitError(getMLText("my_account"),getMLText("error_occured")); | ||||
| if (!isset($_GET["action"])) UI::exitError(getMLText("my_account"),getMLText("error_occured")); | ||||
| if (!isset($_GET["type"])) UI::exitError(getMLText("my_account"),getMLText("error_occured")); | ||||
| if (!isset($_GET["action"])) UI::exitError(getMLText("my_account"),getMLText("error_occured")); | ||||
| 
 | ||||
| $userid=$user->getID(); | ||||
| 	 | ||||
|  | @ -127,9 +127,6 @@ if ($_GET["type"]=="document"){ | |||
| 					getMLText("comment").": ".$folder->getComment()."\r\n". | ||||
| 					"URL: ###URL_PREFIX###out/out.ViewFolder.php?folderid=".$folder->getID()."\r\n"; | ||||
| 
 | ||||
| //				$subject=mydmsDecodeString($subject);
 | ||||
| //				$message=mydmsDecodeString($message);
 | ||||
| 				 | ||||
| 				$notifier->toIndividual($user, $obj, $subject, $message); | ||||
| 			} | ||||
| 		} | ||||
|  | @ -137,5 +134,5 @@ if ($_GET["type"]=="document"){ | |||
| } | ||||
| 
 | ||||
| header("Location:../out/out.ManageNotify.php"); | ||||
| 
 | ||||
| ?>
 | ||||
| 
 | ||||
| ?>
 | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann