Changeset 533 for trunk/bin/module_maker/sql.cli.php
- Timestamp:
- Jul 13, 2015 8:48:29 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/module_maker/sql.cli.php
r468 r533 26 26 */ 27 27 28 include_once dirname(__FILE__) . '/_config.inc.php'; 28 if ($_SERVER['argc'] > 1 && isset($_SERVER['argv'][1]) && '' != $_SERVER['argv'][1] && is_dir($_SERVER['argv'][1])) { 29 // First arg is path to current site. Realpath removes trailing /s 30 define('COMMON_BASE', realpath($_SERVER['argv'][1])); 31 } else { 32 die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n"); 33 } 34 35 include_once dirname(__FILE__) . '/../_config.inc.php'; 29 36 30 37 $op = null;
Note: See TracChangeset
for help on using the changeset viewer.