Newer
Older
Import / web / www.xiaofrog.com / wiki / includes / WebResponse.php
@John Ryland John Ryland on 22 Dec 2020 495 bytes import NUC files
<?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);
	}
}