|
|
|
@ -151,9 +151,11 @@ class Cache extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')===false) && (strpos($dir, '/amp/')===false) && (strpos($f, '.pdf')===false))
|
|
|
|
|
{
|
|
|
|
|
$encode = mb_detect_encoding($f, array("ASCII",'UTF-8',"GB2312","GBK",'BIG5'));
|
|
|
|
|
$_f = mb_convert_encoding ($f, 'UTF-8', 'GBK');
|
|
|
|
|
$_dir = mb_convert_encoding ($dir, 'UTF-8', 'GBK');
|
|
|
|
|
$encode_f = mb_detect_encoding($f, array('ASCII','UTF-8','GB2312','GBK','BIG5'));
|
|
|
|
|
$_f = mb_convert_encoding ($f, 'UTF-8', $encode_f);
|
|
|
|
|
$encode_d = mb_detect_encoding($dir, array('ASCII','UTF-8','GB2312','GBK','BIG5'));
|
|
|
|
|
$_dir = mb_convert_encoding ($dir, 'UTF-8', $encode_d);
|
|
|
|
|
echo($encode_f.'@@@'.$encode_d);
|
|
|
|
|
|
|
|
|
|
$file_temp = str_replace('/index.htm###', '', $_f.'###');
|
|
|
|
|
$file_temp = str_replace('###', '', $file_temp);
|
|
|
|
|