X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=93ff3bc637df64bd1f748d5be1d286be8596eb3b;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=f404068815e08996b020ce42342497f580e06502 diff --git a/JavascriptError.php b/JavascriptError.php index 93ff3bc6..11f4deb7 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -1,5 +1,7 @@ getAuthUser(); - if (!$au) { - // fixme... this needs to be rate limited.... - $this->jerr("Not authenticated", array('authFailure' => true)); - } - if (!$au->pid() ) { // not set up yet.. - $this->jerr("Not authenticated", array('authFailure' => true)); + if (!$au || !$au->pid()) { + + die("authenticated Users only"); } @@ -22,6 +21,18 @@ class Pman_Core_JavascriptError extends Pman { return true; } + function get($v, $opts=array()) + { + die("invalid url"); + } + + function post($v) + { + + $this->addEvent("JSERROR", false,$_REQUEST['msg']); + $this->jok("OK"); + } +