mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-06 23:56:36 +02:00
Fix warning message
This commit is contained in:
parent
59c6b9b26a
commit
fce0f5bacb
|
@ -1,6 +1,6 @@
|
|||
<?php
|
||||
//Default Configuration
|
||||
$CONFIG = '{"lang":"en","error_reporting":false,"show_hidden":false,"hide_Cols":false,"calc_folder":false,"theme":"light"}';
|
||||
$CONFIG = '{"lang":"en","error_reporting":true,"show_hidden":false,"hide_Cols":false,"calc_folder":false,"theme":"light"}';
|
||||
|
||||
|
||||
/**
|
||||
|
@ -68,10 +68,6 @@ $root_url = '';
|
|||
// Server hostname. Can set manually if wrong
|
||||
$http_host = $_SERVER['HTTP_HOST'];
|
||||
|
||||
// user specific directories
|
||||
// array('Username' => 'Directory path', 'Username2' => 'Directory path', ...)
|
||||
$directories_users = array();
|
||||
|
||||
// input encoding for iconv
|
||||
$iconv_input_encoding = 'UTF-8';
|
||||
|
||||
|
@ -2151,9 +2147,9 @@ $tableTheme = (FM_THEME == "dark") ? "text-white bg-dark table-dark" : "bg-white
|
|||
<?php echo lng('FullSize').': <span class="badge badge-light">'.fm_get_filesize($all_files_size).'</span>' ?>
|
||||
<?php echo lng('File').': <span class="badge badge-light">'.$num_files.'</span>' ?>
|
||||
<?php echo lng('Folder').': <span class="badge badge-light">'.$num_folders.'</span>' ?>
|
||||
<?php if (function_exists('disk_free_space') && function_exists('disk_total_space')) { ?>
|
||||
<!-- <?php if (function_exists('disk_free_space') && function_exists('disk_total_space')) { ?>
|
||||
<?php echo lng('PartitionSize').': <span class="badge badge-light">'.fm_get_filesize(@disk_free_space($path)) .'</span> '.lng('FreeOf').' <span class="badge badge-light">'.fm_get_filesize(@disk_total_space($path)).'</span>'; ?>
|
||||
<?php } ?>
|
||||
<?php } ?> -->
|
||||
</td>
|
||||
</tr>
|
||||
</tfoot>
|
||||
|
@ -3113,7 +3109,7 @@ function fm_download_file($fileLocation, $fileName, $chunkSize = 1024)
|
|||
|
||||
fseek($fp, $range);
|
||||
|
||||
while (!feof($fp) and (connection_status() == 0)) {
|
||||
while (!@feof($fp) and (connection_status() == 0)) {
|
||||
set_time_limit(0);
|
||||
print(@fread($fp, 1024*$chunkSize));
|
||||
flush();
|
||||
|
|
Loading…
Reference in a new issue