Skip to content

Logolo/Indication

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

506 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Indication Readme

Indication is a PHP download counter. You can use it to track the number of times a link has been clicked or the number of times a file has been downloaded. Indication can also be used to hide affiliate links.

The script uses a SQL database. It comes with an admin panel where you can view how many times a download has been accessed. You can also easily add, edit or remove downloads using the panel. Indication can also display the current count for a download on any web page.

Features:

  • Password protect downloads
  • Can be used to track links aswell
  • Count unique visitors to avoid multiple counts from same user
  • Supports displaying of ads before user is redirected to download
  • Full admin panel
  • Display download counts to users
  • Themed by Twitter Bootstrap, extra themes available through BootSwatch
  • Sort and search downloads using DataTables
  • Works well on mobile devices due to a responsive layout
  • Ignore counts when admin is logged in

Screenshots:

Screenshots of Indication can be found here.

Releases:

Releases of Indication can be found on the the releases page.

Installation:

  1. Create a new database using your web hosts control panel (for instructions on how to do this please contact your web host)
  2. Download and unzip Indication-xxxx.zip
  3. Upload the Indication folder to your server via FTP or your hosts control panel
  4. Open up http://yoursite.com/Indication/installer in your browser and enter your database/user details
  5. Delete the "installer" folder from your server
  6. Login to the admin panel using the username and password you set during the install process
  7. Add your downloads
  8. Indication should now be set up

Usage:

The main script is called like this: /get.php?id=mydownload1

Replace ID with the ID name/number of your URL, for example: http://yoursite.com/Indication/get.php?id=mydownload1

So instead of linking to http://yoursite.com/some/directory/mydownload1.zip, link to http://yoursite.com/Indication/get.php?id=mydownload1

To find this URL select the download and click the "Show Tracking Link" button whilst on the admin page

This will log the count of the download and redirect the user to the file or web page

This script can also be called via $_POST just set the name of your form to "id" and the value to the ID you wish to download

To show the download count for an ID, call http://yoursite.com/Indication/display.php?id=mydownload1. This could be done by linking directly to display.php, using an iframe or by using a PHP include

Examples:

<?php
require_once("Indication/config.php");

$id = "download1";
$count = file_get_contents("" . PATH_TO_SCRIPT . "/display.php?id=$id");
echo $count;
?>
<iframe src="Indication/display.php?id=download1" width="80" height="25" frameBorder="0" scrolling="no"></iframe>

Administration:

Open up Indication/admin to add new downloads, view statistics, update existing downloads or delete downloads. The admin panel can also be used to password protect downloads or to show you the tracking link for a download.

Removal:

To remove Indication, simply delete the Indication folder from your server and delete the "Data" table from your database

Contributing:

Feel free to fork and make any changes you want to Indication. If you want them to be added to master then send a pull request.

About

Indication is a PHP click counter which can also be used as a download counter

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors