UploadProgress.php
[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()
18     {   
19         header("Cache-Control: no-cache, must-revalidate");
20         header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
21         if (  !function_exists('uploadprogress_get_info')) {
22             $this->jok(false);
23            }
24         if (!empty($_GET['id'])) {
25            // var_dump(uploadprogress_get_info($_GET['id']));
26             $ret = uploadprogress_get_info($_GET['id']);
27              
28             $this->jok($ret);
29         }
30         $this->jerr("no data");
31     }
32     
33 }