The true initial commit
This commit is contained in:
parent
e37e51ce0f
commit
4d59891e47
85
login.php
85
login.php
@ -1,85 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
$user = @$_POST['user'];
|
|
||||||
$pass = @$_POST['pass'];
|
|
||||||
|
|
||||||
if($user == "admin"
|
|
||||||
&& $pass == "soup")
|
|
||||||
{
|
|
||||||
$runningFileName = "login.php";
|
|
||||||
include("create.php");
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<!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))
|
|
||||||
{
|
|
||||||
?>
|
|
||||||
<div class="row">
|
|
||||||
<form method="POST" action="login.php">
|
|
||||||
|
|
||||||
<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>
|
|
||||||
</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
|
|
||||||
}
|
|
||||||
}
|
|
||||||
?>
|
|
Loading…
Reference in New Issue
Block a user