$squashweb->set_root($basedir);
-if (@$_GET['f'] || @$_GET['d'] || @$_GET['show_all']==true || @$_GET['tools']=='hide' || @$_GET['tools']=='unhide' || @$_GET['tools']=='delete') {
+if (@$_GET['f'] || @$_GET['tools']=='hide' || @$_GET['tools']=='unhide' || @$_GET['tools']=='delete') {
$getdeepfiles=true;
$populate=false;
} else {
//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) {