Peut etre une modification dans source de photostation est possible
je viens de regarder dans /usr/syno/synoman/phpsrc/photo/include/album_util.php
cette fonction :
function SYNOPHOTO_ALBUM_UTIL_AddHitTimes($dir)
{
$parent_album = $dir;
if(substr_count($dir, "/") > 1) {
$pos = strpos($dir, "/", strpos($dir, "/") + 1);
$parent_album = substr($dir, 0, $pos);
}
if($_SESSION['accessed_albums']) {
$value_exist = in_array($parent_album, $_SESSION['accessed_albums'], TRUE);
}
if(!$value_exist) {
$query = "Update photo_share set hits = hits + 1 where sharename = '".pg_escape_string($parent_album)."'";
$db_result = pg_query($GLOBALS['dbconn_photo'], $query);
if (isset($_SESSION['reg_syno_user']) && !SYNOPHOTO_ALBUM_UTIL_IsPublic($parent_album)) {
$msg = $_SESSION['reg_syno_user']." accessed photo album "."[".addslashes(htmlspecialchars($parent_album))."]" ;
SYNOPHOTO_MISC_AddLog($msg, 1, $_SESSION['reg_syno_user']);
}
if(!$_SESSION['accessed_albums']) {
$_SESSION['accessed_albums'] = array();
}
array_push($_SESSION['accessed_albums'], $parent_album);
A voir
Patrick