Changeset 532 for trunk/lib/App.inc.php
- Timestamp:
- Jul 13, 2015 8:11:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/lib/App.inc.php
r529 r532 349 349 } 350 350 351 // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r w-------352 // But only if db_pass hasn't been defined yetby other means.353 if (defined('_CLI') && !$this->getParam('db_server') && !$this->getParam('db_name') && !$this->getParam('db_user') && !$this->getParam('db_pass')) {351 // DB credentials for CLI scripts stored in a JSON file with read rights given only to the user who will be executing the scripts: -r-------- 352 // But not if all DB credentials have been defined already by other means. 353 if (defined('_CLI') && (!$this->getParam('db_server') || !$this->getParam('db_name') || !$this->getParam('db_user') || !$this->getParam('db_pass'))) { 354 354 if (false !== $db_auth_file = stream_resolve_include_path($this->getParam('db_auth_file'))) { 355 355 if (is_readable($db_auth_file)) {
Note: See TracChangeset
for help on using the changeset viewer.