Se você não pode ou não deseja compartilhar seu e-mail para se registrar no ~vern, contate um administrador para que possamos criar uma conta sem um.
&1"'); if (trim($ret) != "(stdin) is not a public key file.") { $ssh = $_POST['ssh']; } else { $ssh_err = "Chave SSH inválida"; } unset($ret); } else { $ssh_err = "Chave pública é necessária"; } if (!empty($_POST['joinreason'])) { $reason = $_POST['joinreason']; } else { $reason_err = "Motivo do pedido é necessário"; } if (empty($username_err . $email_err . $ssh_err . $reason_err) && isset($_POST['tos'])) $success = true; } if (!$success) { ?>Veja a página da wiki para ver como registrar.
* Campo necessárioO 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.
Um administrador auditará seu pedido, e um e-mail será enviado para você caso for aceito.
Você será redirecionado para a página principal em 5 segundos.
"; $message = "Hello Administrators,\nSomeone has requested a membership. Please view the details below and decide if it is worth approving.\n\nSSH keys:\n$ssh\n\nRequested username: $username\nRequested services: Tilde"; if ($use_matrix) $message .= ", Matrix"; if ($use_akkoma) $message .= ", Akkoma"; if ($use_soju) $message .= ", Soju"; if ($use_git) $message .= ", Forgejo"; if ($use_nc) $message .= ", Nextcloud"; if ($use_freshrss) $message .= ", FreshRSS"; if ($use_miniflux) $message .= ", Miniflux"; if ($use_penpot) $message .= ", Penpot"; if ($use_peertube) $message .= ", PeerTube"; if ($use_xmpp) $message .= ", XMPP"; if ($use_xmppo) $message .= ", XMPP Onion"; if ($use_xmppi) $message .= ", XMPP I2P"; $message .= ".\nJoin reason:\n$reason\n\n\nTo accept this request, run this command as root:\n/root/bin/accept $username\nTo deny this request, run this command as root:\n/root/bin/deny $username\n"; $contents = "#!/usr/bin/env -S bash -e\n\n# This is the registration script for $username \n# This script was automatically generated by http://" . $_SERVER['HTTP_HOST'] . htmlspecialchars($_SERVER['PHP_SELF']). "\n\n"; $contents .= 'password="$(tr -dc A-Za-z0-9 /sshfs/home/' . $username . '/pass && chmod 600 /sshfs/home/' . $username . '/pass && ssh 192.168.122.30 chown ' . escapeshellarg($username . ':' . $username) . ' /sshfs/home/' . $username . '/pass' . "\n\n"; if ($use_matrix) $contents .= '~/bin/mkmuser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_akkoma) $contents .= '~/bin/mkauser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_soju) $contents .= '~/bin/mksuser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_git) $contents .= '~/bin/mkguser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_nc) $contents .= '~/bin/mknuser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_freshrss) $contents .= '~/bin/mkfruser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_miniflux) $contents .= '~/bin/mkmfuser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_penpot) $contents .= '~/bin/mkppuser ' . escapeshellarg($username) . ' "$password"' . "\n"; if ($use_peertube) $contents .= '~/bin/mkpuser ' . escapeshellarg($username) . ' "$password"' . ' ' . escapeshellarg($email) . "\n"; if ($use_xmpp) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' "$password"' . " vern.cc\n"; if ($use_xmppo) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' "$password"' . " vernccvbvyi5qhfzyqengccj7lkove6bjot2xhh5kajhwvidqafczrad.onion\n"; if ($use_xmppi) $contents .= '~/bin/mkxuser ' . escapeshellarg($username) . ' "$password"' . " verncceu2kgz54wi7r5jatgmx2mqtsh3knxhiy4m5shescuqtqfa.b32.i2p\n"; $contents .= "s-nail -r 'register@vern.cc' -s 'Sua conta do ~vern foi criada' -M text/plain " . escapeshellarg($email) . " < <(printf 'Olá %s,\\nSua requisição de inscrição no ~vern foi aceita.\\nVocê pode utilizar o SSH no vern.cc usando a(s) chave(s) pública(s) que você forneceu no registro ao ~vern.\\nUma senha para todos os serviços que você requisitou pode ser encontrada em ~/pass. Se você se inscreveu para o Mastodon, a senha pode ser encontrada em ~/mastodon-pass\\n\\nObrigado por fazer parte do ~vern!' " . escapeshellarg($username) . ")\n"; $contents .= "echo " . escapeshellarg($username . '@vern.cc') . " >> /var/spool/list\n"; $contents .= "echo " . escapeshellarg($email) . " >> /var/spool/list\n"; $contents .= "mv $0 /var/log/register/\n"; $contents .= "exit\n\n\n"; $contents .= $reason . "\n"; $filename = "/var/spool/register/" . $username; $handle = fopen($filename, "w+"); chmod($filename, 0600); unset($filename); fwrite($handle, $contents); fclose($handle); $from = "register@vern.cc"; $headers = "From: " . $from . "\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-type: text/plain\n"; mail($to, $subject, $message, $headers); } ?>