Ignore:
Timestamp:
Sep 12, 2005 1:02:01 AM (19 years ago)
Author:
scdev
Message:

update module_maker to print module variables instead of writing files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/module_maker/_config.inc.php

    r9 r10  
    44
    55// Determine common site directory.
    6 if (false !== ($common_base = realpath($_SERVER['argv'][1]))) {
     6$common_base = realpath($_SERVER['argv'][1]);
     7
     8if ('' != $common_base && is_dir($common_base)) {
    79    // First arg is path to current site. Realpath removes trailing /s
    810    define('COMMON_BASE', $common_base);
    911} else {
    10     die(sprintf("Error: First argument must be the directory path to the site (e.g.: /home/sc/www.strangecode.com/).\n", basename($_SERVER['argv'][0])));
     12    die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n");
    1113}
    1214
     
    2527$app->setParam(array(
    2628    'site_name' => 'Module Maker',
    27     'site_email' => 'quinn@strangecode.com',
     29    'site_email' => 'codebase@strangecode.com',
    2830    'enable_session' => false,
    2931    'enable_db' => true,
Note: See TracChangeset for help on using the changeset viewer.