summaryrefslogtreecommitdiff
path: root/includes/WebResponse.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/WebResponse.php')
-rw-r--r--includes/WebResponse.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/includes/WebResponse.php b/includes/WebResponse.php
new file mode 100644
index 00000000..e159152e
--- /dev/null
+++ b/includes/WebResponse.php
@@ -0,0 +1,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);
+ }
+}
+
+?> \ No newline at end of file