restrict to .xml
This commit is contained in:
		
							parent
							
								
									f80a4065ff
								
							
						
					
					
						commit
						9a3905f58e
					
				|  | @ -3,7 +3,8 @@ | ||||||
| $Id$ | $Id$ | ||||||
| 
 | 
 | ||||||
|   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) |   This code is part of LDAP Account Manager (http://www.ldap-account-manager.org/) | ||||||
|   Copyright (C) 2003 - 2006  Michael D<EFBFBD>rgner |   Copyright (C) 2003 - 2006  Michael Duergner | ||||||
|  |                        2011  Roland Gruber | ||||||
| 
 | 
 | ||||||
|   This program is free software; you can redistribute it and/or modify |   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 |   it under the terms of the GNU General Public License as published by | ||||||
|  | @ -23,7 +24,7 @@ $Id$ | ||||||
| /** | /** | ||||||
|  * Functions to manage the PDF structures. |  * Functions to manage the PDF structures. | ||||||
|  *  |  *  | ||||||
|  * @author Michael D<EFBFBD>rgner |  * @author Michael Duergner | ||||||
|  * @package PDF |  * @package PDF | ||||||
|  */ |  */ | ||||||
| 
 | 
 | ||||||
|  | @ -51,7 +52,7 @@ function getPDFStructureDefinitions($scope = "user") { | ||||||
| 		$dirHandle = opendir($path); | 		$dirHandle = opendir($path); | ||||||
| 		while($file = readdir($dirHandle)) { | 		while($file = readdir($dirHandle)) { | ||||||
| 			$struct_file = explode('.',$file); | 			$struct_file = explode('.',$file); | ||||||
| 			if(!is_dir($path.$file) && $file != '.' && $file != '..' && $struct_file[1] == $scope) { | 			if(!is_dir($path.$file) && ($file != '.') && ($file != '..') && ($struct_file[1] == $scope) && ($struct_file[2] == 'xml')) { | ||||||
| 				array_push($return, $struct_file[0]); | 				array_push($return, $struct_file[0]); | ||||||
| 			} | 			} | ||||||
| 		} | 		} | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue