dulldusk / phpfm

phpFileManager is a complete filesystem management tool on a single file. This is a tool meant for rapid file access, and also to verify the server php configuration and security. The script can be renamed and deployed on an unique known url, and offers password protection.
https://sourceforge.net/projects/phpfm/
Other
212 stars 98 forks source link

System charset fix [1.7.8] #42

Open xtr3mz opened 4 years ago

xtr3mz commented 4 years ago

file list will cause problem under chinese windows system.

fix: line 1836 change "ISO-8859-1" to "GB2312"

中文系统下,文件目录错误。 1836行,将 ISO-8859-1改为 GB2312 即可

xtr3mz commented 4 years ago

btw, you can change codes below, using html5

<!DOCTYPE HTML PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"//www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\"> <html xmlns=\"//www.w3.org/1999/xhtml\">

to <!DOCTYPE HTML> <html>

and

<script language=\"Javascript\" type=\"text/javascript\"> to <script>

xtr3mz commented 4 years ago

line 830: better with try catch, this won't throw error

                try{
                    $ref = $obj->getfolder($path);
                    $total_size = intval($ref->size);
                }catch(Exception $e){
                    $total_size = "0";
                }
                $obj = null;
                unset($obj);