tl: register.php > pt-BR

This commit is contained in:
Vitor Gonçalves 2023-12-02 14:35:21 -03:00
parent 147f01f74a
commit d21f1a1935
Signed by: vitorg
GPG Key ID: B90BF113DF56EB41
1 changed files with 27 additions and 27 deletions

View File

@ -12,12 +12,12 @@
<meta charset="UTF-8">
<meta name="description" content="Register for ~vern">
<link rel="stylesheet" href="//gcdn.vern.cc/vernsite/style.css">
<title>Registration | ~vern</title>
<title>Registro | ~vern</title>
</head>
<body>
<!--#include file="nav.php" -->
<p><b>If you can/do not want to share your email for ~vern registration, please contact an <a href=/pt-BR/admins>admin</a> so we can create one for you without one</b></p>
<p><b>Se você não pode ou não deseja compartilhar seu e-mail para se registrar no ~vern, contate um <a href=/pt-BR/admins>administrador</a> para que possamos criar uma conta sem um.</b></p>
<?php
function sanitize($str) {
$str = trim($str);
@ -39,24 +39,24 @@
if (!file_exists('/vm/' . $_POST['username'])) {
if (!file_exists("/var/spool/register/" . sanitize($_POST['username'])))
$username = sanitize($_POST['username']);
else $username_err = "A request for the username " . $_POST['username'] . " exists already. Try again later or choose a different username.";
else $username_err = "Um pedido para o username " . $_POST['username'] . " já existe. Tente novamente mais tarde ou escolha outro username.";
}
else $username_err = "Username is already in use";
else $username_err = "Username já está utilizado";
} else {
$username_err = "Invalid username. Username must be a valid GNU/Linux username (match $username_re)";
$username_err = "Username inválido. O username tem que ser um username GNU/Linux válido ($username_re)";
}
} else {
$username_err = "Username is required";
$username_err = "Username é necessário";
}
if (!empty($_POST['email'])) {
if (filter_var(sanitize($_POST['email']), FILTER_VALIDATE_EMAIL)) {
$email = sanitize($_POST['email']);
} else {
$email_err = "Invalid E-mail";
$email_err = "E-mail inválido";
}
} else {
$email_err = "E-mail is required";
$email_err = "E-mail é necessário";
}
if (!empty($_POST['ssh'])) {
@ -64,17 +64,17 @@
if (trim($ret) != "(stdin) is not a public key file.") {
$ssh = $_POST['ssh'];
} else {
$ssh_err = "Not a valid SSH public key";
$ssh_err = "Chave SSH inválida";
}
unset($ret);
} else {
$ssh_err = "Public key is required";
$ssh_err = "Chave pública é necessária";
}
if (!empty($_POST['joinreason'])) {
$reason = $_POST['joinreason'];
} else {
$reason_err = "Join reason is required";
$reason_err = "Motivo do pedido é necessário";
}
if (empty($username_err . $email_err . $ssh_err . $reason_err) && isset($_POST['tos']))
@ -83,26 +83,26 @@
if (!$success) {
?>
<div class=h><h1 id=signup>Sign Up</h1> <a aria-hidden=true href=#signup>#signup</a></div>
<p>See the <a href="//wiki.vern.cc/en/guides/register/">wiki page</a> on how to register.</p>
<span class="red">* Required field</span>
<div class=h><h1 id=signup>Inscrição</h1> <a aria-hidden=true href=#signup>#signup</a></div>
<p>Veja a <a href="//wiki.vern.cc/en/guides/register/">página da wiki</a> para ver como registrar.</p>
<span class="red">* Campo necessário</span>
<form method="post" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"]); ?>">
<p>Username:
<p>Nome de usuário:
<input type="text" name="username">
<span class="red">* <?php echo $username_err; ?></span></p>
<p>E-mail (We need one so we can contact you) <span class="red">* <?php echo $email_err; ?></span>
<p>E-mail (para que possamos te contactar) <span class="red">* <?php echo $email_err; ?></span>
<input type="text" name="email"></p>
<p>SSH public keys (one key per line) <span class="red">* <?php echo $ssh_err; ?></span><br>
<p>Chaves SSH públicas (uma chave por linha) <span class="red">* <?php echo $ssh_err; ?></span><br>
<textarea name="ssh" rows="3" cols="50"></textarea></p>
<p>Why do you want to join? <span class="red">* <?php echo $reason_err; ?></span><br>
<p>Por que você gostaria de entrar no ~vern? <span class="red">* <?php echo $reason_err; ?></span><br>
<textarea name="joinreason" rows="8" cols="50"></textarea></p>
<p>What services do you want? (You can always request an account on one later)</p>
<p>Quais serviços você gostaria de ter acesso? (você sempre pode requisitar uma conta mais tarde)</p>
<input type="checkbox" id="pubnix" name="pubnix" value="Pubnix" disabled checked>
<label for="pubnix">Pubnix (Includes E-Mail)</label><br>
<label for="pubnix">Pubnix (Inclui E-Mail)</label><br>
<input type="checkbox" id="matrix" name="matrix" value="Matrix" checked>
<label for="matrix">Matrix</label><br>
@ -135,26 +135,26 @@
<label for="xmpp">XMPP/Jabber</label><br>
<input type="checkbox" id="xmppo" name="xmppo" value="XMPP Onion">
<label for="xmppo">XMPP/Jabber Onion (Don't check if you don't know what it is)</label><br>
<label for="xmppo">XMPP/Jabber Onion (não marque se você não sabe o que é)</label><br>
<input type="checkbox" id="xmppi" name="xmppi" value="XMPP I2P">
<label for="xmppi">XMPP/Jabber I2P (Don't check if you don't know what it is)</label><br>
<label for="xmppi">XMPP/Jabber I2P (não marque se você não sabe o que é)</label><br>
<br>
<input type="checkbox" id="tos" name="tos" value="I agree to the ToS and Privacy Policy">
<label for="tos">I agree to the <a href=/pt-BR/tos>Terms of Service</a> and <a href=/pt-BR/privpol>Privacy Policy</a></label><br>
<label for="tos">Eu concordo com os <a href=/pt-BR/tos>Termos de Serviço</a> e com a <a href=/pt-BR/privpol>Política de Privacidade</a></label><br>
<br>
<span><input type="submit" value="Submit" style="width:100px;height:40px;font-size:20px"></span>
</form><br>
<p>THE SERVICE IS PROVIDED ON AN “AS IS” AND “AS AVAILABLE” BASIS, AND WE DO NOT GUARANTEE THAT THE SERVICE WILL BE AVAILABLE AT ALL TIMES, NOR THE ACCURACY OF THE SERVICE OR ANY MATERIAL PROVIDED BY THE SERVICE OR ON THE ~VERN WEBSITE. IN NO EVENT SHALL THE ADMINISTRATORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY ARISING FROM, OUT OF OR IN CONNECTION WITH THE SERVICE OR THE USE OF OTHER DEALINGS IN THE SERVICE. YOU ARE SOLELY RESPONSIBLE FOR YOUR USE OF THE SERVICE.</p>
<p>O SERVIÇO É FORNECIDO “COMO ESTÁ” E “CONFORME DISPONÍVEL”, E NÃO GARANTIMOS QUE O SERVIÇO ESTARÁ DISPONÍVEL EM TODOS OS MOMENTOS, NEM A QUALIDADE DO SERVIÇO OU DE QUALQUER MATERIAL FORNECIDO PELO SERVIÇO ~VERN FISICAMENTE OU NA INTERNET. EM HIPÓTESE ALGUMA OS ADMINISTRADORES SERÃO RESPONSÁVEIS POR QUALQUER RECLAMAÇÃO, DANOS OU OUTRA RESPONSABILIDADE DECORRENTE DE, OU EM CONEXÃO COM O SERVIÇO OU O USO DE OUTRAS NEGOCIAÇÕES NO SERVIÇO. VOCÊ É O ÚNICO RESPONSÁVEL PELO USO DO SERVIÇO.</p>
<?php
} else {
?>
<meta http-equiv="refresh" content="5;url=/pt-BR/" />
<div class=h><h1 id=thanks>Thank you for signing up.</h1> <a aria-hidden=true href=#thanks>#thanks</a></div>
<p>An admin will review your request, and an e-mail will be sent if your registration is successful.</p>
<p>You will be redirected back <a href=/pt-BR/>home</a> in 5 seconds.</p>
<div class=h><h1 id=thanks>Obrigado por se inscrever.</h1> <a aria-hidden=true href=#thanks>#thanks</a></div>
<p>Um administrador auditará seu pedido, e um e-mail será enviado para você caso for aceito.</p>
<p>Você será redirecionado para a <a href=/pt-BR/>página principal</a> em 5 segundos.</p>
<?php
if (isset($_POST['matrix'])) $use_matrix = true;