X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=http.php;h=efc08daf20fe48df497f24fa363c4d8c796200bc;hb=6efe0372c5d3b2db723ada811917b6a52f13130b;hp=c38f97d8ee2e64b03203a02b13298d83f9de3a8e;hpb=68b1b4aa2b9362df65a2f57d06634aedd85aa65d;p=wfpl.git diff --git a/http.php b/http.php index c38f97d..efc08da 100644 --- a/http.php +++ b/http.php @@ -48,4 +48,11 @@ function this_url() { return $url; } +function redirect($url, $status = '302 Moved Temporarily', $message = '') { + header("HTTP/1.1 $status"); + header("Location: $url"); + echo($message); + exit(); +} + ?>