2015-07-05 07:54:49 +01:00
|
|
|
<?php include '../config.php';?>
|
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Disk Status Class - Example
|
|
|
|
*
|
|
|
|
* http://pmav.eu/stuff/php-disk-status/
|
|
|
|
*
|
|
|
|
* 22/Aug/2009
|
|
|
|
*/
|
|
|
|
|
|
|
|
require_once 'DiskStatus.class.php';
|
|
|
|
|
|
|
|
try {
|
|
|
|
$diskStatusC = new DiskStatus("$drive1");
|
|
|
|
|
|
|
|
$freeSpaceC = $diskStatusC->freeSpace();
|
|
|
|
$totalSpaceC = $diskStatusC->totalSpace();
|
|
|
|
$barWidthC = ($diskStatusC->usedSpace()/100) * 150;
|
|
|
|
|
|
|
|
} catch (Exception $e) {
|
|
|
|
echo 'Error ('.$e->getMessage().')';
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
catch (Exception $e) {
|
|
|
|
echo 'Error ('.$e->getMessage().')';
|
|
|
|
exit();
|
|
|
|
}
|
|
|
|
|
|
|
|
?>
|
2016-02-14 16:55:55 +00:00
|
|
|
<tr onclick="toggleNextRow(this)" >
|
|
|
|
<th style='text-align: left; background-color:#FFFFFF;'><font color='#0066FF'><?php echo $drive1;?>\<?= $freeSpaceC ?> (of <?= $totalSpaceC ?>)</font></th>
|
2015-07-05 07:54:49 +01:00
|
|
|
</tr>
|
|
|
|
<tr class="hiddenRow">
|
|
|
|
<td bgcolor='#FFFFFF'>
|
|
|
|
<div class="disk">
|
|
|
|
<div class="used" style="width: <?= $barWidthC ?>px"><?= $diskStatusC->usedSpace() ?>% </div>
|
|
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|