Home::test()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 2
nop 0
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php defined('BASEPATH') OR exit('No direct script access allowed');
2
3
class Home extends My_Force_Login {
4
    
5
    public function __construct() {
6
	parent::__construct();
7
        
8
    }
9
    
10
    public function index() {
11
12
        $this->load->view('templates/header');
13
        $this->load->view('view');
14
        $this->load->view('templates/footer');
15
    }
16
    public function test() {
17
        
18
        if (in_array('CN=Dashboard_Admin,OU=Dashboard_Group,OU=Intranet_Group,OU=Groups,DC=cant-col,DC=ac,DC=uk', $_SESSION['ldap']['groups'])) {
19
20
            $this->load->view('templates/header');
21
            $this->load->view('test');
22
            $this->load->view('templates/footer');
23
        }
24
    }
25
} // END controller
26