Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Limiting uploads per day for cpg 1.4  (Read 2541 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.017 seconds with 20 queries.