TTT_Role_Overview/login.php

86 lines
2.8 KiB
PHP
Raw Permalink Normal View History

<?php
2022-04-04 11:21:28 +00:00
$user = @$_POST['user'];
$pass = @$_POST['pass'];
if($user == "admin"
&& $pass == "soup")
{
2022-04-05 11:51:36 +00:00
$runningFileName = "login.php";
include("create.php");
}
else
{
2022-04-05 11:51:36 +00:00
?>
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>TTT2 Role Adder</title>
<meta name="description" content="Add a new TTT2 Role">
<meta name="author" content="James">
<meta property="og:title" content="TTT2 Role Adder">
<meta property="og:type" content="website">
<meta property="og:url" content="https://ttt.james-things.com">
<meta property="og:description" content="All TTT2 Roles documented halfheartedly">
<meta property="og:image" content="https://e7.pngegg.com/pngimages/710/403/png-clipart-the-embodiment-of-scarlet-devil-team-shanghai-alice-video-game-banjo-tooie-mario-luigi-partners-in-time-marisa-logo-computer-wallpaper.png">
<link rel="icon" href="/favicon.ico">
<link rel="icon" href="/favicon.svg" type="image/svg+xml">
<link rel="apple-touch-icon" href="/apple-touch-icon.png">
<!--MATERIALIZE-->
<!--Import jQuery-->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<!--Import Google Icon Font-->
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link type="text/css" rel="stylesheet" href="css/materialize.min.css" media="screen,projection" />
<!--My Custom Stylesheet-->
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container center_all_things">
<div class="row">
<div class="col s12 blurry">
<div class="card-panel card white">
<?php
if(isset($_POST))
{
2022-04-05 11:51:36 +00:00
?>
<div class="row">
<form method="POST" action="login.php">
2022-04-05 11:51:36 +00:00
<div class="input-field col s6">
<input type="text" name="user"></input><br/>
<label for="user">Name</label>
</div>
<div class="input-field col s6">
<input type="password" name="pass"></input><br/>
<label for="pass">Password</label>
</div>
<button class="btn waves-effect waves-light col s12" type="submit" value="Login" name="submit">Submit <i class="material-icons right">send</i>
</button>
</form>
2022-04-05 11:51:36 +00:00
</div>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function() {
$('select').formSelect();
$('.collapsible').collapsible();
M.updateTextFields();
});
</script>
<script type="text/javascript" src="js/materialize.min.js"></script>
</body>
</html>
<?php
}
}
?>