mirror of
				https://bitbucket.org/jsuto/piler.git
				synced 2025-11-04 07:12:27 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			27 lines
		
	
	
		
			475 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
		
			475 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
<?php
 | 
						|
 | 
						|
 | 
						|
class ControllerAuditAudit extends Controller {
 | 
						|
 | 
						|
   public function index(){
 | 
						|
 | 
						|
      $this->id = "content";
 | 
						|
      $this->template = "audit/audit.tpl";
 | 
						|
      $this->layout = "common/layout-audit";
 | 
						|
 | 
						|
      $request = Registry::get('request');
 | 
						|
      $db = Registry::get('db');
 | 
						|
 | 
						|
      $this->load->model('audit/audit');
 | 
						|
 | 
						|
      if(Registry::get('admin_user') == 0 && Registry::get('auditor_user') == 0) {
 | 
						|
         die("go away");
 | 
						|
      }
 | 
						|
 | 
						|
      $this->render();
 | 
						|
   }
 | 
						|
 | 
						|
}
 | 
						|
 | 
						|
?>
 |