. */ include ('./application/libraries/Gvv_Controller.php'); class Dbchecks extends Gvv_Controller { protected $model = 'dbchecks_model'; function __construct() { date_default_timezone_set('Europe/Paris'); parent::__construct(); // Check if user is logged in or not $this->load->library('DX_Auth'); // if (!getenv('TEST') && !$this->dx_auth->is_logged_in()) { // redirect("auth/login"); // } } function index() { $dt = $this->gvv_model->unreferenced_accounts(); $data ['wrong_lines'] = $dt['lines']; $data ['wrong_accounts'] = $dt['accounts']; $data ['wrong_purchases'] = $dt['bad_purchase_lines']; load_last_view('checks/dbchecks', $data); } function volsp() { $dt = $this->gvv_model->volsp_references(); $dt['title'] = "Vols planeur"; load_last_view('checks/volsp', $dt); } function volsa() { $dt = $this->gvv_model->volsa_references(); $dt['title'] = "Vols avion/ULM"; load_last_view('checks/volsp', $dt); } function achats() { $dt = $this->gvv_model->achats_references(); $dt['title'] = "Achats"; load_last_view('checks/achats', $dt); } } /* End of file tests.php */ /* Location: ./application/controllers/tests.php */