diff --git a/en/register.php b/en/register.php index c4bcbae..4d6925b 100644 --- a/en/register.php +++ b/en/register.php @@ -107,9 +107,6 @@
- -
-
@@ -161,7 +158,6 @@ "; $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_fedi) $message .= ", Mastodon"; if ($use_akkoma) $message .= ", Akkoma"; if ($use_soju) $message .= ", Soju"; if ($use_git) $message .= ", Forgejo"; @@ -196,14 +191,6 @@ $contents .= '~/bin/mktuser ' . escapeshellarg($username) . ' "$password"' . " <<< " . escapeshellarg($_POST['ssh']) . "\n"; $contents .= 'echo "$password" > /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_fedi) { - $pass_file = '/home/' . $username . '/mastodon-pass'; - $contents .= 'touch /sshfs' . $pass_file . "\n"; - $contents .= 'chmod 600 /sshfs' . $pass_file . "\n"; - $contents .= 'ssh 192.168.122.30 chown ' . escapeshellarg($username . ':' . $username) . ' ' . escapeshellarg($pass_file) . "\n"; - $contents .= '~/bin/mkfuser ' . escapeshellarg($username) . ' | tee /sshfs' . escapeshellarg($pass_file) . "\n"; - unset($pass_file); - } 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";