JavascriptError.php
[Pman.Core] / JavascriptError.php
1 <?php
2 // FIXME... auth errors need ratelimiting 
3
4 class Pman_Core_JavascriptError extends Pman {
5     
6     
7     function getAuth()
8     {
9         parent::getAuth(); // load company!
10         $au = $this->getAuthUser();
11        
12         if (!$au) {
13             
14             $this->jerr("Not authenticated", array('authFailure' => true));
15         }
16         if (!$au->pid()   ) { // not set up yet..
17             $this->jerr("Not authenticated", array('authFailure' => true));
18         }
19         
20         
21         $this->authUser = $au;
22         return true;
23     }
24     
25     
26     function get()
27     {
28          
29         $this->addEvent("JSERROR", false,$_REQUEST['msg']);
30         
31     }
32     
33     
34     
35     
36 }