Changeset 754 for branches/1.1dev/config/boot.inc.php
- Timestamp:
- Nov 15, 2021 10:58:50 PM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/1.1dev/config/boot.inc.php
r707 r754 195 195 // Database session handling. 196 196 require_once CODE_BASE . '/lib/MySQLSessionHandler.inc.php'; 197 $sess_mysql['dbh'] =& $dbh; // MySQL link identifyer, if we are already connected to the database197 $sess_mysql['dbh'] =& $dbh; // MySQL link identifier, if we are already connected to the database 198 198 $sess_mysql['hostname'] = 'localhost'; // MySQL hostname 199 199 $sess_mysql['user'] = $CFG->username; // MySQL username … … 218 218 $_SESSION['_messages'] = array(); 219 219 } 220 221 // if (isset($_COOKIE[session_name()])) {222 // logMsg(sprintf('Found session in cookie: %s=%s', session_name(), $_COOKIE[session_name()]), LOG_DEBUG, __FILE__, __LINE__);223 // }224 // if (getPost(session_name())) {225 // logMsg(sprintf('Found session in post: %s=%s', session_name(), getPost(session_name())), LOG_DEBUG, __FILE__, __LINE__);226 // }227 // if (getGet(session_name())) {228 // logMsg(sprintf('Found session in get: %s=%s', session_name(), getGet(session_name())), LOG_DEBUG, __FILE__, __LINE__);229 // }230 // logMsg(sprintf('Using session %s=%s', session_name(), session_id()), LOG_DEBUG, __FILE__, __LINE__);231 232 233 /******************************************************************************234 * LANGUAGE235 *****************************************************************************/236 237 // Set the language.238 if ($lang = getFormData('lang')) {239 $_SESSION['_language'] = $lang;240 } else if (!isset($_SESSION['_language'])) {241 preg_match('/^([-[:alpha:]]+)/i', getenv('HTTP_ACCEPT_LANGUAGE'), $lang);242 if (isset($lang[0]) && isset($CFG->site_langs[$lang[0]])) {243 $_SESSION['_language'] = $lang[0];244 } else {245 $_SESSION['_language'] = 'en';246 }247 }248 249 220 } // end enable sessions ______________________________________________________ 250 221 … … 298 269 ini_set('include_path', 299 270 ini_get('include_path') . PATH_SEPARATOR . 300 SITE_BASE . '/_templates/' . $inc_lang . PATH_SEPARATOR .301 CODE_BASE . '/templates/' . $inc_lang . PATH_SEPARATOR .302 303 SITE_BASE . '/_templates/en' . PATH_SEPARATOR .304 CODE_BASE . '/templates/en' . PATH_SEPARATOR .305 306 271 SITE_BASE . '/_templates' . PATH_SEPARATOR . 307 272 CODE_BASE . '/templates' . PATH_SEPARATOR . … … 309 274 SITE_BASE . '/../lib' 310 275 ); 311 312 ?>
Note: See TracChangeset
for help on using the changeset viewer.