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

21 lines
303 B
PHP

<?php
if (isset($_GET['smart']) && substr($content, 0, 5) == '<?php')
{
header('Content-type: text/html');
echo '<!DOCTYPE html>
<html>
<head>
<title>Paste: PHP sourcecode</title>
</head>
<body>
<main>';
highlight_string($content);
echo '</main>
</body>
</html>';
}
else
{
echo $content;
}