Ignore:
Timestamp:
Apr 5, 2006 7:16:48 PM (18 years ago)
Author:
scdev
Message:

axis-out checkin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.1dev/bin/module_maker/sql.cli.php

    r78 r79  
    66 */
    77
    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.
     9require_once dirname(__FILE__) . '/_config.inc.php';
    1210
    1311$op = null;
     
    1513
    1614// 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];
     15if ($_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];
    2220} else {
    23     die(basename($_SERVER['argv'][0]) . " Warning: You must specify a DB table as the first argument.\n");
     21    die(basename($_SERVER['argv'][0]) . " Warning: You must specify a DB table as the second argument.\n");
    2422}
    2523
Note: See TracChangeset for help on using the changeset viewer.