News:

CRITICAL UPGRADE CPG RELEASE 1.6.30
Version 1.6.30 removes a serious security issue that could allow unauthorized access to modify your site. Upgrade as soon as possible.

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)