projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
GnumericToExcel.php
[Pman.Core]
/
JavascriptError.php
diff --git
a/JavascriptError.php
b/JavascriptError.php
index
d0139ac
..
11f4deb
100644
(file)
--- a/
JavascriptError.php
+++ b/
JavascriptError.php
@@
-1,12
+1,39
@@
<?php
<?php
+// FIXME... auth errors need ratelimiting
+require_once 'Pman.php';
class Pman_Core_JavascriptError extends Pman {
function getAuth()
{
class Pman_Core_JavascriptError extends Pman {
function getAuth()
{
- // authed users only...
+ parent::getAuth(); // load company!
+ $au = $this->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");
+ }
+
+
+
+
}
}