*/ define('FOLLOW_REQUEST_SSL', 0); define('ENFORCE_SSL', 1); define('RELEASE_SSL', 2); /** * Manages Context such as request arguments/environment variables * It has dual method structure, easy-to use methods which can be called as self::methodname(),and methods called with static object. * * @author NAVER (developers@xpressengine.com) */ class Context { /** * Allow rewrite * @var bool TRUE: using rewrite mod, FALSE: otherwise */ public $allow_rewrite = FALSE; /** * Request method * @var string GET|POST|XMLRPC */ public $request_method = 'GET'; /** * js callback function name. * @var string */ public $js_callback_func = ''; /** * Response method.If it's not set, it follows request method. * @var string HTML|XMLRPC */ public $response_method = ''; /** * Conatins request parameters and environment variables * @var object */ public $context = NULL; /** * DB info * @var object */ public $db_info = NULL; /** * FTP info * @var object */ public $ftp_info = NULL; /** * ssl action cache file * @var array */ public $sslActionCacheFile = './files/cache/sslCacheFile.php'; /** * List of actions to be sent via ssl (it is used by javascript xml handler for ajax) * @var array */ public $ssl_actions = array(); /** * obejct oFrontEndFileHandler() * @var object */ public $oFrontEndFileHandler; /** * script codes in
.. * @var string */ public $html_header = NULL; /** * class names of * @var array */ public $body_class = array(); /** * codes after * @var string */ public $body_header = NULL; /** * class names before * @var string */ public $html_footer = NULL; /** * path of Xpress Engine * @var string */ public $path = ''; // language information - it is changed by HTTP_USER_AGENT or user's cookie /** * language type * @var string */ public $lang_type = ''; /** * contains language-specific data * @var object */ public $lang = NULL; /** * list of loaded languages (to avoid re-loading them) * @var array */ public $loaded_lang_files = array(); /** * site's browser title * @var string */ public $site_title = ''; /** * variables from GET or form submit * @var mixed */ public $get_vars = NULL; /** * Checks uploaded * @var bool TRUE if attached file exists */ public $is_uploaded = FALSE; /** * Pattern for request vars check * @var array */ public $patterns = array( '/<\?/iUsm', '/<\%/iUsm', '/