2020-11-03 19:40:44 -08:00
|
|
|
<?php
|
|
|
|
// SVMM - Simple VM Manager - for Qemu KVM
|
|
|
|
// (C) Chris Dorman, 2020
|
|
|
|
// License: CC-BY-NC-SA version 3.0
|
|
|
|
// http://github.com/Pentium44/SVMM
|
|
|
|
|
|
|
|
function loginForm() {
|
|
|
|
?>
|
|
|
|
<br />
|
|
|
|
<div class="login">
|
2020-12-26 20:30:23 -08:00
|
|
|
Don't have an account? No problem, <a href="<?php echo $_SERVER['PHP_SELF']; ?>?forms=register">register here</a>!<br /><br />
|
2020-11-03 19:40:44 -08:00
|
|
|
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?do=login" method="post">
|
|
|
|
<table><tr><td>
|
|
|
|
Username:</td><td> <input class="text" type="text" name="username"></td></tr><tr><td>
|
|
|
|
Password:</td><td> <input class="text" type="password" name="password"></td></tr></table>
|
|
|
|
<input style="padding: 2px;" class="text" type="submit" name="submitBtn" value="Login">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
function changePassForm() {
|
|
|
|
?>
|
|
|
|
<br />
|
|
|
|
<div class="chgpass">
|
|
|
|
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?do=changepass" method="post">
|
|
|
|
<table><tr><td>
|
|
|
|
Old password:</td><td> <input class="text" type="password" name="oldpass"></td></tr><tr><td>
|
|
|
|
Password:</td><td> <input class="text" type="password" name="password"></td></tr><tr><td>
|
|
|
|
Password Again:</td><td> <input class="text" type="password" name="password_again"></td></tr>
|
|
|
|
</table>
|
|
|
|
<input class="text" type="submit" name="submitBtn" value="Change">
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
|
|
|
|
/*function uploadForm() {
|
|
|
|
|
|
|
|
print <<<EOD
|
|
|
|
Upload
|
|
|
|
<table style="margin:auto;">
|
|
|
|
|
|
|
|
<form action="upload.php" method="post" enctype="multipart/form-data">
|
|
|
|
<tr>
|
|
|
|
<td>
|
|
|
|
<input type="file" name="file[]" id="file" multiple><br>
|
|
|
|
</td>
|
|
|
|
<td>
|
|
|
|
<input type="submit" name="submit" value="Upload">
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
</table>
|
|
|
|
EOD;
|
|
|
|
|
|
|
|
}*/
|
|
|
|
|
|
|
|
function registerForm() {
|
|
|
|
?>
|
|
|
|
<br />
|
|
|
|
<div class="login">
|
2020-12-26 20:30:23 -08:00
|
|
|
Don't have a registration code? Reach out! cddo [at] riseup [dot] net<br />
|
2020-11-03 19:40:44 -08:00
|
|
|
<form action="<?php echo $_SERVER['PHP_SELF']; ?>?do=register" method="post">
|
2020-12-26 20:30:23 -08:00
|
|
|
<table><tr><td>
|
|
|
|
Username:</td><td> <input class="text" type="text" name="username"></td></tr><tr><td>
|
|
|
|
Full name:</td><td> <input class="text" type="text" name="fullname"></td></tr><tr><td>
|
|
|
|
Email:</td><td><input class="text" type="text" name="email"></td></tr><tr><td>
|
|
|
|
Password:</td><td> <input class="text" type="password" name="password"></td></tr><tr><td>
|
|
|
|
Password again:</td><td> <input class="text" type="password" name="password-again"></td></tr><tr><td>
|
|
|
|
Registration code (required):</td><td> <input class="text" type="text" name="codeword"></td></tr><tr><td>
|
2020-11-03 19:40:44 -08:00
|
|
|
<input class="text" type="submit" name="submitBtn" value="Register">
|
|
|
|
</td></tr></table>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|