From: Petr Skoda Date: Wed, 23 Dec 2009 18:50:06 +0000 (+0000) Subject: MDL-20787 removing obsolete smartpix redirect code X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=ea4e78782ff60d80c418810b57e6cdb94a16eb31;p=moodle.git MDL-20787 removing obsolete smartpix redirect code --- diff --git a/pix/redirect.php b/pix/redirect.php deleted file mode 100644 index 934b2933d4..0000000000 --- a/pix/redirect.php +++ /dev/null @@ -1,40 +0,0 @@ - - ErrorDocument 404 /moodle/pix/redirect.php - - -**/ - - -require_once('../config.php'); - -// obtain the requested path. -if (!array_key_exists('REDIRECT_STATUS',$_SERVER) || $_SERVER['REDIRECT_STATUS'] != 404) { - die(); -} - -$matches = array(); - -if (!preg_match('/theme\/[^\/]*\/pix\/(.*)$/',$_SERVER['REDIRECT_URL'],$matches)) { - die(); -} - -if (file_exists($CFG->dirroot.'/pix/'.$matches[1])) { - header("Location: ".$CFG->wwwroot.'/pix/'.$matches[1]); -} - -?> - - -404 Not Found - - -

Picture not found

-

- -