wiki.techinc.nl/includes/WebResponse.php
Siebrand Mazeland 79d5225c0e * remove end of line whitespace
* remove empty lines at end of file
* remove "?>" where still present
2008-04-14 07:45:50 +00:00

18 lines
493 B
PHP

<?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);
}
}