2012-02-08 23:14:28 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
class ControllerAuditAudit extends Controller {
|
|
|
|
|
|
|
|
public function index(){
|
|
|
|
|
|
|
|
$this->id = "content";
|
|
|
|
$this->template = "audit/audit.tpl";
|
2013-02-11 20:24:19 +01:00
|
|
|
$this->layout = "common/layout-audit";
|
2012-02-08 23:14:28 +01:00
|
|
|
|
|
|
|
$request = Registry::get('request');
|
|
|
|
$db = Registry::get('db');
|
|
|
|
|
|
|
|
$this->load->model('audit/audit');
|
|
|
|
|
2013-07-12 15:02:50 +02:00
|
|
|
if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0) {
|
2013-03-12 10:26:21 +01:00
|
|
|
die("go away");
|
|
|
|
}
|
2012-02-08 23:14:28 +01:00
|
|
|
|
|
|
|
$this->render();
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|