X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=50b0fa8ef001d35f952a4e80a502894e1d6008a6;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=c0b2752dac5075231175834ec6865632492b766d diff --git a/JavascriptError.php b/JavascriptError.php index 50b0fa8e..11f4deb7 100644 --- a/JavascriptError.php +++ b/JavascriptError.php @@ -1,5 +1,7 @@ getAuthUser(); - if (!$au) { - $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"); } @@ -21,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"); + } +