forked from tylda-public/main
		
	Merge pull request 'feature/simplify-form' (#3) from feature/simplify-form into main
Reviewed-on: tylda-public/main#3
This commit is contained in:
		
						commit
						cdbd3140ba
					
				@ -35,6 +35,7 @@ $slogan = $slogans[rand(0, count($slogans) - 1)];
 | 
			
		||||
</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>
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										51
									
								
								register.php
									
									
									
									
									
								
							
							
						
						
									
										51
									
								
								register.php
									
									
									
									
									
								
							@ -1,7 +1,7 @@
 | 
			
		||||
<?php
 | 
			
		||||
include 'header.php';
 | 
			
		||||
 | 
			
		||||
if($_POST['email'] && $_POST['nick'] && $_POST['how']) {
 | 
			
		||||
if($_POST['email'] && $_POST['nick'] && $_POST['pubkey']) {
 | 
			
		||||
?>
 | 
			
		||||
 | 
			
		||||
<article>
 | 
			
		||||
@ -19,17 +19,17 @@ Otrzymaliśmy twój formularz rejestracji. Oczekuj na dalsze informacje na swoje
 | 
			
		||||
    $email=htmlspecialchars($_POST["email"]);
 | 
			
		||||
    $url=htmlspecialchars($_POST["url"]);
 | 
			
		||||
    $who=htmlspecialchars($_POST["who"]);
 | 
			
		||||
    $how=htmlspecialchars($_POST["how"]);
 | 
			
		||||
    $interests=htmlspecialchars($_POST["interests"]);
 | 
			
		||||
    $pubkey=htmlspecialchars($_POST["pubkey"]);
 | 
			
		||||
 | 
			
		||||
    $to      = 'smoorg@tylda.org';
 | 
			
		||||
    $subject = 'Rejestracja usera ' . "$nick";
 | 
			
		||||
    $message = "Nick: $nick\n" . 
 | 
			
		||||
	"Email: $email\n" .
 | 
			
		||||
	"Url: $url\n" .
 | 
			
		||||
	"Opowiedz coś na swój temat: $who\n" .
 | 
			
		||||
	"Jak do nas trafiłeś?: $how\n" .
 | 
			
		||||
	"Zainteresowania: $interests\n"
 | 
			
		||||
    $message = "Nick:\t\t$nick\n" . 
 | 
			
		||||
	"Email:\t\t$email\n" .
 | 
			
		||||
	"Url:\t\t$url\n" .
 | 
			
		||||
	"SSH:\t\t$pubkey\n" .
 | 
			
		||||
	"Opowiedz coś na swój temat:\t\t$who\n" .
 | 
			
		||||
	"Zainteresowania:\t\t$interests\n"
 | 
			
		||||
	;
 | 
			
		||||
    $headers = array(
 | 
			
		||||
        'From' => 'noreply@tylda.org',
 | 
			
		||||
@ -44,33 +44,32 @@ Otrzymaliśmy twój formularz rejestracji. Oczekuj na dalsze informacje na swoje
 | 
			
		||||
Poniższy formularz trafi do naszych administratorów, którzy go ocenią. Potraktuj go częściowo jako antyspam. Chcemy sensownych odpowiedzi na poniższe pytania. Posiadanie własnej strony też jest na duży plus.
 | 
			
		||||
<form action="register.php" method="POST">
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Email*</label>
 | 
			
		||||
    <label>
 | 
			
		||||
	Email
 | 
			
		||||
	<span color=red>*</span>
 | 
			
		||||
    </label>
 | 
			
		||||
    <input name="email" type="email" required>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Nick*</label>
 | 
			
		||||
    <label>
 | 
			
		||||
	Nick
 | 
			
		||||
	<span color=red>*</span>
 | 
			
		||||
    </label>
 | 
			
		||||
    <input name="nick" type="string" min=3 max=20 pattern="[a-zA-Z0-9]+" required>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>
 | 
			
		||||
	Klucz publiczny (posłuży ci do logowania)
 | 
			
		||||
	<span color=red>*</span>
 | 
			
		||||
	</br>
 | 
			
		||||
	NIE podawaj tu klucza prywatnego!
 | 
			
		||||
    </label>
 | 
			
		||||
    <textarea name="pubkey" rows 3 maxlength=200 required></textarea>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Strona WWW</label>
 | 
			
		||||
    <input name="url" type="url">
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Jak do nas trafiłeś?</label>
 | 
			
		||||
    <select name="how" required>
 | 
			
		||||
	<option selected></option>
 | 
			
		||||
	<option>komunikator (np. matrix, irc, xmpp)</option>
 | 
			
		||||
	<option>wyszukiwarka</option>
 | 
			
		||||
	<option>tildeeverse.org</option>
 | 
			
		||||
	<option>promocja w internecie</option>
 | 
			
		||||
	<option>polecenie</option>
 | 
			
		||||
	<option>inne</option>
 | 
			
		||||
    </select>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Zainteresowania</label>
 | 
			
		||||
    <textarea name="interests" maxlength=1000></textarea>
 | 
			
		||||
</div>
 | 
			
		||||
<div class="form-row">
 | 
			
		||||
    <label>Opowiedz coś na swój temat</label>
 | 
			
		||||
    <textarea name="who" rows=8 maxlength=1000"></textarea>
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user