projects
/
Pman.Core
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix #5992 - gnumeric download progress
[Pman.Core]
/
JavascriptError.php
diff --git
a/JavascriptError.php
b/JavascriptError.php
index
fca1199
..
11f4deb
100644
(file)
--- a/
JavascriptError.php
+++ b/
JavascriptError.php
@@
-1,6
+1,8
@@
<?php
// FIXME... auth errors need ratelimiting
<?php
// FIXME... auth errors need ratelimiting
+require_once 'Pman.php';
+
class Pman_Core_JavascriptError extends Pman {
class Pman_Core_JavascriptError extends Pman {
@@
-9,12
+11,9
@@
class Pman_Core_JavascriptError extends Pman {
parent::getAuth(); // load company!
$au = $this->getAuthUser();
parent::getAuth(); // load company!
$au = $this->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,12
+21,16
@@
class Pman_Core_JavascriptError extends Pman {
return true;
}
return true;
}
+ function get($v, $opts=array())
+ {
+ die("invalid url");
+ }
- function
get(
)
+ function
post($v
)
{
$this->addEvent("JSERROR", false,$_REQUEST['msg']);
{
$this->addEvent("JSERROR", false,$_REQUEST['msg']);
-
+ $this->jok("OK");
}
}