🌍
English
Hi,
I have written a short function which will replace the last 3 numbers of a visitors ip with 0.
function getAnonymIp( $ip ) {
return preg_replace('/[0-9]+\z/', '0', $ip);
}
$ip = getAnonymIp( $ip );
This works without problems when added to the functions,inc.php file.
More elegant would be to have this function as a plugin.
As said it is only on function, no options.
I have already tried:
http://piwigo.org/doc/doku.php?id=dev:e … _tutorial1
without success.
Any hints?
Ralf
Offline