Changeset 19 for trunk/bin/module_maker/_config.inc.php
- Timestamp:
- Nov 14, 2005 6:22:44 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/_config.inc.php
r18 r19 6 6 $common_base = realpath($_SERVER['argv'][1]); 7 7 8 9 if ( 2 == $_SERVER['argc']&& '' != $common_base && is_dir($common_base)) {8 // Test argument. 9 if ($_SERVER['argc'] > 1 && '' != $common_base && is_dir($common_base)) { 10 10 // First arg is path to current site. Realpath removes trailing /s 11 11 define('COMMON_BASE', $common_base); 12 12 } else { 13 die("Error: Single argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n"); 13 die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n"); 14 } 15 16 // Make sure necessary files exist. 17 if (!file_exists(COMMON_BASE . '/global/db_auth.inc.php')) { 18 die("Error: First argument directory must contain the global/db_auth.inc.php file with valid MySQL credentials.\n"); 14 19 } 15 20
Note: See TracChangeset
for help on using the changeset viewer.