Removed the unused streaming functions/templates
[squasher.git] / squasher.php
index 6550bd45f54d57ad96f08c573a756acd48c56df6..1eb6ef4bca1aedb78be395a67eb3381a5e565e55 100644 (file)
@@ -62,27 +62,15 @@ if (@$_GET['f']) {
        //get the config of requested file
        $request = $squashweb->get_config($_GET['f']);
 
-       //------------------------------------
-       //-check-file-and-request-type--start-
-       //------------------------------------
-       if (strpos($request['mime'],'ideo') && isset($_GET['d'])) { //embed video
-               $squashweb->embed_video($_GET['f']);
-       }
-       elseif (strpos($request['mime'],'ideo') && isset($_GET['x'])) { //show stream playlist
-               $squashweb->create_playlist($_GET['f'],$_GET['x'],$request[2]);
-       }
-       else {  //show requested file
-       #       header('Cache-control: private');
-               header('Content-Disposition: attachment; filename="'.$request[2].'"');
-               header("Content-Type: ".$request['mime']);
-               if ($request[3])header('Content-Length: '.$request[3]);
-               #@ob_flush();
-               @flush();
-               $squashweb->print_files($request['path'], $request[2]);
-       }
-       //---------------------------------
-       //-check-file-and-request-type-end-
-       //---------------------------------
+       //show requested file
+       #header('Cache-control: private');
+       header('Content-Disposition: attachment; filename="'.$request[2].'"');
+       header("Content-Type: ".$request['mime']);
+       if ($request[3])
+               header('Content-Length: '.$request[3]);
+       #@ob_flush();
+       @flush();
+       $squashweb->print_files($request['path'], $request[2]);
 
 } elseif (@$_GET['tools']=="hide" && @$_GET['h']) {
        if ($_SESSION['creds']['user_level'] > 99) {