All pastes #209493 Raw Edit

Someone

public text v1 · immutable
#209493 ·published 2006-10-19 05:37 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>silenceisdefeat.org/~eddie</title>
<style type="text/css">
<!--
.uptime {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	color: #333;
	text-decoration: none;
	margin: 0px;
	padding: 2px;
	position: absolute;
	right: 10px;
	top: 5px;
	border-bottom: 1px solid #000;
}

.txt {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	text-decoration: none;
	font-size: 12px;
	color: #000;
	margin: 0px;
	padding: 16px;
	float: left;
	margin-top: 30px;
	border-left: 4px solid #666;
	background-color: #ccc;
}

-->
</style>
</head>

<body>
<div class="uptime">
<?php 
   $uptime = passthru ("/usr/bin/uptime");
   echo "$uptime<br />";
?></div>


<p align="left" class="txt">
<b>Who's online<u>:</u></b><br />
<?php
$users = passthru ("/usr/bin/users");
//echo "$users";

$myArray = explode(' ', $users);

print_r($myArray);

foreach ($myArray as $user) {
    echo "<a href=\"http://silenceisdefeat.org/~" . htmlspecialchars($user) . '">' . htmlspecialchars($user) . "</a><br />\n";
}

?>

</p>
</body>
</html>