phpfm
phpfm copied to clipboard
System charset fix [1.7.8]
file list will cause problem under chinese windows system.
fix: line 1836 change "ISO-8859-1" to "GB2312"
中文系统下,文件目录错误。 1836行,将 ISO-8859-1改为 GB2312 即可
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>
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);