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