From df71bfb49ca95a610081a8fa58d8abd28e8452d1 Mon Sep 17 00:00:00 2001 From: moodler Date: Tue, 11 Apr 2006 07:53:59 +0000 Subject: [PATCH] MOved/cleaned fixpix.php to pix/redirect.php --- fixpix.php => pix/redirect.php | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) rename fixpix.php => pix/redirect.php (73%) 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

+

+ + -- 2.39.5