[ Index ] |
PHP Cross Reference of phpwcms V1.4.3 _r380 (23.11.09) |
[Summary view] [Print] [Text view]
1 <?php 2 3 $phpwcms = array(); 4 5 $path = dirname(dirname(realpath(dirname(__FILE__)))); 6 7 require_once ($path . '/config/phpwcms/conf.inc.php'); 8 require_once ($path . '/include/inc_lib/default.inc.php'); 9 10 // this example assumes your FLV files are in the "upload" directory of your website: 11 $file = trim($_GET['file']); 12 13 if(strlen($file) < 40) { 14 15 $file = PHPWCMS_ROOT.'/'.PHPWCMS_FILES. basename($file); 16 17 if(is_file($file)) { 18 19 $mime = substr(trim($_GET['type']), 0, 30); 20 //$pos = (isset($_GET["pos"])) ? intval($_GET["pos"]) : 0; 21 22 if($mime) { 23 header('Content-Type: ' . $mime); 24 } 25 header('Content-Length: ' . filesize($file)); 26 27 /* 28 if($pos > 0) { 29 print("FLV"); 30 print(pack('C',1)); 31 print(pack('C',1)); 32 print(pack('N',9)); 33 print(pack('N',9)); 34 } 35 36 $fh = fopen($file,"rb"); 37 fseek($fh, $pos); 38 fpassthru($fh); 39 fclose($fh); 40 41 */ 42 43 @readfile($file); 44 45 } 46 } else { 47 48 echo ''; 49 50 } 51 52 53 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Dec 30 05:55:15 2009 | Cross-referenced by PHPXref 0.7 |