|
|
|
|
@ -151,15 +151,9 @@ class Cache extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
if ($f!='.' && $f!='..' && (strpos($dir, '/cn/')===false) && (strpos($dir, '/amp/')===false) && (strpos($f, '.pdf')===false))
|
|
|
|
|
{
|
|
|
|
|
$encode_f = mb_detect_encoding($f);
|
|
|
|
|
$_f = mb_convert_encoding ($f, 'UTF-8', $encode_f);
|
|
|
|
|
$encode_d = mb_detect_encoding($dir);
|
|
|
|
|
$_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('/index.htm###', '', $f.'###');
|
|
|
|
|
$file_temp = str_replace('###', '', $file_temp);
|
|
|
|
|
$path_temp = str_replace($this->dir, '', $_dir);
|
|
|
|
|
$path_temp = str_replace($this->dir, '', $dir);
|
|
|
|
|
$url_temp = $this->current_domain.$path_temp.'/'.$file_temp;
|
|
|
|
|
$url_temp = str_replace('index.htm', '', $url_temp);
|
|
|
|
|
$file_time[$url_temp] = date("F d Y H:i:s", filemtime("$dir/$f"));
|
|
|
|
|
|