X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UploadProgress.php;h=7616fbf6655221ef89d55b219567aaee6f31428c;hp=191ca3a90c980b6348bcf387dd8484f90d464e2c;hb=refs%2Fheads%2Fwip_alan_T6343_generic_progress_bar_delete;hpb=5e48483a0bb95f4c99fea9d80fe6384303abf603 diff --git a/UploadProgress.php b/UploadProgress.php index 191ca3a9..7616fbf6 100644 --- a/UploadProgress.php +++ b/UploadProgress.php @@ -14,20 +14,19 @@ class Pman_Core_UploadProgress extends Pman return true; } - function get() + function get($v, $opts=array()) { - - + $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"); }