Skip to content
This repository was archived by the owner on Sep 23, 2022. It is now read-only.

Commit 7c7b2e4

Browse files
author
nerdofcode
committed
New formatting
1 parent 35d89fd commit 7c7b2e4

2 files changed

Lines changed: 13 additions & 11 deletions

File tree

index.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
</head>
1616
<body>
1717
<h1 style="text-align:center;">Admin Panel</h1><hr>
18-
<form name="form" id="form" action="" method="post" >
18+
<form name="index" id="index" action="" method="post">
1919
Username:&ensp;<input type="text" name="UID" id="UID" required><br><br>
2020
Password:&ensp;<input type="password" name="passwd" id="passwd" required><br><br>
2121
<input type="submit" value="Submit" onClick=""">
@@ -24,12 +24,12 @@
2424
<script>
2525
$(document).ready(function(){
2626
$('#form').submit(function(){
27-
$('#UID').fadeOut();
28-
$('#passwd').fadeOut();
27+
$('#UID').fadeOut(500);
28+
$('#passwd').fadeOut(500);
2929
})
3030
});
3131
</script>
32-
<p class="footer">By: <a href="https://github.com/NerdOfCode" target="_blank"><b>NerdOf</b>Code</a>, <a href="https://github.com/NerdOfLinux" target="_blank"><b>NerdOf</b>Linux</a></p>
32+
<p class="footer">By: <a href="https://github.com/NerdOfCode" target="_blank"><b>NerdOf</b>Code</a>, <a href="https://github.com/NerdOfLinux" target="_blank"><b>NerdOf</b>Linux</a> | <a href="https://github.com/NerdOfCode/admin-panel/blob/master/LICENSE">License</a></p>
3333
</body>
3434

3535
<?php
@@ -38,7 +38,7 @@
3838
$user_password = $_POST['passwd'];
3939
$db = mysqli_connect('localhost',$user,$pass,$database) or die("Error connecting to MYSQL");
4040
$query = "SELECT password FROM $table WHERE name = '$user_name'";
41-
mysqli_query($db, $query) or die("Unable to access MYSQL");
41+
mysqli_query($db, $query) or die("<p class=\"text-align:center;\">Unable to access MYSQL</p>");
4242
$result = mysqli_query($db, $query);
4343
$row = mysqli_fetch_array($result);
4444
$password=$row['password'];
@@ -47,7 +47,7 @@
4747
header("Location: /options.php");
4848
die();
4949
}else if(! $_SESSION['status']){
50-
echo "<p class=\"false\">Please re-enter creds.</p>";
50+
echo "<p class=\"false\" style=\"color:red;text-align:center;\">Please re-enter creds.</p>";
5151
}
5252
mysqli_close($db);
5353

style.css

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ body {
22
background-color: #a89aff;;
33
}
44

5-
#UID{
6-
text-align: center;;
7-
}
8-
#passwd{
9-
text-align: center;
5+
6+
#index{
7+
width: 200px;
8+
margin: auto;
9+
1010
}
11+
12+
1113
.server{
1214
font-weight: bold;
1315
display: inline-block;

0 commit comments

Comments
 (0)