Go to the documentation of this file.
36 public function header( $string, $replace =
true, $http_response_code =
null ) {
37 header( $string, $replace, $http_response_code );
61 global $wgCookieSecure, $wgCookieExpiration, $wgCookieHttpOnly;
66 if ( func_num_args() >= 5 ) {
67 $options[
'domain'] = func_get_arg( 4 );
69 if ( func_num_args() >= 6 ) {
70 $options[
'secure'] = func_get_arg( 5 );
77 'domain' => $wgCookieDomain,
78 'path' => $wgCookiePath,
79 'secure' => $wgCookieSecure,
80 'httpOnly' => $wgCookieHttpOnly,
84 if ( $expire ===
null ) {
86 } elseif ( $expire == 0 && $wgCookieExpiration != 0 ) {
87 $expire = time() + $wgCookieExpiration;
90 $func =
$options[
'raw'] ?
'setrawcookie' :
'setcookie';
94 $func .
': "' . implode(
'", "',
104 call_user_func( $func,
130 public function header( $string, $replace =
true, $http_response_code =
null ) {
131 if ( substr( $string, 0, 5 ) ==
'HTTP/' ) {
132 $parts = explode(
' ', $string, 3 );
133 $this->
code = intval( $parts[1] );
135 list( $key, $val ) = array_map(
'trim', explode(
":", $string, 2 ) );
137 $key = strtoupper( $key );
139 if ( $replace || !isset( $this->
headers[$key] ) ) {
144 if ( $http_response_code !==
null ) {
145 $this->
code = intval( $http_response_code );
154 $key = strtoupper( $key );
156 if ( isset( $this->
headers[$key] ) ) {
it sets a lot of them automatically from cookies
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
wfDebugLog( $logGroup, $text, $dest='all')
Send a line to a supplementary debug log file, if configured, or main debug log if not.
if( $wgRCFilterByAge) if( $wgSkipSkin) if( $wgLocalInterwiki) if( $wgSharedPrefix===false) if(! $wgCookiePrefix) $wgCookiePrefix
header( $string, $replace=true, $http_response_code=null)
Output a HTTP header, wrapper for PHP's header()
setcookie( $name, $value, $expire=0, $options=null)
Set the browser cookie.
header( $string, $replace=true, $http_response_code=null)
Stores a HTTP header.
wfRunHooks( $event, array $args=array(), $deprecatedVersion=null)
Call hook functions defined in $wgHooks.
the array() calling protocol came about after MediaWiki 1.4rc1.
List of Api Query prop modules.
when a variable name is used in a it is silently declared as a new masking the global
deferred txt A few of the database updates required by various functions here can be deferred until after the result page is displayed to the user For updating the view updating the linked to tables after a etc PHP does not yet have any way to tell the server to actually return and disconnect while still running these but it might have such a feature in the future We handle these by creating a deferred update object and putting those objects on a global list
null means default in associative array with keys and values unescaped Should be merged with default with a value of false meaning to suppress the attribute in associative array with keys and values unescaped & $options
Allows to change the fields on the form that will be generated $name
getStatusCode()
Get the HTTP response code, null if not set.
setcookie( $name, $value, $expire=0, $options=null)
and how to run hooks for an and one after Each event has a preferably in CamelCase For ArticleDelete hook A clump of code and data that should be run when an event happens This can be either a function and a chunk of or an object and a method hook function The function part of a third party developers and administrators to define code that will be run at certain points in the mainline code
Allow programs to request this object from WebRequest::response() and handle all outputting (or lack ...
design txt This is a brief overview of the new design More thorough and up to date information is available on the documentation wiki at etc Handles the details of getting and saving to the user table of the and dealing with sessions and cookies OutputPage Encapsulates the entire HTML page that will be sent in response to any server request It is used by calling its functions to add headers