Added a download counter.

Because we like stats, even if not really reliable :)
This commit is contained in:
Loic d'Anterroches
2008-08-05 15:44:27 +02:00
parent 366b73d27e
commit 5e3b2bac28
5 changed files with 34 additions and 2 deletions

View File

@@ -137,7 +137,12 @@ class IDF_Upload extends Pluf_Model
{
if ($this->id == '') {
$this->creation_dtime = gmdate('Y-m-d H:i:s');
$this->modif_dtime = gmdate('Y-m-d H:i:s');
}
$this->modif_dtime = gmdate('Y-m-d H:i:s');
}
function getAbsoluteUrl($project)
{
return Pluf::f('url_media').'/upload/'.$project->shortname.'/files/'.$this->file;
}
}