X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=JavascriptError.php;h=11f4deb7cd38f71dd93d26869627cda656084f04;hp=be9e303189bee1ca89dde48176c524afc39d8dc8;hb=refs%2Fheads%2Fwip_alan_T6343_generic_progress_bar_delete;hpb=2d8c21dadb3627e2f0fcc3c05b648a5466c1d729 diff --git a/JavascriptError.php b/JavascriptError.php index be9e3031..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,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"); + } +