3 Commits

3 changed files with 5 additions and 4 deletions

View File

@@ -14,7 +14,7 @@ foreach (scandir("/home/") as $user) {
} }
arsort($files); arsort($files);
$recent = $files; $recent = array_slice($files, 0, 10);
include 'header.php'; include 'header.php';
@@ -71,10 +71,11 @@ if (!empty($activeUsers)) {
<article id="content"> <article id="content">
<h2>Ostatnio edytowane strony:</h2> <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 <?php
foreach($recent as $user => $date) { foreach($recent as $user => $date) {
echo "<a class=\"link\" href=\"/~".$user."/\"> echo "<a class=\"link\" href=\"/~".$user."/\">
<p class=\"user_home\"> <p class=\"user_home\">
<span>drwxr-xr-x</span> <span>drwxr-xr-x</span>
@@ -86,6 +87,7 @@ foreach($recent as $user => $date) {
<span>".$user."</span> <span>".$user."</span>
</p> </p>
</a>"; </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> </div>
<article id="content"> <article id="content">
<p>Artykuły na naszej wiki:</p>
<?php <?php
@@ -39,7 +38,7 @@ foreach (glob("source/*.md") as $file)
foreach ($categories as $category) foreach ($categories as $category)
{ {
echo '<b> > '.ucwords($category).'</b>'; echo '<h3> > '.ucwords($category).'</h3>';
echo '<ul>'; echo '<ul>';
$article_titles = []; $article_titles = [];