FAP SUPPORT - Limit Pics Per Day User


Subject: FAP SUPPORT - Limit Pics Per Day User
help mi :) im looking for this hack . user only 1 photo per in day

This code modyfication??

Code: [Download] [Hide] [Select]
if ($userdata['user_level'] <= USER) //Do not limit MODS and ADMINS in any way
{
$time_span = time() - 24*3600; //24 hours
$check_user_limit = 1; // 5 posts per day
$error_msg = $lang['Flood_error_1'];
$sql = "SELECT COUNT(pic_id) AS count
FROM " . ALBUM_TABLE . "
WHERE post_time > $time_span
AND user_id = " . $userdata['user_id'];
if ( $result = $db->sql_query($sql) )
{
$row = $db->sql_fetchrow($result);
$post_count = $row['post_count'];
if ($post_count >= $post_limit) message_die(GENERAL_MESSAGE, $error_msg);
}


please help im green

Subject: Re: Limit Pics Per Day User
That code is incomplete and a bit messed.

Do you have a link to the full mod?

Subject: Re: Limit Pics Per Day User
ok i have the mod 1 pic in day on user

daylimit album pic
h**p://***.wrzucaj.com/343525


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.2385s (PHP: 7% SQL: 93%)
SQL queries: 10 - Debug Off - GZIP Enabled