in der functions_post.php folgendes suchen:
Code: Alles auswählen
//
// Post a new topic/reply/poll or edit existing post/poll
//
function submit_post($mode, &$post_data, &$message, &$meta, &$forum_id, &$topic_id, &$post_id, &$poll_id, &$topic_type, &$bbcode_on, &$html_on, &$smilies_on, &$attach_sig, &$bbcode_uid, &$post_username, &$post_subject, &$post_message, &$poll_title, &$poll_options, &$poll_length, &$max_vote, &$hide_vote, &$tothide_vote, &$MsgIcon)
{
global $board_config, $lang, $db, $phpbb_root_path, $phpEx;
global $userdata, $user_ip;
include($phpbb_root_path . 'includes/functions_search.'.$phpEx);
$current_time = time();
Code: Alles auswählen
//
// Traffic erhöhen
//
$user_id = $userdata['user_id'];
// Erhöht den Traffic pro Post um 500 kb
$user_traffic = 500;
$traffic_bytes = bcmul($user_traffic,1024);
if ($mode == 'newtopic' || $mode == 'reply')
{
$sql = "UPDATE " . USERS_TABLE . "
SET user_traffic = user_traffic+'" . str_replace("\'", "''", $traffic_bytes) . "'
WHERE user_id = $user_id";
if (!$db->sql_query($sql))
{
message_die(GENERAL_ERROR, 'Error in posting', '', __LINE__, __FILE__, $sql);
}
//
// Traffic ende
//
Code: Alles auswählen
//
// Flood control
//