3 Commits

3 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ foreach (scandir("/home/") as $user) {
}
arsort($files);
$recent = $files;
$recent = array_slice($files, 0, 10);
include 'header.php';
@@ -71,10 +71,11 @@ if (!empty($activeUsers)) {
<article id="content">
<h2>Ostatnio edytowane strony:</h2>
<p class="user_home" style="margin-bottom: 1rem">$ ls -lt /home/</p>
<p class="user_home" style="margin-bottom: 1rem">$ ls -lt /home/ | head -n 10</p>
<?php
foreach($recent as $user => $date) {
echo "<a class=\"link\" href=\"/~".$user."/\">
<p class=\"user_home\">
<span>drwxr-xr-x</span>
@@ -86,6 +87,7 @@ foreach($recent as $user => $date) {
<span>".$user."</span>
</p>
</a>";
}
?>

BIN
stats.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -15,7 +15,6 @@ $Extra = new ParsedownExtra();
</div>
<article id="content">
<p>Artykuły na naszej wiki:</p>
<?php
@@ -39,7 +38,7 @@ foreach (glob("source/*.md") as $file)
foreach ($categories as $category)
{
echo '<b> > '.ucwords($category).'</b>';
echo '<h3> > '.ucwords($category).'</h3>';
echo '<ul>';
$article_titles = [];