Pman.Gnumeric.js
[Pman.Core] / UploadProgress.php
1 <?php
2
3 require_once  'Pman.php';
4 class Pman_Core_UploadProgress extends Pman
5 {
6   function getAuth() {
7         
8         $au = $this->getAuthUser();
9         if (!$au) {
10              $this->jerr("Not authenticated", array('authFailure' => true));
11         }
12         $this->authUser = $au;
13         // check that it's a supplier!!!! 
14         
15         return true; 
16     }
17     function get($v, $opts=array())
18     {
19         $this->sessionState(0); // turn off the session..
20         header("Cache-Control: no-cache, must-revalidate");
21         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
22         if (  !function_exists('uploadprogress_get_info')) {
23             $this->jok(false);
24            }
25         if (!empty($_GET['id'])) {
26            // var_dump(uploadprogress_get_info($_GET['id']));
27             $ret = uploadprogress_get_info($_GET['id']);
28              
29             $this->jok($ret);
30         }
31         $this->jerr("no data");
32     }
33     
34 }