Changeset 79 for branches/1.1dev/bin/module_maker/sql.cli.php
- Timestamp:
- Apr 5, 2006 7:16:48 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/bin/module_maker/sql.cli.php
r78 r79 6 6 */ 7 7 8 $CFG->enable_session = false; 9 $CFG->log_screen_priority = LOG_DEBUG; 10 error_reporting(E_ALL); 11 require_once dirname(__FILE__) . '/../../config/boot.inc.php'; 8 // Get module maker configuration. 9 require_once dirname(__FILE__) . '/_config.inc.php'; 12 10 13 11 $op = null; … … 15 13 16 14 // Test arguments. 17 if ($_SERVER['argc'] == 2) {18 $db_tbl = $_SERVER['argv'][ 1];19 } else if ($_SERVER['argc'] == 3) {20 $db_tbl = $_SERVER['argv'][ 1];21 $op = $_SERVER['argv'][ 2];15 if ($_SERVER['argc'] == 3) { 16 $db_tbl = $_SERVER['argv'][2]; 17 } else if ($_SERVER['argc'] == 4) { 18 $db_tbl = $_SERVER['argv'][2]; 19 $op = $_SERVER['argv'][3]; 22 20 } else { 23 die(basename($_SERVER['argv'][0]) . " Warning: You must specify a DB table as the firstargument.\n");21 die(basename($_SERVER['argv'][0]) . " Warning: You must specify a DB table as the second argument.\n"); 24 22 } 25 23
Note: See TracChangeset
for help on using the changeset viewer.