Visual improvements
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
require 'common.php';
|
||||
require 'loginRequired.php';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<svg height="45" width="100%">
|
||||
<a xlink:href="#">
|
||||
<text x="45%" y="40" font-size="40" fill="white">friendbook</text>
|
||||
<text x="45%" y="40" font-size="40" font-family="Arial, sans-serif" fill="white">friendbook</text>
|
||||
</a>
|
||||
</svg>
|
||||
|
Before Width: | Height: | Size: 144 B After Width: | Height: | Size: 176 B |
@@ -14,7 +14,7 @@
|
||||
$_SESSION['loggedInUser'] = $_POST['login_username'];
|
||||
unset($_SESSION['loginError']);
|
||||
// Move onto landing page
|
||||
// header('Location: /landingPage.html');
|
||||
header('Location: /messages.php');
|
||||
}else{
|
||||
// No matching users found, send user an error message
|
||||
$_SESSION['loginError'] = 'Invalid Username or Password';
|
||||
@@ -46,11 +46,10 @@
|
||||
</div>
|
||||
<h2><font color="white">Please Login</h2>
|
||||
<form action="" method="post">
|
||||
User:
|
||||
<input type="text" name="login_username" placeholder="Username"><br />
|
||||
Password:
|
||||
<input type="password" name="login_password" placeholder="Password"><br />
|
||||
<input type="submit">
|
||||
User: <input type="text" name="login_username" placeholder="Username"><br />
|
||||
Password: <input type="password" name="login_password" placeholder="Password"><br />
|
||||
<br />
|
||||
<input type="submit" class="button">
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
6
var/www/loginRequired.php
Normal file
6
var/www/loginRequired.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
// If session has expired, or the user has not logged in
|
||||
if(!isset($_SESSION['loggedInUser'])){
|
||||
header('Location: /login.php');
|
||||
}
|
||||
?>
|
||||
@@ -1,5 +1,6 @@
|
||||
<?php
|
||||
require 'common.php';
|
||||
require 'loginRequired.php';
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
@@ -1,31 +1,39 @@
|
||||
body {
|
||||
background-color: #3B5998;
|
||||
color: white;
|
||||
font-family: Arial, sans-serif;
|
||||
}
|
||||
.button a {
|
||||
/* font: bold 11px Arial;*/
|
||||
input {
|
||||
padding: 3px;
|
||||
margin: 2px;
|
||||
}
|
||||
.button {
|
||||
font-weight: bold;
|
||||
font-size: 16px;
|
||||
text-align: center;
|
||||
text-decoration: none;
|
||||
background-color: #EEEEEE;
|
||||
background-color: #FAFAFA;
|
||||
color: #333333;
|
||||
padding: 2px 6px 2px 6px;
|
||||
border-top: 1px solid #CCCCCC;
|
||||
border-right: 1px solid #333333;
|
||||
border-bottom: 1px solid #333333;
|
||||
border-left: 1px solid #CCCCCC;
|
||||
padding: 4px 12px 4px 12px;
|
||||
border-radius: 5px;
|
||||
border-top: 2px solid #CCCCCC;
|
||||
border-right: 3px solid #333333;
|
||||
border-bottom: 2px solid #333333;
|
||||
border-left: 3px solid #CCCCCC;
|
||||
}
|
||||
.topNavBar {
|
||||
background-color: rgb(236, 236, 236);
|
||||
background-color:#FAFAFA;
|
||||
overflow: hidden;
|
||||
}
|
||||
.topNavBar a {
|
||||
float: left;
|
||||
color: #363636;
|
||||
color: #333333;
|
||||
text-align: center;
|
||||
padding: 14px 16px;
|
||||
text-decoration: none;
|
||||
font-size: 17px;
|
||||
}
|
||||
.topNavBar a:hover {
|
||||
background-color: rgb(44, 48, 255);
|
||||
color: rgb(255, 255, 255);
|
||||
background-color: #88BBFF;
|
||||
color: #FFF;
|
||||
}
|
||||
Reference in New Issue
Block a user