43 lines
1.2 KiB
PHP
43 lines
1.2 KiB
PHP
<?=$text['mail']['adresse'];?>
|
|
<?=$text['mail']['last_name'].', '.$text['mail']['first_name'];?>
|
|
|
|
|
|
<?=$text['mail']['subject'];?>
|
|
|
|
|
|
<?php
|
|
$Document = strip_tags($text['mail']['text'],$strip_tags);
|
|
|
|
$Rules = array ('@<script[^>]*?>.*?</script>@si',
|
|
'@<[\/\!]*?[^<>]*?>@si',
|
|
'@([\r\n])[\s]+@',
|
|
'@&(quot|#34);@i',
|
|
'@&(amp|#38);@i',
|
|
'@&(lt|#60);@i',
|
|
'@&(gt|#62);@i',
|
|
'@&(nbsp|#160);@i',
|
|
'@&(iexcl|#161);@i',
|
|
'@&(cent|#162);@i',
|
|
'@&(pound|#163);@i',
|
|
'@&(copy|#169);@i',
|
|
'@&(reg|#174);@i',
|
|
'@&#(d+);@e'
|
|
);
|
|
$Replace = array ('',
|
|
'',
|
|
'',
|
|
'',
|
|
'&',
|
|
'<',
|
|
'>',
|
|
' ',
|
|
chr(161),
|
|
chr(162),
|
|
chr(163),
|
|
chr(169),
|
|
chr(174),
|
|
'chr()'
|
|
);
|
|
echo preg_replace($Rules, $Replace, $Document);
|
|
?>
|