This commit is contained in:
Midov 2022-08-20 14:38:59 +02:00
parent 530d25864c
commit 43029983c1

View File

@ -1,5 +1,5 @@
#!/bin/bash
captchouliurl=http://mugi.midov.pl
source config
sendcaptchashort() {
curl --silent -XPOST "$captchouliurl" -H "$HTTP_CONTENT_TYPE" -d "$1" > /dev/null
@ -12,24 +12,36 @@ registrationpage() {
echo "<html>"
echo "<head>"
echo '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'
echo "<style> body { color:black ; background-image: url('background.jpg'); background-repeat: no-repeat; background-size: cover; } .info { background: white ; margin: 1px; padding: 1px ;} </style>"
echo "</head>"
echo "<body>"
echo "<center>"
echo '<img id="banner" src="banner.png"><br>'
echo "<form action='do-register.sh' method='POST'>"
echo '<table border="0"> <tr> <td>'
echo "<span class='box info'>"
echo "<label for='login'>Login:</label>"
echo "<br>"
echo "</span>"
echo "</td> <td>"
echo "<input type='text' id='login' name='login'>"
echo "<br>"
echo "</td> </tr> <tr> <td>"
echo "<span class='box info'>"
echo "<label for='password'>Password:</label>"
echo "<br>"
echo "</span>"
echo "</td> <td>"
echo "<input type='password' id='password' name='password'>"
echo "<br>"
echo "</td> </tr> <tr> <td>"
echo "<span class='box info'>"
echo "<label for='passwordagain'>Re-type Password:</label>"
echo "<br>"
echo "</span>"
echo "</td> <td>"
echo "<input type='password' id='passwordagain' name='passwordagain'>"
echo "<br>"
echo "<input type='hidden' id='captcha' name='captcha' value=\"$id\">"
echo '</td> </tr> </table>'
echo "<input type='submit' value='Submit'>"
echo "</form>"
echo "</center>"
echo "</body>"
echo "</html>"
}