From: moodler Date: Tue, 11 Apr 2006 07:53:59 +0000 (+0000) Subject: MOved/cleaned fixpix.php to pix/redirect.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=df71bfb49ca95a610081a8fa58d8abd28e8452d1;p=moodle.git MOved/cleaned fixpix.php to pix/redirect.php --- diff --git a/fixpix.php b/pix/redirect.php similarity index 73% rename from fixpix.php rename to pix/redirect.php index 01fd7d3a29..80b7badeef 100644 --- a/fixpix.php +++ b/pix/redirect.php @@ -1,17 +1,17 @@ - - ErrorDocument 404 /moodle/fixpix.php + ErrorDocument 404 /moodle/pix/redirect.php **/ -require_once('config.php'); +require_once('../config.php'); // obtain the requested path. if (!array_key_exists('REDIRECT_STATUS',$_SERVER) || $_SERVER['REDIRECT_STATUS'] != 404) { @@ -28,12 +28,13 @@ if (file_exists($CFG->dirroot.'/pix/'.$matches[1])) { header("Location: ".$CFG->wwwroot.'/pix/'.$matches[1]); } -?> +?> - -404 Not Found - -

Not Found

-

-
- \ No newline at end of file + +404 Not Found + + +

Picture not found

+

+ +