Changeset 120
- Timestamp:
- 03/22/06 22:35:29 (3 years ago)
- Files:
-
- trunk/lib/jelix-scripts/includes/utils.lib.php (modified) (1 diff)
- trunk/lib/jelix-scripts/scripts.conf.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lib/jelix-scripts/includes/utils.lib.php
r37 r120 101 101 } 102 102 if(strtolower($os) == 'win') 103 return "\\";103 return array("\\","![/\\]!"); 104 104 else 105 return '/';105 return array('/','!/!'); 106 106 } 107 107 108 108 109 109 function jxs_getRelativePath($path, $targetPath){ 110 $sep= jxs_getPathSeparator();110 list($sep, $cut) = jxs_getPathSeparator(); 111 111 112 $path = explode($sep,$path);113 $targetPath = explode($sep,$targetPath);112 $path = preg_split($cut,$path); 113 $targetPath = preg_split($cut,$targetPath); 114 114 115 115 $dir=''; trunk/lib/jelix-scripts/scripts.conf.php
r37 r120 19 19 define ('JELIXS_APPTPL_LOG_PATH' , JELIXS_APPS_BASEPATH."/$APPNAME/var/log/"); 20 20 define ('JELIXS_APPTPL_CONFIG_PATH' , JELIXS_APPS_BASEPATH."/$APPNAME/var/config/"); 21 define ('JELIXS_INIT_PATH' , '../jelix/init.php');21 define ('JELIXS_INIT_PATH' , JELIXS_APPS_BASEPATH.'/lib/jelix/init.php'); 22 22 23 23 /* example for a linux package :
