public function index() { if (!file_exists('md5.txt')) { write_file('md5.txt', json_encode($this->update->parse_md5())); } if (extension_loaded('soap')) { $array = $this->update->getStatus(); } if ($array) { $data = array('build' => $array['build_id'], 'date' => date("Y-m-d", $array['time']), 'size' => number_format($array['size'] / 1024 / 1024, 3), 'newRelise' => TRUE); } else { $data = array('newRelise' => FALSE); } $this->template->show('sys_update_info', FALSE, $data); }