From: Cindy Li Date: Fri, 8 Oct 2010 14:22:46 +0000 (-0000) Subject: 1. when download zip file, push down the download in chunks; X-Git-Tag: v1.1~21 X-Git-Url: https://iam.tj/gitweb/gitweb.cgi?p=acontent.git;a=commitdiff_plain;h=76b10cdebde703cc2e96e3572a04eb3c8a328adf 1. when download zip file, push down the download in chunks; 2. upgrade flowplayer; 3. in get.php, skip "Content-length" for mp3 & mp4 files. --- diff --git a/docs/get.php b/docs/get.php index cae0a00..24d3c99 100644 --- a/docs/get.php +++ b/docs/get.php @@ -119,7 +119,11 @@ if (file_exists($real) && (substr($real, 0, strlen(TR_CONTENT_DIR)) == TR_CONTEN header('x-Sendfile: ', TRUE); // if we get here then it didn't work header('Content-Type: '.$ext); - header('Content-length: '.filesize($real)); + //a hack for http://atutor.ca/atutor/mantis/view.php?id=4531 + //@harris + if ($pathinfo['extension']=='mp3' || $pathinfo['extension']=='mp4') { + header('Content-length: '.filesize($real)); + } @readfile($real); exit; diff --git a/docs/home/classes/ContentUtility.class.php b/docs/home/classes/ContentUtility.class.php index d66500e..112b733 100644 --- a/docs/home/classes/ContentUtility.class.php +++ b/docs/home/classes/ContentUtility.class.php @@ -187,7 +187,7 @@ class ContentUtility { { $text .= ' - + custom_css; ?>