1 2 3 4 5 6 7 8 9 10 11 12 13 14
| error_reporting(E_ALL);
setlocale(LC_TIME, 'fr_FR.utf8');
date_default_timezone_set('Europe/Paris');
include('/var/www/error/utils.php');
$html = base64_decode(str_replace('ø', "\n", $argv[1]));
$html = str_replace('></button', '> </button', $html);
$html = usePhpTidy($html); // une fonction qui appel Tidy
$html = str_replace('> </button>', '></button>', $html);
$html = str_replace('<meta charset="utf-8"/>', '<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>', $html);
$html = gzencode($html, 9, FORCE_GZIP);
echo $html; |
Partager