input['entry']; $ok=@fileperms($entry); if(!$ok) { $std->print_error('No permission to view '.$entry); exit; } $len = @filesize($entry); $short_name=basename($entry); //show it header('Content-Disposition: inline; filename='.$short_name); if(function_exists('mime_content_type')) header('Content-type: '.mime_content_type($entry)); header('Content-Length: '.$len); readfile($entry); } }//of class $sh=new show; ?>