- Timestamp:
- Jun 11, 2022 11:15:06 PM (23 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/user.cli.php
r695 r770 39 39 $rii->setMaxDepth(1); 40 40 foreach ($rii as $filename => $file) { 41 if (mb_strpos($filename, '/_config.inc.php') !== false) { 41 if (mb_strpos($filename, '/_config.inc.php') !== false 42 && preg_match('/^\$auth = new Auth/m', file_get_contents($filename)) 43 && preg_match('/^\$(db|pdo) =/m', file_get_contents($filename))) { 42 44 $_config_file = $filename; 43 45 echo "Loading $_config_file\n"; … … 46 48 } 47 49 if (!$_config_file) { 48 echo "Error: could not find _config.inc.php in current directory or subdirectories.\n";50 echo "Error: could not find a satisfactory _config.inc.php in current directory or subdirectories.\n"; 49 51 exit(1); 50 52 } 51 53 define('_CLI', true); 52 54 require_once $_config_file; 55 die;/// 53 56 54 57 /********************************************************************
Note: See TracChangeset
for help on using the changeset viewer.