X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=d0139ac280aec0ebaf8f4d0e1f8d952153c32265;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=a729db26a431bd483c6103255d62ab67febf782d diff --git a/JavascriptError.php b/JavascriptError.php index d0139ac2..11f4deb7 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -1,12 +1,39 @@ 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"); + } + + + + }