Unofficial modifications
nieoficjalne modyfikacje for?w phpBB by Przemo

Pomoc dla modyfikacji - Spam Control

Raknor - Sro 07 Lut, 2007
Temat postu: Spam Control
Kod
Warning: stristr() [function.stristr]: Empty delimiter. in D:\Program Files\XAMPP\xampp\htdocs\www\posting.php on line 1264

Warning: Cannot modify header information - headers already sent by (output started at D:\Program Files\XAMPP\xampp\htdocs\www\posting.php:1264) in D:\Program Files\XAMPP\xampp\htdocs\www\includes\functions_post.php on line 635

B??d ten wyskakuje, przy wysy?aniu postu/zak?adaniu nowego tematu.

posting.php:
Kod
$array_block_explode = explode(',',$board_config['words_block']);
$array_block_count = count($array_block_explode);
for ($cos=0; $cos<$array_block_count; $cos++)
{

$array_words_block = array(trim($array_block_explode[$cos]));

foreach ($array_words_block as $wartoscc1)
{
-linia 1264-> $str = ( $board_config['words_block_on']==1 ) ? strtr ($subject, $wartoscc1) : stristr($subject, $wartoscc1);
if ($board_config['words_block']!=='' && $str !== FALSE )
{
message_die(GENERAL_MESSAGE, $lang['spam_temat']);
}
}
}

$array_guest_spam = array('www.','http://');
foreach ($array_guest_spam as $wartoscc)
{
if ($board_config['guest_spam']==1 && !$userdata['session_logged_in'] && stristr($message, $wartoscc) !== FALSE )
{
message_die(GENERAL_MESSAGE, $lang['spamm']);
}
}


functions_post.php:
Kod
if ( $delete_option_sql != '' )
{
$sql = "DELETE FROM " . VOTE_RESULTS_TABLE . "
WHERE vote_option_id IN ($delete_option_sql)
AND vote_id = $poll_id";
if ( !$db->sql_query($sql) )
{
message_die(GENERAL_ERROR, 'Error deleting pruned poll options', '', __LINE__, __FILE__, $sql);
}
}
}

-linia 635-> Header('Location: ' . append_sid("viewtopic.$phpEx?" . POST_POST_URL . "=" . $post_id) . '#' . $post_id );
return false;
}



//
// Update post stats and details
//

href - Sro 07 Lut, 2007

wpisz cokolwiek do ostatniego pola w panelu admina i powinno byc ok, ewentualnie wycisz ma?p?(@).
Raknor - Sro 07 Lut, 2007

Ustawienia s? takie:
href - Sro 07 Lut, 2007

to sprobuj to
Kod
stristr($subject, $wartoscc1)


zmienic na to:
Kod
@(stristr($subject, $wartoscc1))

Raknor - Sro 07 Lut, 2007

Dzia?a.

Powered by phpBB modified by Przemo © 2003 phpBB Group