cvs: pear /HTML_Progress2/examples/ajax/upload auto_server.php
[email protected] ("Laurent Laville")
| Newsgroups | php.pear.cvs |
|---|---|
| Message-ID | <cvsfarell1208625589@cvsserver> |
farell Sat Apr 19 17:19:49 2008 UTC
Modified files:
/pear/HTML_Progress2/examples/ajax/upload auto_server.php
Log:
auto_server modified for new example and request #12532 : Add addional info to apc5 "info"
http://cvs.php.net/viewvc.cgi/pear/HTML_Progress2/examples/ajax/upload/auto_server.php?r1=1.1&r2=1.2&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.1 pear/HTML_Progress2/examples/ajax/upload/auto_server.php:1.2
--- pear/HTML_Progress2/examples/ajax/upload/auto_server.php:1.1 Mon Feb 12 15:28:20 2007
+++ pear/HTML_Progress2/examples/ajax/upload/auto_server.php Sat Apr 19 17:19:49 2008
@@ -2,7 +2,7 @@
/**
* Auto server that will serve upload file informations
*
- * @version $Id: auto_server.php,v 1.1 2007/02/12 15:28:20 farell Exp $
+ * @version $Id: auto_server.php,v 1.2 2008/04/19 17:19:49 farell Exp $
* @author Laurent Laville <[email protected]>
* @package HTML_Progress2
* @subpackage Examples
@@ -30,6 +30,16 @@
$status = new MyUploadProgressMeterStatus($format);
$this->registerClass($status, 'RequestAPC5Status', array('getStatus'));
}
+
+ function initRequest1APC5Status()
+ {
+ require_once 'MyUploadProgressMeterStatus.class.php';
+ $format = array('sizeStatus' => 'Uploaded: %C of %T',
+ 'pct1' => '%P%',
+ 'fileName' => 'Current file: %F');
+ $status = new MyUploadProgressMeterStatus($format);
+ $this->registerClass($status, 'Request1APC5Status', array('getStatus'));
+ }
}
$server = new AutoServer();