forked from team/site
add code of conduct to footer
This commit is contained in:
parent
6008a799de
commit
2dfad1c250
|
@ -1,12 +1,26 @@
|
||||||
<?php
|
<?php
|
||||||
include __DIR__.'/../header.php';
|
include __DIR__.'/../header.php';
|
||||||
|
|
||||||
|
if (empty($_POST["username"]) || empty($_POST["password"])) {
|
||||||
|
|
||||||
|
} else {
|
||||||
|
$usr = urlencode($_POST["username"]);
|
||||||
|
$pwd = urlencode($_POST["password"]);
|
||||||
|
$auth = json_decode(file_get_contents("https://auth.tilde.team/?json&user=$usr&pw=$pwd"))->sudoer;
|
||||||
|
if ($auth) {
|
||||||
|
echo "you're a sudoer";
|
||||||
|
} else {
|
||||||
|
echo "you don't have sudo. go away.";
|
||||||
|
}
|
||||||
|
}
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h1>tilde.team admin console</h1>
|
<h1>tilde.team admin console</h1>
|
||||||
|
|
||||||
<form action="auth.php">
|
<form method="post">
|
||||||
<input name="username" type="text">
|
<input class="form-control" name="username" type="text">
|
||||||
<input name="password" type="password">
|
<input class="form-control" name="password" type="password">
|
||||||
|
<input class="btn btn-default" type="submit" value="log in">
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
<hr>
|
<hr>
|
||||||
</div>
|
</div>
|
||||||
|
<footer class="text-center"><a href="/wiki/?page=code-of-conduct">code of conduct</a></footer>
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<br>
|
<br>
|
||||||
|
|
Loading…
Reference in New Issue