cvs: pear /HTML_Progress2/examples/ajax/upload auto_server.php
[email protected] ("Laurent Laville")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsfarell1208817213@cvsserver> |
farell Mon Apr 21 22:33:33 2008 UTC
Modified files:
/pear/HTML_Progress2/examples/ajax/upload auto_server.php
Log:
customize labels render with formats %S - speed limit, %E - time left, %F - current filename
when using upm5 backend (uploadprogress extension)
http://cvs.php.net/viewvc.cgi/pear/HTML_Progress2/examples/ajax/upload/auto_server.php?r1=1.2&r2=1.3&diff_format=u
Index: pear/HTML_Progress2/examples/ajax/upload/auto_server.php
diff -u pear/HTML_Progress2/examples/ajax/upload/auto_server.php:1.2 pear/HTML_Progress2/examples/ajax/upload/auto_server.php:1.3
--- pear/HTML_Progress2/examples/ajax/upload/auto_server.php:1.2 Sat Apr 19 17:19:49 2008
+++ pear/HTML_Progress2/examples/ajax/upload/auto_server.php Mon Apr 21 22:33:33 2008
@@ -2,7 +2,7 @@
/**
* Auto server that will serve upload file informations
*
- * @version $Id: auto_server.php,v 1.2 2008/04/19 17:19:49 farell Exp $
+ * @version $Id: auto_server.php,v 1.3 2008/04/21 22:33:33 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_Progress2
* @subpackage Examples
@@ -40,6 +40,16 @@
$status = new MyUploadProgressMeterStatus($format);
$this->registerClass($status, 'Request1APC5Status', array('getStatus'));
}
+
+ function initRequestUPM5Status()
+ {
+ require_once 'MyUploadProgressMeterStatus.class.php';
+ $format = array('pct1' => '%P%',
+ 'percentStatus' => '%E left (at %S/sec) %C/%T(%P%)',
+ 'fileName' => 'Current file: %F');
+ $status = new MyUploadProgressMeterStatus($format);
+ $this->registerClass($status, 'RequestUPM5Status', array('getStatus'));
+ }
}
$server = new AutoServer();