10 Stellige zahlen Komibination Automatisch ersetzten...
Verfasst: 19.10.2004 22:47
... ich weiß das es in der functions.php unter:
Eingestellt werden kann!
Kann mir jemand mal einen Tip geben wie z.B.
aus 1234567891 Automatisch "eBay Links / Nummern sind hier Verboten bitte Nutzungsbedingungen beachten" wird?
Wäre euch sehr dankbar!
Gruß
Joe
Code: Alles auswählen
//
// Obtain list of naughty words and build preg style replacement arrays for use by the
// calling script, note that the vars are passed as references this just makes it easier
// to return both sets of arrays
//
function obtain_word_list(&$orig_word, &$replacement_word)
{
global $db;
//
// Define censored word matches
//
$sql = "SELECT word, replacement
FROM " . WORDS_TABLE;
if( !($result = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not get censored words from database', '', __LINE__, __FILE__, $sql);
}
if ( $row = $db->sql_fetchrow($result) )
{
do
{
$orig_word[] = '#\b(' . str_replace('\*', '\w*?', phpbb_preg_quote($row['word'], '#')) . ')\b#i';
$replacement_word[] = $row['replacement'];
}
while ( $row = $db->sql_fetchrow($result) );
}
return true;
}
Kann mir jemand mal einen Tip geben wie z.B.
aus 1234567891 Automatisch "eBay Links / Nummern sind hier Verboten bitte Nutzungsbedingungen beachten" wird?
Wäre euch sehr dankbar!
Gruß
Joe