mirror of
				https://git.code.sf.net/p/seeddms/code
				synced 2025-10-31 13:18:06 +00:00 
			
		
		
		
	expand include path, check for database version
This commit is contained in:
		
							parent
							
								
									2ad7ba81b6
								
							
						
					
					
						commit
						49df29e69d
					
				|  | @ -1,9 +1,5 @@ | |||
| <?php | ||||
| ini_set('include_path', '.:/usr/share/php:/usr/share/seeddms'); | ||||
| 
 | ||||
| require_once("inc/inc.ClassSettings.php"); | ||||
| require_once("SeedDMS/Core.php"); | ||||
| require_once("SeedDMS/Lucene.php"); | ||||
| 
 | ||||
| function usage() { /* {{{ */ | ||||
| 	echo "Usage:\n"; | ||||
|  | @ -446,10 +442,19 @@ if(isset($options['sections'])) { | |||
| 	$sections = explode(',', $options['sections']); | ||||
| } | ||||
| 
 | ||||
| if(isset($settings->_extraPath)) | ||||
| 	ini_set('include_path', $settings->_extraPath. PATH_SEPARATOR .ini_get('include_path')); | ||||
| 
 | ||||
| require_once("SeedDMS/Core.php"); | ||||
| 
 | ||||
| $db = new SeedDMS_Core_DatabaseAccess($settings->_dbDriver, $settings->_dbHostname, $settings->_dbUser, $settings->_dbPass, $settings->_dbDatabase); | ||||
| $db->connect() or die ("Could not connect to db-server \"" . $settings->_dbHostname . "\""); | ||||
| 
 | ||||
| $dms = new SeedDMS_Core_DMS($db, $settings->_contentDir.$settings->_contentOffsetDir); | ||||
| if(!$dms->checkVersion()) { | ||||
| 	echo "Database update needed."; | ||||
| 	exit; | ||||
| } | ||||
| $dms->setRootFolderID($settings->_rootFolderID); | ||||
| 
 | ||||
| $rootfolder = $dms->getFolder($folderid); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 Uwe Steinmann
						Uwe Steinmann