Changeset 192 for trunk/trax/trax.php
- Timestamp:
- 03/27/06 15:02:53 (6 years ago)
- Files:
-
- 1 modified
-
trunk/trax/trax.php (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/trax/trax.php
r191 r192 34 34 */ 35 35 $search = array( 36 ' @TRAX-CONFIG@' // symbol for the full filesystem path36 '/@TRAX-CONFIG@/' // symbol for the full filesystem path 37 37 // to the Trax config/ directory in 38 38 // the user's work area … … 48 48 function trax() { 49 49 50 global $search, $replace; 51 50 52 // Get command line argument, if any 51 53 if (!array_key_exists('argc',$GLOBALS) … … 72 74 73 75 // Assign real values for symbol substitution 74 $replace[0] = $dstdir.'config'; // actual value of the full75 // filesystem path to the Trax76 // config/ directory in the user's77 // work area76 $replace[0] = realpath('./'.$dstdir.'config'); // actual value of 77 // the full filesystem path to the 78 // Trax config/ directory in the 79 // user's work area 78 80 79 81 $srcdir = SOURCE_DIR; … … 227 229 function copy_file($src_path, $dst_path) { 228 230 231 global $search, $replace; 232 229 233 // Read source file into a string 230 234 if (!$file = file_get_contents($src_path)) { … … 233 237 234 238 // Substitute @TRAX-...@ symbols for appropriate values 239 $file = preg_replace($search, $replace, $file); 235 240 236 241 // Write out file contents
