28 lines
		
	
	
		
			948 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			948 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
| <?php
 | |
| 
 | |
| /**
 | |
|  * Name: Image View Counter
 | |
|  * Author: Drudex Software <support@drudexsoftware.com>
 | |
|  * Link: http://www.drudexsoftware.com/
 | |
|  * License: GPLv2
 | |
|  * Description: Tracks & displays how many times an image is viewed
 | |
|  * Documentation:
 | |
|  *
 | |
|  */
 | |
| class ImageViewCounterInfo extends ExtensionInfo
 | |
| {
 | |
|     public const KEY = "image_view_counter";
 | |
| 
 | |
|     public $key = self::KEY;
 | |
|     public $name = "Image View Counter";
 | |
|     public $url = "http://www.drudexsoftware.com/";
 | |
|     public $authors = ["Drudex Software"=>"support@drudexsoftware.com"];
 | |
|     public $license = self::LICENSE_GPLV2;
 | |
|     public $description = "Tracks & displays how many times an image is viewed";
 | |
|     public $documentation =
 | |
| "Whenever anyone views an image, a view will be added to that image.
 | |
| This extension will also track any username & the IP address.
 | |
| This is done to prevent duplicate views.
 | |
| A person can only count as a view again 1 hour after viewing the image initially.";
 | |
| }
 |