diff options
| author | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
|---|---|---|
| committer | Connor Thomson <blumatrikz@gmail.com> | 2026-09-20 21:23:09 -0700 |
| commit | 070a27baa8f93c3bf191459b88d24d7430a78899 (patch) | |
| tree | 8c96b12d16e1d219ef410ad0e45b2d886368bc5e /html | |
| parent | 83cd353b01660f34d6fd894d15a27fb1b3aeab4c (diff) | |
Some fixes and updates
Diffstat (limited to 'html')
| -rwxr-xr-x | html/account.html | 1 | ||||
| -rwxr-xr-x | html/admin-link.html | 19 | ||||
| -rwxr-xr-x | html/admin.html | 52 | ||||
| -rwxr-xr-x | html/change-password.html | 35 | ||||
| -rwxr-xr-x | html/change-status.html | 36 | ||||
| -rwxr-xr-x | html/remove-user.html | 27 |
6 files changed, 121 insertions, 49 deletions
diff --git a/html/account.html b/html/account.html index 4c5b97d..7d3d1c8 100755 --- a/html/account.html +++ b/html/account.html @@ -21,6 +21,7 @@ <label class="username" for="account">{{username}}</label> <div class="menu"> <a href="/profile/?username={{profile}}">Profile</a> + {{admin}} <a href="/signout/">Sign-out</a> </div> </div> diff --git a/html/admin-link.html b/html/admin-link.html new file mode 100755 index 0000000..b91dcf2 --- /dev/null +++ b/html/admin-link.html @@ -0,0 +1,19 @@ +<!-- + GNUfault.org - GNUfault's website + Copyright (C) 2026 Connor Thomson + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +--> + +<a href="/admin/">Admin</a> diff --git a/html/admin.html b/html/admin.html index 8ae34e2..078c23f 100755 --- a/html/admin.html +++ b/html/admin.html @@ -18,52 +18,6 @@ <h2>Admin Panel</h2> <hr> - -<h3>Change user's password</h3> -<form class="login" action="admin.php" method="POST"> - <input type="hidden" name="action" value="password"> - <div class="group"> - <label for="password-username">Username:</label> - <input class="input" type="text" id="password-username" name="username" required> - </div> - <div class="group"> - <label for="password">New password:</label> - <input class="input" type="password" id="password" name="password" required> - </div> - <div class="group"> - <label for="confirmpassword">Confirm new password:</label> - <input class="input" type="password" id="confirmpassword" name="confirmpassword" required> - </div> - <button class="button" type="submit">Send</button> -</form> -<br> - -<h3>Change user's status</h3> -<form class="login" action="admin.php" method="POST"> - <input type="hidden" name="action" value="status"> - <div class="group"> - <label for="status-username">Username:</label> - <input class="input" type="text" id="status-username" name="username" required> - </div> - <div class="group"> - <label for="status">Status:</label> - <select class="input" id="status" name="status"> - <option value="none">none</option> - <option value="member">member</option> - <option value="mod">mod</option> - <option value="admin">admin</option> - </select> - </div> - <button class="button" type="submit">Send</button> -</form> -<br> - -<h3>Remove user</h3> -<form class="login" action="admin.php" method="POST"> - <input type="hidden" name="action" value="remove"> - <div class="group"> - <label for="remove-username">Username:</label> - <input class="input" type="text" id="remove-username" name="username" required> - </div> - <button class="button" type="submit">Send</button> -</form> +<a href="/admin/change-password/">Change user's password</a><br> +<a href="/admin/change-status/">Change user's status</a><br> +<a href="/admin/remove-user/">Remove user</a> diff --git a/html/change-password.html b/html/change-password.html new file mode 100755 index 0000000..fd98dce --- /dev/null +++ b/html/change-password.html @@ -0,0 +1,35 @@ +<!-- + GNUfault.org - GNUfault's website + Copyright (C) 2026 Connor Thomson + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +--> + +<h2>Change user's password</h2> +<hr> +<form class="login" action="change-password.php" method="POST"> + <div class="group"> + <label for="username">Username:</label> + <input class="input" type="text" id="username" name="username" required> + </div> + <div class="group"> + <label for="password">New password:</label> + <input class="input" type="password" id="password" name="password" required> + </div> + <div class="group"> + <label for="confirmpassword">Confirm new password:</label> + <input class="input" type="password" id="confirmpassword" name="confirmpassword" required> + </div> + <button class="button" type="submit">Send</button> +</form> diff --git a/html/change-status.html b/html/change-status.html new file mode 100755 index 0000000..4b6e8b2 --- /dev/null +++ b/html/change-status.html @@ -0,0 +1,36 @@ +<!-- + GNUfault.org - GNUfault's website + Copyright (C) 2026 Connor Thomson + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +--> + +<h2>Change user's status</h2> +<hr> +<form class="login" action="change-status.php" method="POST"> + <div class="group"> + <label for="username">Username:</label> + <input class="input" type="text" id="username" name="username" required> + </div> + <div class="group"> + <label for="status">Status:</label> + <select class="input" id="status" name="status"> + <option value="none">none</option> + <option value="member">member</option> + <option value="mod">mod</option> + <option value="admin">admin</option> + </select> + </div> + <button class="button" type="submit">Send</button> +</form> diff --git a/html/remove-user.html b/html/remove-user.html new file mode 100755 index 0000000..ee2c2eb --- /dev/null +++ b/html/remove-user.html @@ -0,0 +1,27 @@ +<!-- + GNUfault.org - GNUfault's website + Copyright (C) 2026 Connor Thomson + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU Affero General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. + + You should have received a copy of the GNU Affero General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. +--> + +<h2>Remove user</h2> +<hr> +<form class="login" action="remove-user.php" method="POST"> + <div class="group"> + <label for="username">Username:</label> + <input class="input" type="text" id="username" name="username" required> + </div> + <button class="button" type="submit">Send</button> +</form> |
