<?php

//Include variables 
include("config.php");

//Now it's time to grab the cool stuff from the hard drive
//This one is not quite as straight forward.....
exec ("df -h", $x);
$count = 1;
while ($count < sizeof($x)) {
		list($drive[$count], $size[$count], $used[$count], $avail[$count], $percent[$count], $mount[$count]) = split(" +", $x[$count]);
		$percent_part[$count] = str_replace( "%", "", $percent[$count] );	
$count++;
}



?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>

<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
	<meta http-equiv="Pragma" content="no-cache">
	<link rel="stylesheet" type="text/css" href="style.css">
	<title>System</title>
</head>

<body bgcolor="#ffffff">
<? include ('output2.php'); ?>
<p align="center"><?php
echo $msg_generated;
?>
</body>

</html>
