\\1'", "'\\1'", "'\\1'", "'\\1'", "'
'. nl2br( '$1' ) .'
'", "'\\1
'", "'\\2'", "'\\2'", "'\\2'", "'\\2'", "'
',
'xd'=>'
',
':G'=>'
',
':g'=>'
',
':D'=>'
',
':d'=>'
',
':)'=>'
',
':O'=>'
',
':o'=>'
',
':p'=>'
',
':('=>'
',
':S'=>'
',
':s'=>'
',
';)'=>'
'
);
if ($way == 1) foreach ($smileys as $old => $new) $text = str_replace( $old, $new, $text );
elseif ($way == 2) foreach ($smileys as $old => $new) $text = str_replace( $new, $old, $text );
return $text;
}
?>