/** * Constructor * * @access public * @category Constructor * @package Open-AudIT * @author Mark Unwin <*****@*****.**> * @license http://www.gnu.org/licenses/agpl-3.0.html aGPL v3 * @link http://www.open-audit.org * @return Admin */ public function __construct() { parent::__construct(); $this->load->model('m_system'); // No need for user to be logged in // Have to be able to submit systems via the audit script $this->data['title'] = 'Open-AudIT'; $this->load->library('session'); // log the attempt $this->load->helper('log'); $log_details = new stdClass(); $log_details->severity = 6; stdlog($log_details); unset($log_details); $this->load->helper('report_helper'); check_default_reports(); $this->load->helper('group_helper'); check_default_groups(); $this->load->model('m_oa_config'); $this->m_oa_config->load_config(); }
public function __construct() { parent::__construct(); $this->load->library('session'); $this->load->helper('url'); $this->load->helper('form'); $this->load->helper('log'); $this->load->model('m_oa_config'); $this->m_oa_config->load_config(); $this->load->helper('report_helper'); check_default_reports(); $this->load->helper('group_helper'); if ($this->config->config['internal_version'] >= '20160620') { check_default_groups(); } // log the attempt $log_details = new stdClass(); $log_details->severity = 6; stdlog($log_details); unset($log_details); }
public function __construct() { parent::__construct(); // must be an admin to access this page $this->load->model('m_oa_user'); $this->m_oa_user->validate_user(); if ($this->user->admin != 'y') { if (isset($_SERVER['HTTP_REFERER']) and $_SERVER['HTTP_REFERER'] > "") { redirect($_SERVER['HTTP_REFERER']); } else { redirect('main/list_groups'); } } $this->load->helper('log'); // log the attempt $log_details = new stdClass(); $log_details->severity = 6; stdlog($log_details); unset($log_details); $this->load->helper('report_helper'); check_default_reports(); $this->load->helper('group_helper'); check_default_groups(); }
public function __construct() { parent::__construct(); $this->data['title'] = 'Open-AudIT'; $this->load->helper('url'); $this->load->helper('network'); $this->load->helper('ssh'); $this->load->helper('wmi'); $this->load->library('session'); $this->load->model('m_system'); $this->load->model('m_oa_config'); $this->m_oa_config->load_config(); $timestamp = $this->config->config['timestamp']; // log the attempt $this->load->helper('log'); $log_details = new stdClass(); $log_details->severity = 6; stdlog($log_details); unset($log_details); $this->load->helper('report_helper'); check_default_reports(); $this->load->helper('group_helper'); check_default_groups(); }
public function list_reports() { $this->load->helper('report_helper'); check_default_reports(); $this->load->helper('group_helper'); check_default_groups(); $this->load->model("m_oa_report"); echo json_encode($this->m_oa_report->list_reports_in_menu()); }