Nu wil ik al allereerste no flood control voor mods en admins, maar daar heb ik al problemen.
Code: Selecteer alles
#
#-----[ FIND ]---------------------------------------------
#
//
// Flood control
//
#
#-----[ AFTER, ADD ]---------------------------------------------
#
//
// No Flood Limit For Administrators & Moderators MOD
//
if($userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD)
{
Dit was het eerst(even klein stuk uit functions_post.php gehaald):
Code: Selecteer alles
//
// Flood control
//
//
// No Flood Limit For Administrators & Moderators MOD
//
if($userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD)
{
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT MAX(post_time) AS last_post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql";
if ($result = $db->sql_query($sql))
{
Code: Selecteer alles
//
// Flood control
//
//
// No Flood Limit For Administrators & Moderators MOD
//
if($userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD)
{
//
// No Flood Limit For Administrators & Moderators MOD
//
if($userdata['user_level'] != ADMIN && $userdata['user_level'] != MOD)
{
$where_sql = ($userdata['user_id'] == ANONYMOUS) ? "poster_ip = '$user_ip'" : 'poster_id = ' . $userdata['user_id'];
$sql = "SELECT MAX(post_time) AS last_post_time
FROM " . POSTS_TABLE . "
WHERE $where_sql";
if ($result = $db->sql_query($sql))
{
Dan het tweede probleem, hier staat:
Code: Selecteer alles
#
#-----[ FIND ]---------------------------------------------
# Be careful there are 4 }
#
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
Code: Selecteer alles
message_die(GENERAL_MESSAGE, $lang['Flood_Error']);
}
}
}
}
Dus bij 1 is het de vraag of dat normaal is, bij 2 of het er al staat of dat ik het dus nog moet toevoegen.
Bedankt alvast