blob: 05023e1590ec8dea7eabf8c92b12a720375970d8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<?php
/**
* Allow programs to request this object from WebRequest::response()
* and handle all outputting (or lack of outputting) via it.
*/
class WebResponse {
/** Output a HTTP header */
function header($string, $replace=true) {
header($string,$replace);
}
/** Set the browser cookie */
function setcookie($name, $value, $expire) {
global $wgCookiePath, $wgCookieDomain, $wgCookieSecure;
setcookie($name,$value,$expire, $wgCookiePath, $wgCookieDomain, $wgCookieSecure);
}
}
|