I know, this is STRONGLY NOT RECOMMENDED, but please try this modification. After you modify it, then you have to enclose your snipped code by using and tag (without space):
Open your \include\class.format.php, and find this code:
//Format text for display..
function display($text) {
global $cfg;
$text=Format:($text); //take care of html special chars
if($cfg && $cfg->clickableURLS() && $text)
$text=Format:($text);
//Wrap long words...
$text =preg_replace_callback('/\w{75,}/',create_function('$matches','return wordwrap($matches,70,"\n",true);'),$text);
return nl2br($text);
}
function striptags($string) {
return strip_tags(html_entity_decode($string)); //strip all tags ...no mercy!
}
then replace with this following code:
//Format text for display..
function display($text) {
global $cfg;
//$text=Format:($text); //take care of html special chars
$text = str_replace('', '<pre>', $text);
$text = str_replace('', '</pre>', $text);
if($cfg && $cfg->clickableURLS() && $text)
$text=Format:($text);
//Wrap long words...
$text =preg_replace_callback('/\w{75,}/',create_function('$matches','return wordwrap($matches,70,"\n",true);'),$text);
return ($text);
}
function striptags($string) {
//return strip_tags(html_entity_decode($string)); //strip all tags ...no mercy!
return strip_tags($string); //strip all tags
}
function convertCode($string) {
$string = str_replace('<', '<', $string);
$string = str_replace('>', '>', $string);
return $string;
}
Open your \include\class.ticket.php file, and find this code:
',message='.db_input(Format:($msg)). //Tags/code stripped...meaning client can not send in code..etc
then replace with this following code:
',message='.db_input(Format:(Format:($msg))).
Sincerely,
Masino Sinaga