Announcement

#1 2010-02-24 13:38:30

saqwild
Member
2009-06-13
64

download counter -help

hello,
i am trying to setup a download counter for my images so that i can monitor what is downloaded and how many time.
i am using a custom script for this.

the download link is mentioned as per following code

Code:

<a href="{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"> &nbsp; Download </a> &nbsp; {$INFO_FILE} &nbsp; {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}

the above code actually displayed as
http://www.mysite.com/action.php?id=6&part=e

now i change the above url and add my counter link......

Code:

<a href="{$ROOT_URL}/clickmontor.php?{$current.U_DOWNLOAD}" title="{'download_hint'|@translate}"><img src="{$ROOT_URL}{$themeconf.icon_dir}/save.png" class="button" alt="{'download'|@translate}"> &nbsp; Download </a> &nbsp; {$INFO_FILE} &nbsp; {if isset($INFO_FILESIZE)}{$INFO_FILESIZE}{else}{'N/A'|@translate}{/if}

but this actually converts the link as....

Code:

http://www.mysite.com/clickmontor.php?../../action.php?id=6&part=e

the actual link should have been

Code:

http://www.mysite.com/clickmontor.php?http://www.mysite.com/action.php?id=6&part=e

what can be done
thanks

Last edited by saqwild (2010-02-24 13:40:00)

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact