1
0
mirror of https://github.com/cottow/6paster.git synced 2024-05-19 06:50:10 +00:00

Updated the HTML tags for PHP sourcecode to HTML5

This commit is contained in:
Cybertinus
2016-01-12 13:19:02 +01:00
parent c3da76f38c
commit 17cb85cd50

View File

@ -2,9 +2,17 @@
if (substr($content, 0, 5) == '<?php')
{
header('Content-type: text/html');
echo '<html><body>';
echo '<!DOCTYPE html>
<html>
<head>
<title>Paste: PHP sourcecode</title>
</head>
<body>
<main>';
highlight_string($content);
echo '</body></html>';
echo '</main>
</body>
</html>';
}
else
{