slogans, homedirs
This commit is contained in:
		
							parent
							
								
									ecb59b535b
								
							
						
					
					
						commit
						ac280050e3
					
				@ -1,5 +1,5 @@
 | 
				
			|||||||
<footer id="footer">
 | 
					<footer id="footer">
 | 
				
			||||||
<a class="link" href="#">Źródło strony</a>
 | 
					<a class="link" href="https://tylda.org/git/v0id1st/main">Źródło strony</a>
 | 
				
			||||||
<a class="link" href="/stats.php">Statystyki</a>
 | 
					<a class="link" href="/stats.php">Statystyki</a>
 | 
				
			||||||
</footer>
 | 
					</footer>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
				
			|||||||
@ -1,14 +1,14 @@
 | 
				
			|||||||
<html lang="pl">
 | 
					<html lang="pl">
 | 
				
			||||||
<head>
 | 
					<head>
 | 
				
			||||||
    <link rel="stylesheet" type="text/css" href="static/css/main.css">
 | 
					    <link rel="stylesheet" type="text/css" href="static/css/main.css">
 | 
				
			||||||
 | 
					    <meta charset="utf-8">
 | 
				
			||||||
    <title>~tylda.org~ polskie tildeverse</title>
 | 
					    <title>~tylda.org~ polskie tildeverse</title>
 | 
				
			||||||
</head>
 | 
					</head>
 | 
				
			||||||
<body>
 | 
					<body>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<div class="main-content">
 | 
					<div class="main-content">
 | 
				
			||||||
    <header id="menu">
 | 
					    <header id="menu">
 | 
				
			||||||
        <a class="active" href="/">~tylda.org</a>
 | 
					        <a class="active" href="/">~tylda.org~</a>
 | 
				
			||||||
        <a href="/wiki/">wiki</a>
 | 
					        <a href="/wiki/">wiki</a>
 | 
				
			||||||
        <a href="/git/">git</a>
 | 
					        <a href="/git/">git</a>
 | 
				
			||||||
        <a href="/register.php">dołącz</a>
 | 
					        <a href="/register.php">dołącz</a>
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										44
									
								
								index.php
									
									
									
									
									
								
							
							
						
						
									
										44
									
								
								index.php
									
									
									
									
									
								
							@ -1,14 +1,56 @@
 | 
				
			|||||||
<?php
 | 
					<?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';
 | 
					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">
 | 
					<div id="top-bar">
 | 
				
			||||||
    <h1>> Strona Główna</h1>
 | 
					    <h1>> Strona Główna</h1>
 | 
				
			||||||
</div>
 | 
					</div>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<article id="content">
 | 
					<article id="content">
 | 
				
			||||||
Siemano
 | 
					<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, 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>
 | 
					</article>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<?php
 | 
					<?php
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										13
									
								
								slogans.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								slogans.txt
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,13 @@
 | 
				
			|||||||
 | 
					internet, zanim stał się korpo.
 | 
				
			||||||
 | 
					własny kąt w cyfrowym wszechświecie.
 | 
				
			||||||
 | 
					gdzie terminal to cały świat.
 | 
				
			||||||
 | 
					wolność, prostota, shell.
 | 
				
			||||||
 | 
					poczta, blog, IRC. Wszystko, czego potrzebujesz.
 | 
				
			||||||
 | 
					nie jesteś produktem.
 | 
				
			||||||
 | 
					mniej JavaScriptu, więcej człowieka.
 | 
				
			||||||
 | 
					terminal, nie timeline.
 | 
				
			||||||
 | 
					social computing w wersji tekstowej.
 | 
				
			||||||
 | 
					bo prawdziwi ludzie używają `vi`.
 | 
				
			||||||
 | 
					retro jest teraz.
 | 
				
			||||||
 | 
					jesteśmy tu dla `echo "hello world"`.
 | 
				
			||||||
 | 
					dzwoń do nas przez `write`.
 | 
				
			||||||
@ -67,13 +67,15 @@ div#top-bar {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
article#content {
 | 
					article#content {
 | 
				
			||||||
    display: flex;
 | 
					    display: flex;
 | 
				
			||||||
    flex-direction: row;
 | 
					    flex-direction: column;
 | 
				
			||||||
    border-width: 5px;
 | 
					    border-width: 5px;
 | 
				
			||||||
    border-color: var(--main);
 | 
					    border-color: var(--main);
 | 
				
			||||||
    border-style: double;
 | 
					    border-style: double;
 | 
				
			||||||
    border-radius: 5px;
 | 
					    border-radius: 5px;
 | 
				
			||||||
    margin-top: 2rem;
 | 
					    margin-top: 2rem;
 | 
				
			||||||
    padding: 1rem;
 | 
					    padding: 1rem;
 | 
				
			||||||
 | 
					    gap: 8px;
 | 
				
			||||||
 | 
					    padding-block: 2rem;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
footer#footer {
 | 
					footer#footer {
 | 
				
			||||||
@ -99,3 +101,15 @@ footer#footer > *:not(:last-child)::after {
 | 
				
			|||||||
    margin-left: 0.7rem;
 | 
					    margin-left: 0.7rem;
 | 
				
			||||||
    color: var(--main);
 | 
					    color: var(--main);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					pre.ascii {
 | 
				
			||||||
 | 
					    margin-bottom: 2rem;
 | 
				
			||||||
 | 
					    font-size: 15px;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					.user_home {
 | 
				
			||||||
 | 
					  display: grid;
 | 
				
			||||||
 | 
					  grid-template-columns: 100px 30px 100px 100px 40px 120px 15px;
 | 
				
			||||||
 | 
					  font-family: monospace;
 | 
				
			||||||
 | 
					  white-space: pre;
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user