Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<?php
2
/*
3
  +----------------------------------------------------------------------+
4
  | Uploadprogress extension                                             |
5
  +----------------------------------------------------------------------+
6
  | Copyright (c) 2006-2008 The PHP Group                                |
7
  +----------------------------------------------------------------------+
8
  | This source file is subject to version 3.01 of the PHP license,      |
9
  | that is bundled with this package in the file LICENSE, and is        |
10
  | available through the world-wide-web at the following url:           |
11
  | http://www.php.net/license/3_01.txt.                                 |
12
  | If you did not receive a copy of the PHP license and are unable to   |
13
  | obtain it through the world-wide-web, please send a note to          |
14
  | license@php.net so we can mail you a copy immediately.               |
15
  +----------------------------------------------------------------------+
16
  | Author: Christian Stocker (chregu@php.net)                           |
17
  +----------------------------------------------------------------------+
18
*/
19
 
20
if (function_exists("uploadprogress_get_info")) {
21
 
22
    $info = uploadprogress_get_info($_GET['ID']);
23
} else {
24
    $info = false;
25
}
26
 
27
?>
28
<html>
29
<head>
30
<script type="text/javascript">
31
<?php
32
 
33
 
34
if ($info !== null) {
35
 
36
    print "parent.UP.updateInfo(".$info['bytes_uploaded'].",".$info['bytes_total'].",".$info['est_sec'].")";
37
} else {
38
    print "parent.UP.updateInfo()";
39
}
40
?>
41
</script>
42
 
43
</head>
44
 
45
<body>
46
<pre>
47
<?php
48
print "Date : " . date("c",time())."\n";
49
print "ID   : ". $_GET['ID'] ."\n";
50
print 'var_dump($info): '. "\n";
51
var_dump($info);
52
?>
53
</pre>
54
</body>