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: User upload limit per day  (Read 2983 times)

0 Members and 1 Guest are viewing this topic.

botakedan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
User upload limit per day
« on: August 04, 2009, 08:46:16 am »

Hello!

I was wondering if it would be possible to make limit number of picture can upload by each member per day ?

Any help would be greatly appreciated, thank you!
Logged

Hein Traag

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: nl
  • Offline Offline
  • Gender: Male
  • Posts: 2166
  • A, B, Cpg
    • Personal website - Spintires.nl
Re: User upload limit per day
« Reply #1 on: August 04, 2009, 09:15:08 am »

Logged

botakedan

  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: User upload limit per day
« Reply #2 on: August 04, 2009, 07:18:11 pm »

i thing this is the way...

 $result = cpg_db_query("SELECT pid FROM {$CONFIG['TABLE_PICTURES']} WHERE owner_id = " . USER_ID . " AND ctime > UNIX_TIMESTAMP() - 86400");

but... where is this code location ?
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.