Compare commits
3 Commits
3098e5c010
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 48128e78ab | |||
| 50bf7b13a7 | |||
| 76687cc725 |
28
index.php
28
index.php
@@ -1,9 +1,16 @@
|
||||
<?php
|
||||
|
||||
$files = array();
|
||||
foreach (scandir("/home/") as $file) {
|
||||
if (in_array($file, array('.', '..'))) continue;
|
||||
$files[$file] = filemtime("/home/".$file);
|
||||
|
||||
foreach (scandir("/home/") as $user) {
|
||||
if (in_array($user, array('.', '..'))) continue;
|
||||
|
||||
$public_html = "/home/$user/public_html";
|
||||
|
||||
// Sprawdź czy katalog public_html istnieje
|
||||
if (is_dir($public_html)) {
|
||||
$files[$user] = filemtime($public_html);
|
||||
}
|
||||
}
|
||||
|
||||
arsort($files);
|
||||
@@ -48,14 +55,27 @@ $slogan = $slogans[rand(0, count($slogans) - 1)];
|
||||
<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>";
|
||||
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';
|
||||
|
||||
?>
|
||||
|
||||
43
news.php
43
news.php
@@ -1,69 +1,60 @@
|
||||
<?php
|
||||
include 'header.php'
|
||||
?>
|
||||
|
||||
<h1>> News </h1>
|
||||
<h1>> Niusy </h1>
|
||||
<article id="content">
|
||||
|
||||
<h2> 2025/10/09 </h2>
|
||||
<p>
|
||||
Introduced <a href="https://cloud.tylda.org">nextcloud</a> instance. We're slowly reaching linux and fediverse community promoting the initiative.
|
||||
<ul>
|
||||
<li>Założyliśmy instancję <a href="https://cloud.tylda.org">nextcloud</a>. Powoli odzywamy się do środowiska linuxowego i fediverse promując inicjatywę.</li>
|
||||
<li>Niusy dodane na główną</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<h2> 2025/10/08 </h2>
|
||||
<p>
|
||||
Introduced <a href="/users.php">users page</a>, which lists all user's web pages.
|
||||
Nowa strona listująca wszystkich <a href="/users.php">użytkowników</a>.
|
||||
</p>
|
||||
|
||||
<h2> 2025/10/03 </h2>
|
||||
<p>
|
||||
Work on interactive layout for web. Mostly css @media stuff.
|
||||
Poprawiony interaktywny layout strony. Głównie css @media.
|
||||
</p>
|
||||
|
||||
<h2> 2025/09/30 </h2>
|
||||
<p>
|
||||
Use SSH key as default way of logging in and other minor changes to the registration form.
|
||||
Formularz rejestracji wymusza podanie klucza SSH.
|
||||
</p>
|
||||
|
||||
<h2> 2025/09/25 </h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li>Basic gemini setup is done. We deicided to go with satellite server.</li>
|
||||
<li>Wiki page.</li>
|
||||
<li>Podstawowe wsparcie gemini protocol. Używamy serwera satellite</li>
|
||||
<li>Strona wiki</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<h2> 2025/09/20 </h2>
|
||||
<p>
|
||||
<ul>
|
||||
<li>
|
||||
Smoorg joins tylda volunteering as admin and developer.
|
||||
</li>
|
||||
<li>
|
||||
Registration form foundation
|
||||
</li>
|
||||
<li>Smoorg dołącza do tyldy jako wolontariusz, developer i admin</li>
|
||||
<li>Dodany podstawowy formularz rejestracji</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
|
||||
<h2> 2025/09/18 </h2>
|
||||
<p>
|
||||
v0id1st introduced basic setup
|
||||
v0id1st stworzył podwaliny serwera
|
||||
<ul>
|
||||
<li>script to invite users</li>
|
||||
<li>irc configuration</li>
|
||||
<li>basic html webpage</li>
|
||||
<li>skrypt dodający użytkowników</li>
|
||||
<li>konfiguracja irc</li>
|
||||
<li>podstawowa strona html+php</li>
|
||||
</ul>
|
||||
</p>
|
||||
|
||||
<h2> 2025/07/22 </h2>
|
||||
<p>
|
||||
Early work is getting done. VPS hosted, zfs volumes per user.
|
||||
Początek prac.
|
||||
</p>
|
||||
|
||||
|
||||
</article>
|
||||
|
||||
<?php
|
||||
include 'footer.php'
|
||||
?>
|
||||
|
||||
@@ -22,7 +22,7 @@ Otrzymaliśmy twój formularz rejestracji. Oczekuj na dalsze informacje na swoje
|
||||
$interests=htmlspecialchars($_POST["interests"]);
|
||||
$pubkey=htmlspecialchars($_POST["pubkey"]);
|
||||
|
||||
$to = 'smoorg@tylda.org';
|
||||
$to = 'register@tylda.org';
|
||||
$subject = 'Rejestracja usera ' . "$nick";
|
||||
$message = "Nick:\t\t$nick\n" .
|
||||
"Email:\t\t$email\n" .
|
||||
|
||||
@@ -72,7 +72,7 @@ article#content {
|
||||
border-color: var(--main);
|
||||
border-style: double;
|
||||
border-radius: 5px;
|
||||
margin-top: 2rem;
|
||||
margin: 2rem 0;
|
||||
padding: 1rem;
|
||||
gap: .5rem;
|
||||
padding-block: 2rem;
|
||||
@@ -160,8 +160,36 @@ ul li {
|
||||
}
|
||||
|
||||
@media only screen
|
||||
and (min-width: 480px)
|
||||
and (min-width: 576px)
|
||||
and (max-width: 768px) {
|
||||
header#menu {
|
||||
flex-direction: column;
|
||||
}
|
||||
.form-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
pre.ascii {
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
}
|
||||
@media only screen
|
||||
and (min-width: 768px)
|
||||
and (max-width: 992px) {
|
||||
header#menu {
|
||||
flex-direction: column;
|
||||
}
|
||||
.form-row {
|
||||
flex-direction: row;
|
||||
}
|
||||
}
|
||||
@media only screen
|
||||
and (min-width: 992px)
|
||||
and (max-width: 1200px) {
|
||||
}
|
||||
|
||||
@media only screen
|
||||
and (min-width: 1200px)
|
||||
and (max-width: 1400px) {
|
||||
header#menu {
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -170,12 +198,22 @@ ul li {
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 480px) {
|
||||
@media only screen and (max-width: 576px) {
|
||||
header#menu {
|
||||
flex-direction: column;
|
||||
margin-bottom: 2rem;
|
||||
}
|
||||
article {
|
||||
article#content {
|
||||
font-size: 1em;
|
||||
border: none;
|
||||
border-color: none;
|
||||
border-style: none;
|
||||
border-radius: 0;
|
||||
padding: 0rem;
|
||||
}
|
||||
pre.ascii {
|
||||
font-size: 0.5rem;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
28
stats.php
Normal file
28
stats.php
Normal file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
include 'header.php';
|
||||
|
||||
ini_set("display_errors", "On");
|
||||
error_reporting(E_ALL);
|
||||
|
||||
$users = array();
|
||||
foreach (scandir("/home/") as $file) {
|
||||
if (in_array($file, array('.', '..'))) continue;
|
||||
array_push($users, $file);
|
||||
}
|
||||
?>
|
||||
|
||||
<h1>> Statystyki</h1>
|
||||
<article id="content">
|
||||
Statystyki z tego serwera tilde
|
||||
<ul>
|
||||
<li>Liczba użytkowników: <?=count($users);?></li>
|
||||
<li>Liczba wiadomości na IRC: TODO </li>
|
||||
<li>Liczba wiadomości na IRC dziś: TODO</li>
|
||||
<li>Ostatni server load: <?=shell_exec("/usr/bin/top -n 1 | grep Load | cut -d' ' -f3,4,5");?></li>
|
||||
<li>Wolny RAM: <?=shell_exec("/usr/bin/free -h | grep Mem | awk '{print \$NF}'");?>
|
||||
</ul>
|
||||
</article>
|
||||
|
||||
<?php
|
||||
include 'footer.php';
|
||||
?>
|
||||
Reference in New Issue
Block a user