Extension:DownloadCounter

The DownloadCounter extension can display the total number and the last date of downloaded files, which are recorded in the MySQL database.

Usage
On your wiki page, you will setup an download like this: Download this great software here

And display the recorded data like that:  total download. Last download was : 

Installation

 * 1. Add this in the LocalSetting.php:


 * 2. Create a file download.php in the root directory of your MediaWiki installation
 * 3. Create a file DownloadCounter.php in the root/extensions directory of your MediaWiki installation
 * 4. Create the following MySql Table in wikidb database


 * 5. Setup correctly MySql conection in the extension ("DownloadCounter.php") and in the php download file ("download.php")


 * 6. Setup correctly the root directory of file to download

Code

 * download.php


 * DownloadCounter.php