40 lines
820 B
PHP
40 lines
820 B
PHP
<?php
|
|
if (!defined('BASEPATH')) exit('No direct script access allowed');
|
|
|
|
/**
|
|
* AMS
|
|
*
|
|
* @package HMVC
|
|
* @author Venba
|
|
* @copyright 2022 Venba
|
|
* @license https://venbainfotech.com/licenses/MIT MIT License
|
|
* @link <URI> (description)
|
|
* @version GIT: $Id$
|
|
* @since Version 0.0.1
|
|
* @filesource
|
|
*
|
|
*/
|
|
|
|
/**
|
|
* Class Admin_Controller
|
|
*/
|
|
class Admin_Controller extends MY_Controller
|
|
{
|
|
public function __construct()
|
|
{
|
|
parent::__construct();
|
|
if(!check_auth())
|
|
{
|
|
redirect('login');
|
|
}
|
|
$global_data['settings'] = $this->auth_model->get_settings();
|
|
$global_data['business'] = $this->auth_model->get_business(0);
|
|
$this->load->vars($global_data);
|
|
$this->load->library('user_agent');
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|