forked from root/threadr.lostcave.ddnss.de
improved internal admin page by adding useful links
parent
3d23c8445d
commit
7d473fbf0b
13
admin.php
13
admin.php
|
@ -46,7 +46,15 @@
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<h1> Users </h1>
|
<h1> Useful links </h1>
|
||||||
|
<ul>
|
||||||
|
<li><a href="admin.strassenkind.ip/phpmyadmin/" > PHPMyAdmin </a></li>
|
||||||
|
<li><a href="admin.strassenkind.ip/postfixadmin/" > PostfixAdmin </a></li>
|
||||||
|
<li><a href="strassenkind.ip/" > Server status page </a></li>
|
||||||
|
<li><a href="strassenkind.ip/git/" > Gitea </a></li>
|
||||||
|
</ul>
|
||||||
|
<h1> User Management </h1>
|
||||||
|
<h2> Registered Users </h2>
|
||||||
<table>
|
<table>
|
||||||
<tr><td>User ID</td><td>Name</td><td>Authentication algorithm</td></tr>
|
<tr><td>User ID</td><td>Name</td><td>Authentication algorithm</td></tr>
|
||||||
<?php
|
<?php
|
||||||
|
@ -55,7 +63,7 @@
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</table>
|
</table>
|
||||||
<h1> Add user </h1>
|
<h2> Add user </h2>
|
||||||
<form action="?action=add" method="post">
|
<form action="?action=add" method="post">
|
||||||
<input type="text" maxlength="20" name="name" placeholder="Username" />
|
<input type="text" maxlength="20" name="name" placeholder="Username" />
|
||||||
<input type="password" maxlength="256" name="password" placeholder="Password" />
|
<input type="password" maxlength="256" name="password" placeholder="Password" />
|
||||||
|
@ -65,7 +73,6 @@
|
||||||
if (isset($error_message)) {
|
if (isset($error_message)) {
|
||||||
echo $error_message;
|
echo $error_message;
|
||||||
}
|
}
|
||||||
echo "<p>Some server variables...</p><pre>" . json_encode($_SERVER) . "</pre>";
|
|
||||||
?>
|
?>
|
||||||
</form>
|
</form>
|
||||||
</body>
|
</body>
|
||||||
|
|
Loading…
Reference in New Issue