blob: e159152e4084445050e54a5e9b1844d9c5adf32a (
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 {
function header($string, $replace=true) {
header($string,$replace);
}
function setcookie($name, $value, $expire) {
global $wgCookiePath, $wgCookieDomain, $wgCookieSecure;
setcookie($name,$value,$expire, $wgCookiePath, $wgCookieDomain, $wgCookieSecure);
}
}
?>
|