重现bug

ct-mobile-first
LMR 5 years ago
parent 0ffbd05e00
commit 6c387a3047

@ -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"));

@ -124,13 +124,16 @@ $(function() {
</tr>
</thead>
<tbody class="data_group">
<?php foreach($file as $key=>$it) { ?>
<?php foreach($file as $key=>$it) {
$encode = mb_detect_encoding($it, array('ASCII','UTF-8','GB2312','GBK','BIG5'));
$_it = mb_convert_encoding($it, 'utf-8', $encode);
?>
<tr class="data">
<td><?php echo($key+1);?></td>
<?php if (strlen($it)>100) { ?>
<td class="file" title="<?php echo($it);?>"><?php echo(substr($it, 0, 40));?>..........<?php echo(substr($it, -35));?></td>
<?php if (strlen($_it)>100) { ?>
<td class="file" title="<?php echo($_it);?>"><?php echo(substr($_it, 0, 40));?>..........<?php echo(substr($_it, -35));?></td>
<?php } else { ?>
<td class="file" title="<?php echo($it);?>"><?php echo($it);?></td>
<td class="file" title="<?php echo($_it);?>"><?php echo($_it);?></td>
<?php } ?>
<td><?php echo($file_time[$it]); ?></td>
<td class="msg_wait">无操作</td>

Loading…
Cancel
Save