more quote identeiifers fixessss
[Pman.Core] / JavascriptError.php
index d0139ac..11f4deb 100644 (file)
@@ -1,12 +1,39 @@
 <?php
+// FIXME... auth errors need ratelimiting 
 
+require_once 'Pman.php';
 
 class Pman_Core_JavascriptError extends Pman {
     
     
     function getAuth()
     {
-        // authed users only...
+        parent::getAuth(); // load company!
+        $au = $this->getAuthUser();
+       
+        if (!$au || !$au->pid()) {
+            
+            die("authenticated Users only");
+        }
+        
+        
+        $this->authUser = $au;
+        return true;
     }
     
+    function get($v, $opts=array())
+    {
+        die("invalid url");
+    }
+    
+    function post($v)
+    {
+         
+        $this->addEvent("JSERROR", false,$_REQUEST['msg']);
+        $this->jok("OK");
+    }
+    
+    
+    
+    
 }