This commit is contained in:
Karl Hudgell 2015-07-03 11:09:33 +01:00
parent 4e0035b998
commit c36c3d728a
3 changed files with 25 additions and 24 deletions

View File

@ -16,16 +16,17 @@ $madsonicport = "8087";
$plexport = "32400"; $plexport = "32400";
$squeezeport = "9000"; $squeezeport = "9000";
$drive1 = "c:"; // Set the hard drives to display $drive1 = "C:"; // Set the hard drives to display
$drive2 = "d:"; $drive2 = "D:";
$drive3 = "e:"; $drive3 = "E:";
$drive4 = "f:"; $drive4 = "F:";
$drive5 = "g:"; $drive5 = "G:";
$drive6 = "h:"; $drive6 = "H:";
$drive7 = "j:"; $drive7 = "J:";
$server1name = ""; $server1name = "";
$server1url = "home.k-world.me.uk"; $server1url = "home.k-world.me.uk";
$server1urltest = "http://home.k-world.me.uk";
$server2name = "Duly Server"; $server2name = "Duly Server";
$server2url = "duly.ml"; $server2url = "duly.ml";
$server3name = ""; $server3name = "";

View File

@ -28,7 +28,7 @@ indicateSelected(formref.switchcontrol)
</head> </head>
<body> <body>
<?php include 'config.php';?>
<?php <?php
/** /**
@ -42,7 +42,7 @@ indicateSelected(formref.switchcontrol)
require_once 'DiskStatus.class.php'; require_once 'DiskStatus.class.php';
try { try {
$diskStatusC = new DiskStatus('c:'); $diskStatusC = new DiskStatus("$drive1");
$freeSpaceC = $diskStatusC->freeSpace(); $freeSpaceC = $diskStatusC->freeSpace();
$totalSpaceC = $diskStatusC->totalSpace(); $totalSpaceC = $diskStatusC->totalSpace();
@ -54,7 +54,7 @@ try {
} }
try { try {
$diskStatus1 = new DiskStatus('d:'); $diskStatus1 = new DiskStatus("$drive2");
$freeSpace1 = $diskStatus1->freeSpace(); $freeSpace1 = $diskStatus1->freeSpace();
$totalSpace1 = $diskStatus1->totalSpace(); $totalSpace1 = $diskStatus1->totalSpace();
@ -65,7 +65,7 @@ try {
exit(); exit();
} }
try { try {
$diskStatus2 = new DiskStatus('e:'); $diskStatus2 = new DiskStatus("$drive3");
$freeSpace2 = $diskStatus2->freeSpace(); $freeSpace2 = $diskStatus2->freeSpace();
$totalSpace2 = $diskStatus2->totalSpace(); $totalSpace2 = $diskStatus2->totalSpace();
@ -77,7 +77,7 @@ try {
} }
try { try {
$diskStatus3 = new DiskStatus('f:'); $diskStatus3 = new DiskStatus("$drive4");
$freeSpace3 = $diskStatus3->freeSpace(); $freeSpace3 = $diskStatus3->freeSpace();
$totalSpace3 = $diskStatus3->totalSpace(); $totalSpace3 = $diskStatus3->totalSpace();
@ -89,7 +89,7 @@ try {
} }
try { try {
$diskStatus4 = new DiskStatus('g:'); $diskStatus4 = new DiskStatus("$drive5");
$freeSpace4 = $diskStatus4->freeSpace(); $freeSpace4 = $diskStatus4->freeSpace();
$totalSpace4 = $diskStatus4->totalSpace(); $totalSpace4 = $diskStatus4->totalSpace();
@ -101,7 +101,7 @@ try {
} }
try { try {
$diskStatus5 = new DiskStatus('h:'); $diskStatus5 = new DiskStatus("$drive6");
$freeSpace5 = $diskStatus5->freeSpace(); $freeSpace5 = $diskStatus5->freeSpace();
$totalSpace5 = $diskStatus5->totalSpace(); $totalSpace5 = $diskStatus5->totalSpace();
@ -113,7 +113,7 @@ try {
} }
try { try {
$diskStatus6 = new DiskStatus('j:'); $diskStatus6 = new DiskStatus("$drive7");
$freeSpace6 = $diskStatus6->freeSpace(); $freeSpace6 = $diskStatus6->freeSpace();
$totalSpace6 = $diskStatus6->totalSpace(); $totalSpace6 = $diskStatus6->totalSpace();
@ -130,31 +130,31 @@ try {
</p> </p>
<table width='190' border='0' cellspacing='0' cellpadding='1'> <table width='190' border='0' cellspacing='0' cellpadding='1'>
<tr><td BGCOLOR='#0066FF'><font color='white'>Disk Space</font></td></tr> <tr><td BGCOLOR='#0066FF'><font color='white'>Disk Space</font></td></tr>
<tr><td BGCOLOR='#FFFFFF'>C:\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</td></tr>
<tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidthC ?>px"><?= $diskStatusC->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidthC ?>px"><?= $diskStatusC->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>D:\<?= $freeSpace1 ?> (of <?= $totalSpace1 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive2;?>\<?= $freeSpace1 ?> (of <?= $totalSpace1 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth1 ?>px"><?= $diskStatus1->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth1 ?>px"><?= $diskStatus1->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>E:\<?= $freeSpace2 ?> (of <?= $totalSpace2 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive3;?>\<?= $freeSpace2 ?> (of <?= $totalSpace2 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth2 ?>px"><?= $diskStatus2->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth2 ?>px"><?= $diskStatus2->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>F:\<?= $freeSpace3 ?> (of <?= $totalSpace3 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive4;?>\<?= $freeSpace3 ?> (of <?= $totalSpace3 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth3 ?>px"><?= $diskStatus3->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth3 ?>px"><?= $diskStatus3->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>G:\<?= $freeSpace4 ?> (of <?= $totalSpace4 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive5;?>\<?= $freeSpace4 ?> (of <?= $totalSpace4 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth4 ?>px"><?= $diskStatus4->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth4 ?>px"><?= $diskStatus4->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>H:\<?= $freeSpace5 ?> (of <?= $totalSpace5 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive6;?>\<?= $freeSpace5 ?> (of <?= $totalSpace5 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth5 ?>px"><?= $diskStatus5->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth5 ?>px"><?= $diskStatus5->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>
<tr><td BGCOLOR='#FFFFFF'>J:\<?= $freeSpace6 ?> (of <?= $totalSpace6 ?>)</td></tr> <tr><td BGCOLOR='#FFFFFF'><?php echo $drive7;?>\<?= $freeSpace6 ?> (of <?= $totalSpace6 ?>)</td></tr>
<tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk"> <tr> <tr><td BGCOLOR='#FFFFFF'><div class="disk">
<div class="used" style="width: <?= $barWidth6 ?>px"><?= $diskStatus6->usedSpace() ?>%&nbsp;</div> <div class="used" style="width: <?= $barWidth6 ?>px"><?= $diskStatus6->usedSpace() ?>%&nbsp;</div>
</div></td></tr> </div></td></tr>

View File

@ -32,9 +32,9 @@ $configs['server_ip4'] = $server4url; // The Servers URL or IP to check.
# For services1 simply add new lines with the Name and port number. # For services1 simply add new lines with the Name and port number.
$configs['services2']['<a href="$http:$server1url" target="_blank">$server2name</a>'] = 80;
$configs['services3']['<a href="http://www.gowing.ga" target="_blank">Darren Server</a>'] = 80;
$configs['services1']['<a href="http://home.k-world.me.uk" target="_blank">Karl Server</a>'] = 80; $configs['services1']['<a href="http://home.k-world.me.uk" target="_blank">Karl Server</a>'] = 80;
$configs['services2']['<a href=\"$myurl:$cpadults\" target=\"_blank\">Adults</a>'] = 80;
$configs['services3']['<a href="http://www.gowing.ga" target="_blank">Darren Server</a>'] = 80;
$configs['services4']['<a href="http://smiffster.tk" target="_blank">Kris Server</a>'] = 80; $configs['services4']['<a href="http://smiffster.tk" target="_blank">Kris Server</a>'] = 80;