Changeset 442 for branches/eli_branch/lib
- Timestamp:
- Dec 6, 2013 7:17:37 PM (11 years ago)
- Location:
- branches/eli_branch/lib
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eli_branch/lib/App.inc.php
r439 r442 30 30 */ 31 31 32 //ob_start(); 33 32 34 // Message Types. 33 35 define('MSG_ERR', 1); … … 244 246 245 247 // Error reporting. 248 /* 246 249 ini_set('error_reporting', $this->getParam('error_reporting')); 247 250 ini_set('display_errors', $this->getParam('display_errors')); … … 250 253 ini_set('error_log', $this->getParam('log_directory') . '/' . $this->getParam('php_error_log')); 251 254 } 252 255 */ 253 256 // Set character set to use for multi-byte string functions. 254 257 mb_internal_encoding($this->getParam('character_set')); … … 273 276 274 277 if (true === $this->getParam('enable_db')) { 275 278 276 279 // DB connection parameters taken from environment variables in the httpd.conf file, readable only by root. 277 280 if (!empty($_SERVER['DB_SERVER'])) { … … 319 322 320 323 // Session parameters. 324 /* 321 325 ini_set('session.gc_probability', 1); 322 326 ini_set('session.gc_divisor', 1000); … … 327 331 ini_set('session.entropy_length', '512'); 328 332 ini_set('session.cookie_httponly', true); 333 * */ 329 334 session_name($this->getParam('session_name')); 330 335 … … 339 344 340 345 // Start the session. 341 session_start();346 //session_start(); 342 347 343 348 if (!isset($_SESSION['_app'][$this->_ns])) { … … 374 379 375 380 // Character set. This should also be printed in the html header template. 376 header('Content-type: text/html; charset=' . $this->getParam('character_set'));381 //header('Content-type: text/html; charset=' . $this->getParam('character_set')); 377 382 378 383 // Set the version of the codebase we're using. … … 381 386 $codebase_version = trim(file_get_contents($codebase_version_file)); 382 387 $this->setParam(array('codebase_version' => $codebase_version)); 383 header('X-Codebase-Version: ' . $codebase_version);388 //header('X-Codebase-Version: ' . $codebase_version); 384 389 } 385 390 … … 397 402 { 398 403 session_write_close(); 399 restore_include_path();400 404 $this->running = false; 401 405 $num_queries = 0; … … 449 453 ); 450 454 } 451 455 452 456 if (!in_array($type, array(MSG_NOTICE, MSG_SUCCESS, MSG_WARNING, MSG_ERR))) { 453 457 $this->logMsg(sprintf('Invalid MSG_* type: %s', $type), LOG_NOTICE, __FILE__, __LINE__); … … 469 473 return false; 470 474 } 471 475 //die($_SESSION['_app'][$this->_ns]['messages']); 472 476 return isset($_SESSION['_app'][$this->_ns]['messages']) ? $_SESSION['_app'][$this->_ns]['messages'] : array(); 473 477 } … … 503 507 public function printRaisedMessages($above='', $below='', $print_gotohash_js=false, $hash='sc-msg') 504 508 { 509 505 510 if (!$this->running) { 506 511 $this->logMsg(sprintf('Canceled method call %s, application not running.', __FUNCTION__), LOG_NOTICE, __FILE__, __LINE__); -
branches/eli_branch/lib/Lock.inc.php
r439 r442 350 350 * Deletes all locks that are older than auto_timeout. 351 351 */ 352 p rivatefunction _auto_timeout()352 public function _auto_timeout() 353 353 { 354 354 $db =& DB::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.