News:

CPG Release 1.6.31
Minor maintenance release
Clean up remaining remnants of the .net CPG website
Improved installer_stub compatibility with various server configurations

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)