X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=blobdiff_plain;f=UploadProgress.php;h=7616fbf6655221ef89d55b219567aaee6f31428c;hp=8012149fb9613d1826ea14b8437fe2e5c3e83c29;hb=443623f47935eb52acd65a3ff0d84eab1fd5a98b;hpb=8ad8f60a075c4ad592aabb1989d999af043fc0ab diff --git a/UploadProgress.php b/UploadProgress.php index 8012149f..7616fbf6 100644 --- a/UploadProgress.php +++ b/UploadProgress.php @@ -14,8 +14,9 @@ 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')) { @@ -23,7 +24,8 @@ class Pman_Core_UploadProgress extends Pman } if (!empty($_GET['id'])) { // var_dump(uploadprogress_get_info($_GET['id'])); - $ret = uploadprogress_get_info($_GET['id']); + $ret = uploadprogress_get_info($_GET['id']); + $this->jok($ret); } $this->jerr("no data");