Ignore:
Timestamp:
Dec 13, 2013 11:24:08 PM (11 years ago)
Author:
anonymous
Message:

Changed some global constants to class constants (in cases where backwards compatability wouldn't break).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eli_branch/lib/App.inc.php

    r446 r447  
    3030 */
    3131
    32 //ob_start();
    33 
    3432// Message Types.
    3533define('MSG_ERR', 1);
     
    321319
    322320            // Session parameters.
    323             /*
    324321            ini_set('session.gc_probability', 1);
    325322            ini_set('session.gc_divisor', 1000);
     
    330327            ini_set('session.entropy_length', '512');
    331328            ini_set('session.cookie_httponly', true);
    332              * */
    333329            session_name($this->getParam('session_name'));
    334330
     
    343339
    344340            // Start the session.
    345             //session_start();
     341            session_start();
    346342
    347343            if (!isset($_SESSION['_app'][$this->_ns])) {
     
    378374
    379375        // Character set. This should also be printed in the html header template.
    380         //header('Content-type: text/html; charset=' . $this->getParam('character_set'));
     376        header('Content-type: text/html; charset=' . $this->getParam('character_set'));
    381377
    382378        // Set the version of the codebase we're using.
     
    385381            $codebase_version = trim(file_get_contents($codebase_version_file));
    386382            $this->setParam(array('codebase_version' => $codebase_version));
    387             //header('X-Codebase-Version: ' . $codebase_version);
     383            header('X-Codebase-Version: ' . $codebase_version);
    388384        }
    389385
     
    472468            return false;
    473469        }
    474         //die($_SESSION['_app'][$this->_ns]['messages']);
    475470        return isset($_SESSION['_app'][$this->_ns]['messages']) ? $_SESSION['_app'][$this->_ns]['messages'] : array();
    476471    }
Note: See TracChangeset for help on using the changeset viewer.