mirror of
https://git.v0l.io/Kieran/void.cat.git
synced 2025-09-29 17:53:06 +02:00
update a few bits
This commit is contained in:
@@ -114,7 +114,9 @@
|
|||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div id="footer">
|
<div id="footer">
|
||||||
<a href="https://github.com/v0l/baba">Github</a>
|
<a href="https://github.com/v0l/void.cat">Github</a>
|
||||||
|
| <a href="https://twitter.com/chkn10deez">Twitter</a>
|
||||||
|
| Hosting: <?php echo explode("\t", exec("du -sh " . _FILEPATH))[0]; ?>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<script src="public/main.js"></script>
|
<script src="public/main.js"></script>
|
||||||
|
@@ -119,15 +119,6 @@ video {
|
|||||||
line-height: 38px;
|
line-height: 38px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#footer a {
|
|
||||||
border-right: 1px solid #B3B3B3;
|
|
||||||
padding-right: 5px;
|
|
||||||
}
|
|
||||||
|
|
||||||
#footer a:last-child {
|
|
||||||
border-right: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
#stats
|
#stats
|
||||||
{
|
{
|
||||||
width: 500px;
|
width: 500px;
|
||||||
|
@@ -1,7 +1,36 @@
|
|||||||
<?php
|
<?php
|
||||||
|
function formatSizeUnits($bytes)
|
||||||
|
{
|
||||||
|
if ($bytes >= 1073741824)
|
||||||
|
{
|
||||||
|
$bytes = number_format($bytes / 1073741824, 2) . ' GB';
|
||||||
|
}
|
||||||
|
elseif ($bytes >= 1048576)
|
||||||
|
{
|
||||||
|
$bytes = number_format($bytes / 1048576, 2) . ' MB';
|
||||||
|
}
|
||||||
|
elseif ($bytes >= 1024)
|
||||||
|
{
|
||||||
|
$bytes = number_format($bytes / 1024, 2) . ' kB';
|
||||||
|
}
|
||||||
|
elseif ($bytes > 1)
|
||||||
|
{
|
||||||
|
$bytes = $bytes . ' bytes';
|
||||||
|
}
|
||||||
|
elseif ($bytes == 1)
|
||||||
|
{
|
||||||
|
$bytes = $bytes . ' byte';
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
$bytes = '0 bytes';
|
||||||
|
}
|
||||||
|
|
||||||
|
return $bytes;
|
||||||
|
}
|
||||||
|
|
||||||
|
$size = filesize($f->path);
|
||||||
?>
|
?>
|
||||||
<div id="stats">
|
<div id="stats">
|
||||||
<div class="header">Views: <?php echo $f->views; ?></div>
|
<div class="header">Views: <?php echo $f->views; ?> <font style="float: right">Size: <?php echo formatSizeUnits($size); ?></font></div>
|
||||||
|
|
||||||
</div>
|
</div>
|
Reference in New Issue
Block a user