Code: Select all
#
# -----[ OPEN ]-----
download.php
#
# -----[ FIND ]-----
#
if ($attach_config['disable_mod'] && $userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, $lang['Attachment_feature_disabled']);
}
#
# -----[ AFTER, ADD ] -----
#
$minposts = 30;
if ($userdata['user_posts'] < $minposts && $userdata['user_level'] != ADMIN)
{
message_die(GENERAL_MESSAGE, "You need to make " . $minposts . " posts before you are able to download files");
}