Ignore:
Timestamp:
Nov 14, 2005 6:22:44 AM (19 years ago)
Author:
scdev
Message:

Rebuilt the services/admins.php script and templates. Fixes since v2 conversion. Lots of bugs and more to come!

File:
1 edited

Legend:

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

    r18 r19  
    66$common_base = realpath($_SERVER['argv'][1]);
    77
    8 
    9 if (2 == $_SERVER['argc'] && '' != $common_base && is_dir($common_base)) {
     8// Test argument.
     9if ($_SERVER['argc'] > 1 && '' != $common_base && is_dir($common_base)) {
    1010    // First arg is path to current site. Realpath removes trailing /s
    1111    define('COMMON_BASE', $common_base);
    1212} else {
    13     die("Error: Single argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n");
     13    die("Error: First argument must be the directory path to an existing site (ex: /home/sc/www.strangecode.com).\n");
     14}
     15
     16// Make sure necessary files exist.
     17if (!file_exists(COMMON_BASE . '/global/db_auth.inc.php')) {
     18    die("Error: First argument directory must contain the global/db_auth.inc.php file with valid MySQL credentials.\n");
    1419}
    1520
Note: See TracChangeset for help on using the changeset viewer.