Ignore:
Timestamp:
Nov 15, 2014 9:34:39 PM (10 years ago)
Author:
anonymous
Message:

Many auth and crypto changes; various other bugfixes while working on pulso.

File:
1 edited

Legend:

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

    r468 r500  
    3535
    3636// Make sure necessary files exist.
    37 if (!file_exists(COMMON_BASE . '/global/db_auth.inc.php')) {
     37$db_auth_file = false;
     38$rii = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(COMMON_BASE));
     39$rii->setMaxDepth(2);
     40foreach ($rii as $filename => $file) {
     41    if (mb_strpos($filename, 'db_auth.inc.php') !== false) {
     42        $db_auth_file = $filename;
     43        break;
     44    }
     45}
     46
     47if (!$db_auth_file) {
    3848    die("Error: First argument directory must contain the global/db_auth.inc.php file with valid MySQL credentials.\n");
    3949}
     
    6373    'log_screen_priority' => LOG_DEBUG,
    6474));
    65 require_once 'global/db_auth.inc.php';
     75require_once $db_auth_file;
    6676
    6777// Start application-based functionality: database, session, environment, ini setup, etc.
Note: See TracChangeset for help on using the changeset viewer.