Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Limiting uploads per day for cpg 1.4  (Read 2416 times)

0 Members and 1 Guest are viewing this topic.

RedFalcon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Limiting uploads per day for cpg 1.4
« on: May 30, 2006, 12:29:06 am »

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
« Last Edit: May 30, 2006, 12:51:23 am by TranzNDance »
Logged
http://monocromatico.bitacoras.com
http://www.antonioinocencio.mx.gs
http://www.foto.hijole.net
(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fwww.hijole.net%2FImagens%2Fcoppermine.gif&hash=494fce39e01b1e8bc0e07c5520b44b890312185d)

Nibbler

  • Guest
Re: Limiting uploads per day for cpg 1.4
« Reply #1 on: May 30, 2006, 12:36:56 am »

Change db_query to cpg_db_query
Logged

RedFalcon

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 21
Re: Limiting uploads per day for cpg 1.4
« Reply #2 on: May 30, 2006, 12:48:19 am »

Tks Nibbler, it's work  :)

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

Page created in 0.013 seconds with 15 queries.