37 public function header( $string, $replace =
true, $http_response_code =
null ) {
38 if (
substr( $string, 0, 5 ) ==
'HTTP/' ) {
39 $parts = explode(
' ', $string, 3 );
40 $this->code =
intval( $parts[1] );
42 list( $key, $val ) =
array_map(
'trim', explode(
":", $string, 2 ) );
46 if ( $replace || !
isset( $this->headers[$key] ) ) {
47 $this->headers[$key] =
$val;
51 if ( $http_response_code !==
null ) {
52 $this->code =
intval( $http_response_code );
75 return $this->headers[$key] ??
null;
108 if ( $expire ===
null ) {
118 'domain' => (
string)
$options[
'domain'],
120 'httpOnly' => (
bool)
$options[
'httpOnly'],
130 if (
isset( $this->cookies[$name] ) ) {
131 return $this->cookies[
$name][
'value'];
141 return $this->cookies[
$name] ??
null;
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
$wgCookieExpiration
Default cookie lifetime, in seconds.
$wgCookieHttpOnly
Set authentication cookies to HttpOnly to prevent access by JavaScript, in browsers that support this...
$wgCookiePath
Set this variable if you want to restrict cookies to a certain path within the domain specified by $w...
$wgCookieDomain
Set to set an explicit domain on the login cookies eg, "justthis.domain.org" or "....
$wgCookieSecure
Whether the "secure" flag should be set on the cookie.
$wgCookiePrefix
Cookies generated by MediaWiki have names starting with this prefix.
header( $string, $replace=true, $http_response_code=null)
Stores a HTTP header.
setCookie( $name, $value, $expire=0, $options=[])
getStatusCode()
Get the HTTP response code, null if not set.
headersSent()
Test if headers have been sent.
Allow programs to request this object from WebRequest::response() and handle all outputting (or lack ...
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
This code would result in ircNotify being run twice when an article is and once for brion Hooks can return three possible true was required This is the default since MediaWiki *some string
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