|
|
|
@ -22,11 +22,13 @@ class Cache extends CI_Controller
|
|
|
|
|
function __construct()
|
|
|
|
|
{
|
|
|
|
|
parent::__construct();
|
|
|
|
|
if (!$this->input->get('site_code')) {
|
|
|
|
|
$this->permission->is_admin();
|
|
|
|
|
}
|
|
|
|
|
$this->load->model('Area_model');
|
|
|
|
|
$this->load->model('InfoStructures_model');
|
|
|
|
|
$this->load->model('Information_model');
|
|
|
|
|
$this->site_code = $this->input->get('site_code') || $this->config->item('site_code');
|
|
|
|
|
$this->site_code = $this->input->get('site_code') ? $this->input->get('site_code') : $this->config->item('site_code');
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
@ -68,7 +70,10 @@ class Cache extends CI_Controller
|
|
|
|
|
$data['post_para'] = $this->post_para;
|
|
|
|
|
|
|
|
|
|
if ($returnType === 'json') {
|
|
|
|
|
echo (json_encode($this->file));
|
|
|
|
|
//print_r($cache_config[$this->site_code]);
|
|
|
|
|
//echo('json');
|
|
|
|
|
//print_r($data['file']);
|
|
|
|
|
echo (json_encode($data['file']));
|
|
|
|
|
} else {
|
|
|
|
|
//视图
|
|
|
|
|
$this->load->view('cache/update', $data);
|
|
|
|
@ -155,7 +160,11 @@ class Cache extends CI_Controller
|
|
|
|
|
$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"));
|
|
|
|
|
$file[] = $url_temp;
|
|
|
|
|
|
|
|
|
|
$encode = mb_detect_encoding($url_temp, array('ASCII', 'GBK', 'ISO-8859-1', 'UTF-8'));
|
|
|
|
|
$_url_temp = mb_convert_encoding($url_temp, 'UTF8', $encode);
|
|
|
|
|
|
|
|
|
|
$file[] = $_url_temp;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|