public function reboot() { $cr = 0; $this->load->helper('zimapi'); $cr = ZimAPI_reboot(); $this->_return_cr($cr); return; }
public function rebooting() { $this->load->library('parser'); $this->load->helper(array('zimapi', 'corestatus')); $this->lang->load('manage/reboot', $this->config->item('language')); $template_data = array('hint' => t('hint'), 'tromboning' => CoreStatus_checkTromboning() ? "true" : "false"); if (ERROR_OK != ZimAPI_reboot()) { $this->output->set_header('Location: /manage'); return; } $this->_parseBaseTemplate(t('title_reboot'), $this->parser->parse('manage/rebooting', $template_data, TRUE)); return; }