1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <?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">
- Don't have an account? No problem, <a href="<?php echo $_SERVER['PHP_SELF']; ?>?forms=register">register here</a>!<br /><br />
- <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">
- Don't have a registration code? Reach out! cddo [at] riseup [dot] net<br />
- <form action="<?php echo $_SERVER['PHP_SELF']; ?>?do=register" method="post">
- <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>
- <input class="text" type="submit" name="submitBtn" value="Register">
- </td></tr></table>
- </form>
- </div>
- <?php
- }
- ?>
|