summaryrefslogtreecommitdiff
path: root/includes/WebResponse.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
committerPierre Schmitz <pierre@archlinux.de>2006-10-11 20:21:25 +0000
commitd81f562b712f2387fa02290bf2ca86392ab356f2 (patch)
treed666cdefbe6ac320827a2c6cb473581b46e22c4c /includes/WebResponse.php
parent183851b06bd6c52f3cae5375f433da720d410447 (diff)
Aktualisierung auf Version 1.8.1
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