Home   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 23
rs 10
c 0
b 0
f 0
wmc 4
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A index() 0 6 1
A test() 0 9 2
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