<html>
<head>
<title>God Jul</title>
</head>
<body style="color: green; background-color: black;">
<pre>
<?php
if (!isset($_GET['size']) || !is_numeric($_GET['size']) || $_GET['size'] > 150)
$_GET['size'] = 15;
$star1 = '__/\\__';
$star2 = '\\/ \\/';
$star3 = '/\\ \\';
$star4 = 'จจ\\/จจ';
echo '<span style="color: yellow;">'.str_pad($star1, $_GET['size']+3, ' ', STR_PAD_LEFT)."\n";
echo str_pad($star2, $_GET['size']+3, ' ', STR_PAD_LEFT)."\n";
echo str_pad($star3, $_GET['size']+3, ' ', STR_PAD_LEFT)."\n";
echo str_pad($star4, $_GET['size']+3, ' ', STR_PAD_LEFT)."\n</span>";
for ($i = 2; $i < $_GET['size']*2; $i+=2) {
$str = str_pad(str_repeat ( '*', $i), $_GET['size']- ($i/2) + $i, ' ', STR_PAD_LEFT);
if (rand(1,10) > 5) {
$pos = rand($_GET['size']- ($i/2), $_GET['size']- ($i/2) + $i-1);
$str = substr($str, 0, $pos).'<span style="color: red; text-decoration: blink;">@</span>'.substr($str, $pos+1);
}
echo $str."\n";
}
$str = str_pad('****', $_GET['size']+2, ' ', STR_PAD_LEFT)."\n";
echo $str;
echo $str;
echo $str;
?>
</pre>
</body>
</html>