Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php defined('BASEPATH') or exit('No direct script access allowed'); |
||
6 | public function __construct() { |
||
7 | parent::__construct(FALSE); |
||
8 | |||
9 | //CHECK: Should we limit internal AJAX requests? |
||
10 | //$this->load->library('Limiter'); |
||
11 | //$this->load->library('form_validation'); |
||
12 | |||
13 | ////1000 requests per hour to either AJAX request. |
||
14 | //if($this->limiter->limit('tracker_general', 1000)) { |
||
15 | // $this->output->set_status_header('429', 'Rate limit reached'); //rate limited reached |
||
16 | |||
17 | // exit_ci(); |
||
18 | //} |
||
19 | |||
20 | $this->userID = (int) $this->User->id; |
||
21 | } |
||
22 | |||
34 |