/web/htdocs/www.euroroma.net/home/zenphoto/zp-core/zp-extensions/slideshow/slideshow-counter.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
<?php
/**
 * Hitcounter handler for slidshow
 *
 * @package plugins
 */

require_once("../../functions.php");

$album_name sanitize($_GET["album"]);
$img_name sanitize($_GET["img"]);

if (
$album_name && $img_name ) {
    
$album newAlbum($album_name);
    
$image newImage($album$img_name);
    
//update hit counter
    
if (!$album->isMyItem(LIST_RIGHTS)) {
        
$hc $image->getHitcounter()+1;
        
$image->set('hitcounter'$hc);
        
$image->save();
    }
}
?>