blob: 3db46dde11efcd3d51e7d353b88b9390ec9f4ba7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
<?php
function microtime_float()
{
list($usec, $sec) = explode(" ", microtime());
return ((float)$usec + (float)$sec);
}
$time_start=microtime_float();
require_once('../ascii.class.inc.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
<?php
echo "<!-- you're welcome ".$_SERVER['REMOTE_ADDR']." -->\n";
echo "<!-- ".htmlspecialchars($_SERVER['HTTP_USER_AGENT']) . " -->\n\n";
?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>no content</title>
<link rel="Stylesheet" media="all" type="text/css" href="style.css">
</head>
<body bgcolor="black">
<div id="content_container">
<div id="content"><pre>
<?php
$ascii = new AsciiImage("./ascii");
$ascii->prepareImage();
$ascii->printImage();
?>
</pre></div>
<div id="footer_container">
<div id="footer">
<?php
$time_end=microtime_float();
$time=round(($time_end-$time_start)*1000,2);
$file=$ascii->dir."/".$ascii->image;
echo $time." ms ";
echo "» <a href=\"ascii/".basename($file)."\">".basename($ascii->image,'.'.EXT)."</a>\n";
?>
</div>
</div>
</div>
</body>
</html>
<?php
unset($ascii);
echo "<!-- EoF -->\n";
?>
|