X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UploadProgress.php;h=7616fbf6655221ef89d55b219567aaee6f31428c;hp=1582457295761ac15a59bb66225d4a4c92b4fde9;hb=HEAD;hpb=1cdb1da59c915d344fe738316ed2059d321a7c1c diff --git a/UploadProgress.php b/UploadProgress.php index 15824572..a0b144d1 100644 --- a/UploadProgress.php +++ b/UploadProgress.php @@ -7,27 +7,26 @@ class Pman_Core_UploadProgress extends Pman $au = $this->getAuthUser(); if (!$au) { - $this->jerr("Not authenticated", array('authFailure' => true)); + $this->jerror("LOGIN-NOAUTH", "Not authenticated", array('authFailure' => true)); } $this->authUser = $au; // check that it's a supplier!!!! return true; } - function get() + function get($v, $opts=array()) { - - error_log('in'); + $this->sessionState(0); // turn off the session.. header("Cache-Control: no-cache, must-revalidate"); header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); - if ( !function_exists('uploadprogress_get_info')) { $this->jok(false); } - if (!empty($_GET['id'])) { // var_dump(uploadprogress_get_info($_GET['id'])); - $this->jok(uploadprogress_get_info($_GET['id'])); + $ret = uploadprogress_get_info($_GET['id']); + + $this->jok($ret); } $this->jerr("no data"); }