-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
31 lines (29 loc) · 838 Bytes
/
index.php
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>wwwsh</title>
<link rel="stylesheet" href="cmd.css" type="text/css">
<?php
$js = array("sys", "con", "ajax", "bin");
foreach ($js as $j) {
print "<script type='text/javascript' src='" . $j . ".js'></script>\n";
/*
echo "<script type='text/javascript'>\n";
foreach (file($j.".js") as $l) {
print $l;
}
echo "\n</script>\n";
*/
}
?>
</head>
<body onload="startSystem()">
<div id="screen">
Javascript required.
</div>
<div id="controlbar">
<a onclick="sys.restart()">Restart</a><a onclick="sys.exec('sh')">Launch Shell</a><a onclick="sys.con.clear()">Clear Screen</a><a id="clock" onclick="sys.exec('date')">Clock goes here</a>
</div>
<div id='footer'>Copyright © 2009 Mike Mallett</div>
</body>
</html>