[Phpfreechat-svn] SF.net SVN: phpfreechat: [834] trunk/src/client/proxy.php.tpl
Status: Beta
Brought to you by:
kerphi
From: <ke...@us...> - 2006-10-17 07:44:50
|
Revision: 834 http://svn.sourceforge.net/phpfreechat/?rev=834&view=rev Author: kerphi Date: 2006-10-17 00:44:45 -0700 (Tue, 17 Oct 2006) Log Message: ----------- [en] Fix some missing content types in the proxy.php.tpl file. (thanks to bcc) [15min] [fr] Ajout de plusieurs types de fichiers manquants dans le fichier proxy.php.tpl (merci ?\195?\160 bcc) [15min] Modified Paths: -------------- trunk/src/client/proxy.php.tpl Modified: trunk/src/client/proxy.php.tpl =================================================================== --- trunk/src/client/proxy.php.tpl 2006-10-16 18:00:41 UTC (rev 833) +++ trunk/src/client/proxy.php.tpl 2006-10-17 07:44:45 UTC (rev 834) @@ -44,10 +44,18 @@ // output HTTP headers $contenttype = "text/plain"; //$contentlength = filesize($file); -if (preg_match("/.js$/", $file)) +if (preg_match("/\.js$/", $file)) $contenttype = "text/javascript"; -else if (preg_match("/.css$/", $file)) +else if (preg_match("/\.css$/", $file)) $contenttype = "text/css"; +else if (preg_match("/\.gif$/", $file)) + $contenttype = "image/gif"; +else if (preg_match("/\.jpg$/", $file)) + $contenttype = "image/jpeg"; +else if (preg_match("/\.jpeg$/", $file)) + $contenttype = "image/jpeg"; +else if (preg_match("/\.png$/", $file)) + $contenttype = "image/png"; header("Content-Type: ".$contenttype); $contentlength = ob_get_length(); header("Content-Length: ".$contentlength); @@ -57,4 +65,4 @@ ob_end_flush(); ob_start(); -?> \ No newline at end of file +?> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |