Jon, I have committed. I intended to have waited for you review. Besides, I adds a new function to provide the checksum value and license file (rdf) of each file, when user download a file. The checksum, license file and downloaded file will include in a zip file. I use a  3rd party library, which is PHPMyAdmin's zip.lib library. I will explain as follow:

1. ccextras/cc-download.inc
increasing the count value.

2. ccextras/cc-download.php
displaying the count value

3. ccextras/update_v_5_download.inc
adding a new field of cc_tbl_files, which is 'file_num_download'.

4. cclib/zip/zip.lib.php
PHPMyAdmin's zip.lib library

5. ccextras/cc- licensefiles.inc
create a rdf file

6. ccextras/cc-licensefiles.php

7. ccextras/cc-checksum.inc
create a checksum file

8. ccextras/cc-checksum.php

I look forward to hearing from you.

Thanks!
Snic

2007/5/29, Jon Phillips < jon@rejon.org>:
On Tue, 2007-05-29 at 16:19 +0800, Snic Huang wrote:
> Hi Victor, I written some code for adding download counter. I will
> explain as follow:
>
> 1. cc-download.inc
>  increasing the count value.
>
> 2. cc-download.php
> displaying the count value
>
> 3. update_v_5_download.inc
> adding a new field of cc_tbl_files, which is 'file_num_download'.
>
> Allow admins to enable/disable this function in 'Global Setup.'
>
> Please offer me some advice. Thanks!
>
> Snic

Please go ahead and commit and we can review after that...you have the
power!!!

Jon

> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________ Cctools-cchost mailing list Cctools-cchost@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cctools-cchost
--
Jon Phillips

San Francisco, CA
USA PH 510.499.0894
jon@rejon.org
http://www.rejon.org

MSN, AIM, Yahoo Chat: kidproto
Jabber Chat: rejon@gristle.org
IRC: rejon@irc.freenode.net