Changeset 533 for trunk/bin/acl.cli.php


Ignore:
Timestamp:
Jul 13, 2015 8:48:29 PM (9 years ago)
Author:
anonymous
Message:

Adapted module maker scripts to use the new cli config file. Updated config to load codebase classes from its own codebase dir.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/acl.cli.php

    r532 r533  
    4242
    4343// ACL!
    44 require_once 'codebase/lib/ACL.inc.php';
     44require_once CODEBASE_PATH . '/lib/ACL.inc.php';
    4545$acl =& ACL::getInstance();
    4646$acl->setParam(array('create_table' => false));
     
    181181function help()
    182182{
    183     global $this_script;
     183    global $cli_executed;
    184184
    185185    ?>
     
    210210implying access to any object of that type.
    211211
    212 Usage: <?php echo $this_script; ?> command [args]
     212Usage: <?php echo $cli_executed; ?> command [args]
    213213
    214214Where command is any of the following (with arguments):
     
    255255    $app =& App::getInstance();
    256256    $db =& DB::getInstance();
    257     global $this_script;
    258257
    259258    echo "\n";
     
    314313    $app =& App::getInstance();
    315314    $db =& DB::getInstance();
    316     global $this_script;
    317315
    318316    // Retrieve access value from db.
Note: See TracChangeset for help on using the changeset viewer.