From ea4e78782ff60d80c418810b57e6cdb94a16eb31 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Wed, 23 Dec 2009 18:50:06 +0000 Subject: [PATCH] MDL-20787 removing obsolete smartpix redirect code --- pix/redirect.php | 40 ---------------------------------------- 1 file changed, 40 deletions(-) delete mode 100644 pix/redirect.php 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

-

- - -- 2.39.5