|
|
|
@ -391,19 +391,19 @@ class Information extends CI_Controller {
|
|
|
|
|
$ic_url = $this->input->post('ic_url');
|
|
|
|
|
$auto_update_cache = $this->input->get_post('auto_update_cache_checkbox');
|
|
|
|
|
if ($site_code == 'gm' && substr($ic_url, 0, 5) == '/faq/') {
|
|
|
|
|
$update_api_url = $this->update_cache($ic_url, true);
|
|
|
|
|
$update_info_log = $this->update_cache($ic_url, true);
|
|
|
|
|
} else if (strcasecmp($site_code, "cht") == 0 && !empty($auto_update_cache)) {
|
|
|
|
|
$update_api_url = $this->update_cache($ic_url);
|
|
|
|
|
$update_info_log = $this->update_cache($ic_url);
|
|
|
|
|
} else if (strcasecmp($site_code, "cht") != 0) {
|
|
|
|
|
$update_api_url = $this->update_cache($ic_url);
|
|
|
|
|
$update_info_log = $this->update_cache($ic_url);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (empty($update_api_url) || count($update_api_url)==0 || !isset($update_api_url[0]['url']))
|
|
|
|
|
if (empty($update_info_log) || count($update_info_log)==0 || !isset($update_info_log[0]['url']))
|
|
|
|
|
{
|
|
|
|
|
$update_api_url = 'not found url';
|
|
|
|
|
$update_info_log = 'not found update info log';
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'), 'update_api_url' => $update_api_url);
|
|
|
|
|
$data[] = array('name' => 'ok', 'value' => $this->lang->line('form_info_success'), 'update_info_log' => $update_info_log);
|
|
|
|
|
$this->Logs_model->backup($information->is_id, $this->input->post('ic_content'));
|
|
|
|
|
$this->Logs_model->backup_summary($information->is_id, $this->input->post('ic_summary'));
|
|
|
|
|
|
|
|
|
|