Changeset 564
- Timestamp:
- Mar 5, 2016 4:07:19 AM (8 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/_config.inc.php
r533 r564 80 80 'display_errors' => true, 81 81 'error_reporting' => E_ALL, 82 'log_file_priority' => false,82 'log_file_priority' => LOG_DEBUG, 83 83 'log_screen_priority' => LOG_INFO, 84 'log_directory' => '/tmp',84 'log_directory' => (is_dir('./log') ? './log' : '/tmp'), // If ./log exists, use it, otherwise /tmp. 85 85 'log_filename' => 'site_log', 86 86 )); 87 87 88 88 if (strtolower(getFilenameExtension($db_auth_file)) != 'json') { 89 // DB auth file is not json, and will not be automaticlaly be loaded by $app's 'db_auth_file' parser.89 // DB auth file is not JSON, and will not be automatically be loaded by $app's 'db_auth_file' parser. 90 90 require_once $db_auth_file; 91 91 } -
trunk/lib/Auth_SQL.inc.php
r563 r564 163 163 $app =& App::getInstance(); 164 164 $db =& DB::getInstance(); 165 166 165 167 166 static $_db_tested = false; … … 323 322 $db =& DB::getInstance(); 324 323 325 $this->initDB();326 327 324 if ($this->get('user_id', false)) { 325 326 $this->initDB(); 327 328 328 // FIX ME: Should we check if the session is active? 329 329 $db->query(" -
trunk/lib/DB.inc.php
r563 r564 149 149 if (!$this->getParam('db_server')) { 150 150 // If db_server not specified, assume localhost. 151 $this->setParam( 'db_server', 'localhost');151 $this->setParam(array('db_server' => 'localhost')); 152 152 } 153 153
Note: See TracChangeset
for help on using the changeset viewer.