wiki/index.php

64 lines
2.6 KiB
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$files = array();
foreach (scandir("/home/") as $file) {
if (in_array($file, array('.', '..'))) continue;
$files[$file] = filemtime("/home/".$file);
}
arsort($files);
$recent = $files;
include 'header.php';
$slogans = file("slogans.txt");
$slogan = $slogans[rand(0, count($slogans) - 1)];
?>
<pre class="ascii">
/$$ /$$ /$$
| $$ | $$ | $$
/$$$$$$ /$$ /$$| $$ /$$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$ /$$$$$$
|_ $$_/ | $$ | $$| $$ /$$__ $$ |____ $$ /$$__ $$ /$$__ $$ /$$__ $$
| $$ | $$ | $$| $$| $$ | $$ /$$$$$$$ | $$ \ $$| $$ \__/| $$ \ $$
| $$ /$$| $$ | $$| $$| $$ | $$ /$$__ $$ | $$ | $$| $$ | $$ | $$
| $$$$/| $$$$$$$| $$| $$$$$$$| $$$$$$$ /$$| $$$$$$/| $$ | $$$$$$$
\___/ \____ $$|__/ \_______/ \_______/|__/ \______/ |__/ \____ $$
/$$ | $$ /$$ \ $$
| $$$$$$/ | $$$$$$/
\______/ \______/
</pre>
<i style="margin-bottom: 2rem;"><?php echo $slogan; ?></i>
<div id="top-bar">
<h1>> Strona Główna</h1>
</div>
<article id="content">
<p>Wzorując się na <a href="https://tildeverse.org">tildeverse.org</a> tworzymy polskojęzyczną przestrzeń tilde.</p>
<p><b>tylda.org</b> to wspólny serwer linuksowy dla ludzi, którzy lubią prostotę, wolność i internet z czasów, gdy wszystko było bardziej tekstowe.</p>
<p>Możesz tu prowadzić bloga w Markdownie, tworzyć własne strony WWW, kapsuły gemini, korzystać z maila, czatu IRC i terminala albo po prostu eksplorować i uczyć się Linuksa.</p>
<p>Nie ma reklam, lajków, followersów jest społeczność, współdzielenie wiedzy i dobre oldschoolowe wibracje.</p>
<p>To miejsce powstało z potrzeby stworzenia własnego „kąta” w internecie minimalistycznego, bezpośredniego, z klimatem dawnych shell accountów.</p>
<p>Jeśli szukasz alternatywy dla współczesnej sieci dobrze trafiłeś.</p>
<p>Zasady? Szanuj innych. Nie rób syfu. I baw się dobrze. :)</p>
</article>
<article id="content">
<h2>Ostatnio edytowane strony:</h2>
<p class="user_home" style="margin-bottom: 1rem">$ ls -lt /home/</p>
<?php
foreach($recent as $user => $date) {
echo "<a class=\"link\" href=\"/~".$user."/\"><p class=\"user_home\"><span>drwxr-xr-x</span><span>".rand(1,9)."</span><span>".$user."</span><span>".$user."</span><span>".rand(1,19)."</span><span>".date("M d H:i", $date)."</span><span>".$user."</span></p></a>";
}
?>
</article>
<?php
include 'news.php';
include 'footer.php';
?>