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