Changeset 151 for trunk/bin/module_maker/_config.inc.php
- Timestamp:
- Jun 6, 2006 3:19:17 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/_config.inc.php
r136 r151 3 3 * code by strangecode :: www.strangecode.com :: this document contains copyrighted information. */ 4 4 5 // Determine common site directory.6 $common_base = realpath($_SERVER['argv'][1]);7 8 5 // Test argument. 9 if ($_SERVER['argc'] > 1 && '' != $common_base && is_dir($common_base)) { 6 if ($_SERVER['argc'] > 1 && isset($_SERVER['argv'][1]) && '' != $_SERVER['argv'][1] && is_dir($_SERVER['argv'][1])) { 7 // Determine common site directory. 8 $common_base = realpath($_SERVER['argv'][1]); 9 10 10 // First arg is path to current site. Realpath removes trailing /s 11 11 define('COMMON_BASE', $common_base);
Note: See TracChangeset
for help on using the changeset viewer.