General code tidy up, added documentation

This commit is contained in:
FrancescoUK committed 2017-07-02 11:15:57 +01:00
1 parent 2f44a9d5c2
commit c8499599ab
68 files changed
+813 -577

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once("Secure_Controller.php");
+1 -6
View File
@@ -4,11 +4,6 @@ require_once("Secure_Controller.php");
class Home extends Secure_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
$this->load->view('home');
@@ -21,4 +16,4 @@ class Home extends Secure_Controller
$this->Employee->logout();
}
}
?>
?>
-5
View File
@@ -2,11 +2,6 @@
class Login extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index()
{
if($this->Employee->is_logged_in())
+5 -8
View File
@@ -1,17 +1,17 @@
<?php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
require_once("Secure_Controller.php");
class Migrate extends Secure_Controller {
class Migrate extends Secure_Controller
{
public function __construct()
{
parent::__construct('migrate');
$this->load->library('migration');
}
public function index()
public function index()
{
$this->load->view('migrate/manage');
}
@@ -20,15 +20,12 @@ class Migrate extends Secure_Controller {
{
if( ! $this->migration->latest())
{
echo json_encode(array('success' => FALSE, 'message' => $this->lang->line('migrate_failed - '.$this->migration->error_string())));
echo json_encode(array('success' => FALSE, 'message' => $this->lang->line('migrate_failed - ' . $this->migration->error_string())));
}
else
{
echo json_encode(array('success' => TRUE, 'message' => $this->lang->line('migrate_success')));
}
}
}
?>
+1 -6
View File
@@ -2,11 +2,6 @@
class No_Access extends CI_Controller
{
public function __construct()
{
parent::__construct();
}
public function index($module_id = '', $permission_id = '')
{
$data['module_name'] = $this->Module->get_module_name($module_id);
@@ -17,4 +12,4 @@ class No_Access extends CI_Controller
$this->load->view('no_access', $data);
}
}
?>
?>