Changeset 1270
- Timestamp:
- 12/31/2008 11:11:52 PM (20 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
libs/Wakka.class.php (modified) (2 diffs)
-
wikka.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/libs/Wakka.class.php
r1251 r1270 4829 4829 * Build a (possibly valid) filepath from a delimited list of paths 4830 4830 * 4831 * This function takes a list of paths delimited by either":"4832 * (Unix-style) or ";" (Window-style) and attempts to construct a4833 * fully-qualified pathname to a specific file. By default, this4834 * f unction checks to see if the file pointed to by the4835 * fully-qualified pathname exists. First valid match wins.4836 * Disabling this feature will return the first valid constructed4837 * path (i.e, a path containing a valid directory, but not4838 * n ecessarily pointing to an existant file).4831 * This function takes a list of paths delimited by ":" 4832 * (Unix-style), ";" (Window-style), or "," (Wikka-style) and 4833 * attempts to construct a fully-qualified pathname to a specific 4834 * file. By default, this function checks to see if the file 4835 * pointed to by the fully-qualified pathname exists. First valid 4836 * match wins. Disabling this feature will return the first valid 4837 * constructed path (i.e, a path containing a valid directory, but 4838 * not necessarily pointing to an existant file). 4839 4839 * 4840 4840 * @param string $filename mandatory: filename to be used in … … 4849 4849 function BuildFullpathFromMultipath($filename, $pathlist, $checkIfFileExists=TRUE) 4850 4850 { 4851 $paths = preg_split('/;|: /', $pathlist);4851 $paths = preg_split('/;|:|,/', $pathlist); 4852 4852 if(empty($paths[0])) return NULL; 4853 4853 if(FALSE === $checkIfFileExists) -
trunk/wikka.php
r1226 r1270 273 273 not a concatenation. 274 274 */ 275 276 if(FALSE !== strpos(strtolower(PHP_OS), strtolower('windows'))) 277 { 278 define('PATH_DIVIDER', ';'); 279 } 280 else 281 { 282 define('PATH_DIVIDER', ':'); 283 } 275 define('PATH_DIVIDER', ','); 284 276 285 277 /**#@+