JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
major updates to db.php, added session.php, run.php uses file_run.php
[wfpl.git] / http.php
index c38f97d..efc08da 100644 (file)
--- 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();
+}
+
 ?>