- Timestamp:
- Jul 13, 2015 8:11:33 PM (9 years ago)
- Location:
- trunk/lib
- Files:
-
- 4 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)) { -
trunk/lib/DB.inc.php
r502 r532 378 378 public function columnExists($table, $columns, $strict=true, $use_cached_results=true) 379 379 { 380 if (!$this->_connected) { 380 $app =& App::getInstance(); 381 382 if (!$this->_connected) { 383 $app->logMsg(sprintf('No DB connection to run %s', __METHOD__), LOG_NOTICE, __FILE__, __LINE__); 381 384 return false; 382 385 } … … 384 387 // Ensure the table exists. 385 388 if (!$this->tableExists($table, $use_cached_results)) { 389 $app->logMsg(sprintf('Table does not exist: %s', $table), LOG_DEBUG, __FILE__, __LINE__); 386 390 return false; 387 391 } -
trunk/lib/Utilities.inc.php
r531 r532 1091 1091 $val = removeSignature($signed_val); 1092 1092 // If the signed value matches the original signed value we consider the value safe. 1093 if ( $signed_val == addSignature($val, $salt, $length)) {1093 if ('' != $signed_val && $signed_val == addSignature($val, $salt, $length)) { 1094 1094 // Signature verified. 1095 1095 return true; -
trunk/lib/Version.inc.php
r523 r532 53 53 // This value is overwritten by the $app->getParam('db_create_tables') setting if it is available. 54 54 'create_table' => true, 55 55 56 // If true, makes an exact comparison of saved vs. live table schemas. If false, just checks that the saved columns are available. 56 57 'db_schema_strict' => true,
Note: See TracChangeset
for help on using the changeset viewer.