#si", "
Kod \\2:
\\3
Cytat:
\\1
Cytat \\2:
\\3
\n",'',$kod);
$ret='Kod PHP ('.$numerki[0].' lini):'.$numerki[1].' '.$kod.'
';
$ret=str_replace('
','',$ret);
return $ret;}
// numeracja
Function bbcode_numeruj($str){
$linia=explode('
', $str);
$l=count($linia);
for($i=1;$i<=$l;$i++){
$ret.=$i.'
';
}
return $l.'|'.$ret;}
// pokaz html
function bbcode_htmlCode($str){
if(is_array($str)){$str=$str[1];}
$str=str_replace ( '&', '&', $str);
$str=str_replace ( ''', "'", $str);
$str=str_replace("<", "<", $str);
$str=str_replace(">", ">", $str);
$str=str_replace ( '"', '"', $str);
return $str;}
function ukryj ( $match ) {
$id = uniqid();
return '' . $match[1] . ' ';
}
// anti js
Function bbcode_js($str){
if(!eregi('