1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-04-27 13:46:20 -04:00

fix add page CSS & login/logout redirect

This commit is contained in:
Jake Jarvis 2013-05-19 16:00:21 -04:00
parent bb9cedaf49
commit bb0a4f7d1b
3 changed files with 8 additions and 2 deletions

View File

@ -26,6 +26,7 @@ include('header.php');
td, th { td, th {
line-height: 30px !important; line-height: 30px !important;
font-size: 17px; font-size: 17px;
cursor: default !important;
} }
button.btn, a.btn { button.btn, a.btn {
@ -35,6 +36,10 @@ include('header.php');
form { form {
margin: 0px !important; margin: 0px !important;
} }
input[type="text"] {
margin-bottom: 0px !important;
}
</style> </style>
<h4>Adding <?php echo $_GET['num'] ?> spooner<?php if($_GET['num'] > 1) echo 's' ?></h4> <h4>Adding <?php echo $_GET['num'] ?> spooner<?php if($_GET['num'] > 1) echo 's' ?></h4>

View File

@ -1,10 +1,11 @@
<?php <?php
include_once('config.php');
session_start(); session_start();
if(!isset($_SESSION['logged_in']) || $_SESSION['logged_in'] == FALSE) { if(!isset($_SESSION['logged_in']) || $_SESSION['logged_in'] == FALSE) {
header("Location:" . $site_url . "/login"); header("Location:" . $site_url . "/login");
} }
include_once('config.php');
include_once('functions.php'); include_once('functions.php');
include_once('db_connect.php'); include_once('db_connect.php');
?> ?>

View File

@ -3,5 +3,5 @@ include('config.php');
session_start(); session_start();
setcookie('remembered', 'FALSE', 1); setcookie('remembered', 'FALSE', 1);
session_destroy(); session_destroy();
header("Location:" . $site_url . "/login.php"); header("Location:" . $site_url . "/login");
?> ?>