Code Duplication    Length = 11-14 lines in 5 locations

web_interface/astpp/application/modules/email/controllers/email.php 1 location

@@ 27-40 (lines=14) @@
24
25
class Email extends MX_Controller {
26
27
	function Email() {
28
		parent::__construct();
29
30
		$this->load->helper('template_inheritance');
31
32
		$this->load->library('session');
33
		$this->load->library('email_form');
34
		$this->load->library('astpp/form');
35
		$this->load->model('email_model');
36
		$this->load->library('csvreader');
37
	$this->load->library('astpp/email_lib');
38
		if ($this->session->userdata('user_login') == FALSE)
39
			redirect(base_url() . '/astpp/login');
40
	}
41
42
	function email_edit($edit_id = '') {
43
		$data['page_title'] = 'Edit Email List';

web_interface/astpp/application/modules/freeswitch/controllers/freeswitch.php 1 location

@@ 27-40 (lines=14) @@
24
25
class Freeswitch extends MX_Controller {
26
27
	function Freeswitch() {
28
		parent::__construct();
29
30
		$this->load->helper('template_inheritance');
31
32
		$this->load->library('session');
33
		$this->load->library("freeswitch_form");
34
		$this->load->library('astpp/form');
35
		$this->load->library('freeswitch_lib');
36
		$this->load->model('freeswitch_model');
37
38
		if ($this->session->userdata('user_login') == FALSE)
39
			redirect(base_url() . '/astpp/login');
40
	}
41
42
	function fssipdevices_add($type = "") {
43
		$data['username'] = $this->session->userdata('user_name');

web_interface/astpp/application/modules/package/controllers/package.php 1 location

@@ 26-39 (lines=14) @@
23
24
class Package extends MX_Controller {
25
26
	function Package() {
27
		parent::__construct();
28
29
		$this->load->helper('template_inheritance');
30
31
		$this->load->library('session');
32
		$this->load->library('package_form');
33
		$this->load->library('astpp/form');
34
		$this->load->model('package_model');
35
		$this->load->library('csvreader');
36
37
		if ($this->session->userdata('user_login') == FALSE)
38
			redirect(base_url() . '/astpp/login');
39
	}
40
41
   
42
	function package_list() {

web_interface/astpp/application/modules/refill_coupon/controllers/refill_coupon.php 1 location

@@ 27-37 (lines=11) @@
24
25
class Refill_coupon extends MX_Controller {
26
    
27
	function Refill_coupon(){
28
		  parent::__construct();
29
		  $this->load->helper('template_inheritance');
30
		  $this->load->helper('form');
31
		  $this->load->model('refill_coupon_model');
32
		  $this->load->library("refill_coupon_form");
33
		  $this->load->library("astpp/form");
34
		  $this->load->library("session");
35
		  if ($this->session->userdata('user_login') == FALSE)
36
			redirect(base_url() . 'login/login');
37
	  }
38
	function refill_coupon_list(){
39
	if($this->session->userdata('logintype') == 0 || $this->session->userdata('logintype') == 3){
40
			redirect(base_url() . 'user/user/');

web_interface/astpp/application/modules/systems/controllers/systems.php 1 location

@@ 25-38 (lines=14) @@
22
###############################################################################
23
class Systems extends CI_Controller {
24
25
	function Systems() {
26
		parent::__construct();
27
28
		$this->load->helper('template_inheritance');
29
	$this->load->helper('file');
30
		$this->load->library('session');
31
		$this->load->library("system_form");
32
		$this->load->library('astpp/form');
33
		$this->load->model('system_model');
34
		$this->load->dbutil();
35
36
		if ($this->session->userdata('user_login') == FALSE)
37
			redirect(base_url() . '/astpp/login');
38
	}
39
40
	function configuration_edit($edit_id = '') {
41
		$data['page_title'] = 'Edit Settings';