forked from tylda-public/main
Compare commits
3 Commits
d2783fc22f
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 11f199e84e | |||
| f02a616b54 | |||
|
|
7c86600244 |
@@ -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>";
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user