Verfasst: 11.10.2003 20:06
@eclipse
ich bin mir nicht sicher, aber check mal diesen part deiner functions_post.php
In diesem Fall würde ich behaupten daß die rot markierte Zeile nicht dahin gehört.
Kuck mal ob du da alles richtig eingebaut hast.........
ich bin mir nicht sicher, aber check mal diesen part deiner functions_post.php
Ich geh mal davon aus daß diese Traffic geschichte ein MOD ist, denn ich hab was derartiges nicht in meiner functions_post.php.//
// Traffic erhöhen
//
$user_id = $userdata['user_id'];
$sql = "SELECT user_totaltime
FROM " . USERS_TABLE . "
WHERE user_id = $user_id";
if (!($result = $db->sql_query($sql)))
{
message_die(GENERAL_ERROR, 'Could not obtain online time', '', __LINE__, __FILE__, $sql);
}
$user_totaltime = ' ';
while ($row = $db->sql_fetchrow($result))
{
if (isset($row['user_totaltime']))
{
$user_totaltime = $row['user_totaltime'];
}
}
if ($user_totaltime > 3600)
{
// Erhöht den Traffic pro Post um 500 kb
$user_traffic = 500;
$traffic_bytes = bcmul($user_traffic,1024);
if ( !isset($post_data['flood_control_off']) && ( $mode == 'newtopic' || $mode == 'reply' ) ) // ADDED ' !isset($post_data['flood_control_off']) && ( ' AND ')' BY Quiz Hack
{
$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
//
In diesem Fall würde ich behaupten daß die rot markierte Zeile nicht dahin gehört.
Kuck mal ob du da alles richtig eingebaut hast.........