From 76b10cdebde703cc2e96e3572a04eb3c8a328adf Mon Sep 17 00:00:00 2001 From: Cindy Li Date: Fri, 8 Oct 2010 14:22:46 +0000 Subject: [PATCH] 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. --- docs/get.php | 6 +++- docs/home/classes/ContentUtility.class.php | 2 +- docs/images/audio_alternative.png | Bin 3474 -> 3903 bytes docs/images/sign_lang_alternative.png | Bin 799 -> 3927 bytes docs/images/text_alternative.png | Bin 861 -> 3358 bytes docs/images/visual_alternative.png | Bin 3535 -> 3264 bytes docs/include/classes/FileUtility.class.php | 28 ++++++++++++++++++ docs/include/classes/zipfile.class.php | 4 +-- .../flowplayer/flowplayer-3.1.2.min.js | 24 --------------- .../jscripts/flowplayer/flowplayer-3.1.2.swf | Bin 107779 -> 0 bytes .../flowplayer/flowplayer-3.2.4.min.js | 24 +++++++++++++++ .../jscripts/flowplayer/flowplayer-3.2.5.swf | Bin 0 -> 118914 bytes .../flowplayer/flowplayer.controls-3.1.2.swf | Bin 26349 -> 0 bytes .../flowplayer/flowplayer.controls-3.2.3.swf | Bin 0 -> 35926 bytes docs/themes/default/include/header.tmpl.php | 2 +- 15 files changed, 61 insertions(+), 29 deletions(-) delete mode 100644 docs/include/jscripts/flowplayer/flowplayer-3.1.2.min.js delete mode 100644 docs/include/jscripts/flowplayer/flowplayer-3.1.2.swf create mode 100644 docs/include/jscripts/flowplayer/flowplayer-3.2.4.min.js create mode 100644 docs/include/jscripts/flowplayer/flowplayer-3.2.5.swf delete mode 100644 docs/include/jscripts/flowplayer/flowplayer.controls-3.1.2.swf create mode 100644 docs/include/jscripts/flowplayer/flowplayer.controls-3.2.3.swf 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; ?> -- 2.17.1