Limiting uploads per day for cpg 1.4 Limiting uploads per day for cpg 1.4
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Limiting uploads per day for cpg 1.4

Started by RedFalcon, May 30, 2006, 12:29:06 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

RedFalcon

Hi

Well, in cpg 1.3 i used  this code in upload.php :

Quote$query = db_query("SELECT * FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = ".USER_ID." AND ctime > ".time()." - (24*60*60)");
if (mysql_num_rows($query) > 0) {
   cpg_die(INFORMATION, "Usted sólo puede colocar una fotografía cada 24hrs. Gracias.");
}


Now, in cpg 1.4 it's possible?

my site cpg: http://www.foto.hijole.net

Thanks in advance
Regards
http://monocromatico.bitacoras.com
http://www.antonioinocencio.mx.gs
http://www.foto.hijole.net
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2FImagens%2Fcoppermine.gif&hash=494fce39e01b1e8bc0e07c5520b44b890312185d)

Nibbler


RedFalcon

http://monocromatico.bitacoras.com
http://www.antonioinocencio.mx.gs
http://www.foto.hijole.net
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2FImagens%2Fcoppermine.gif&hash=494fce39e01b1e8bc0e07c5520b44b890312185d)