I was told to post the whole code, so I did, here it is.
So yeah, basically the array from earlier seems to be working wrong. Help?
[php]
[". $d. "] » ". htmlcheck($n). ": ". codes($input). "
";if($input==""||$n==""){
$nm = " ";
}
$file = “info.php”;
$data = fopen($file, ‘a+’);
fwrite($data, $nm);
fclose($data);
}
function codes($ext){
$input = $_REQUEST[“input”];
$smile = array(
‘:)’ => ‘’,
‘;]’ => ‘’,
‘:|’ => ‘’,
‘:mrgreen:’ => ‘’,
‘:razz:’ => ‘’,
‘:?’ => ‘’,
‘>:[’ => ‘’,
‘:(’ => ‘’,
‘:O’ => ‘’,
‘:panic:’ => ‘’,
‘:eek:’ => ‘’,
‘:rolleyes:’ => ‘’,
‘’ => ‘
’,
‘:[’ => ‘’,
‘:biggrin:’ => ‘’,
‘:uhh:’ => ‘’,
‘:tup:’ => ‘’,
‘8D’ => ‘’,
‘:suspect:’ => ‘’,
‘:fuming’ => ‘’,
‘:pennies:’ => ‘’,
'<' => '<',
'>' => '>',
'&' => '&',
'http://' => '<a target="_blank" href="'. $input. '. "'. '>'. $input. '</a>',
);
return (strtr($ext, $smile));
}
function htmlcheck($ext){
$code = array(
‘<’ => ‘<’,
‘>’ => ‘>’,
‘&’ => ‘&’
);
return (strtr($ext, $code));
}
?>
[/php]