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

Commit 8f42221

Browse files
author
nerdofcode
committed
Added a footer on index
1 parent bb4e6ff commit 8f42221

2 files changed

Lines changed: 11 additions & 12 deletions

File tree

index.php

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
header("Location: /options.php");
77
$_SESSION['logged_in']="1";
88
}
9-
10-
11-
129
?>
1310
<html>
1411
<head>
@@ -21,7 +18,7 @@
2118
<form name="form" id="form" action="" method="post" >
2219
Username:&ensp;<input type="text" name="UID" id="UID" required><br><br>
2320
Password:&ensp;<input type="password" name="passwd" id="passwd" required><br><br>
24-
<input type="submit" value="Submit" onClick="">
21+
<input type="submit" value="Submit" onClick=""">
2522
</form>
2623

2724
<script>
@@ -30,10 +27,9 @@
3027
$('#UID').fadeOut();
3128
$('#passwd').fadeOut();
3229
})
33-
3430
});
3531
</script>
36-
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>
3733
</body>
3834

3935
<?php
@@ -50,9 +46,8 @@
5046
$_SESSION['status'] = "1";
5147
header("Location: /options.php");
5248
die();
53-
}else{
54-
echo "An error has occured... Please try again later";
55-
$_SESSION['status'] = "0";
49+
}else if(! $_SESSION['status']){
50+
echo "<p class=\"false\">Please re-enter creds.</p>";
5651
}
5752
mysqli_close($db);
5853

style.css

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,11 @@ body {
2323
cursor: pointer;
2424
width: 150px;
2525
background-color: #9f9595;
26-
27-
2826
}
29-
27+
.footer{
28+
position: absolute;
29+
bottom:0;
30+
left: 0;
31+
right: 0;
32+
text-align:center;
33+
}

0 commit comments

Comments
 (0)