Schick mal die Index.php
ich seh mir das mal an.
ich seh mir das mal an.
<tr>
<td id="key">Account Backup:</td>
<td id="value"><?php try {$filesystem = new COM('Scripting.FileSystemObject'); $file = $filesystem->GetFile("$path\ACCOUNT_DBF.bak"); $size = $file->Size(); echo format_bytes($size); } catch (Exception $e) { echo $e->getMessage(); }?></td>
</tr>
<tr>
<td id="key">Character Backup:</td>
<td id="value"><?php try {$filesystem = new COM('Scripting.FileSystemObject'); $file = $filesystem->GetFile("$path\CHARACTER_01_DBF.bak"); $size = $file->Size(); echo format_bytes($size); } catch (Exception $e) { echo $e->getMessage(); }?></td>
</tr>
<tr>
<td id="key">Website Backup:</td>
<td id="value"><?php try {$filesystem = new COM('Scripting.FileSystemObject'); $file = $filesystem->GetFile("$path\WEBSITE_DBF.bak"); $size = $file->Size(); echo format_bytes($size); } catch (Exception $e) { echo $e->getMessage(); }?></td>
</tr>
<tr>
<td id="key">Logging Datenbank:</td>
<td id="value"><?php try {$filesystem = new COM('Scripting.FileSystemObject'); $file = $filesystem->GetFile("$path2\LOGGING_01_DBF.mdf"); $size = $file->Size(); echo format_bytes($size); } catch (Exception $e) { echo $e->getMessage(); }?></td>
</tr>
function format_bytes($bytes) {
if ($bytes < 1024) return $bytes.' B';
elseif ($bytes < 1048576) return round($bytes / 1024, 2).' KB';
elseif ($bytes < 1073741824) return round($bytes / 1048576, 2).' MB';
elseif ($bytes < 1099511627776) return round($bytes / 1073741824, 2).' GB';
else return round($bytes / 1099511627776, 2).' TB';
}