function saveAnnouncement() { $announcement = $this->input->post('announcement'); $is_show = $this->input->post('is_show'); $this->db->query("UPDATE " . TBL_CONFIG . " SET f_value='" . mysql_real_escape_string($announcement) . "', value='" . intval($is_show) . "' \n\t\t\t\t\t\t\tWHERE name LIKE 'ANNOUNCEMENT' AND f_key LIKE 'content' "); echo 'ok'; getGlobalConfig(); $this->session->set_flashdata('success', lang('templates.tmpl_save_success')); exit; }
function reloadConfig() { getGlobalConfig(); var_dump($GLOBALS['global']); }