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