1
mirror of https://github.com/jakejarvis/spoons.git synced 2025-04-26 13:28:27 -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 {
line-height: 30px !important;
font-size: 17px;
cursor: default !important;
}
button.btn, a.btn {
@ -35,6 +36,10 @@ include('header.php');
form {
margin: 0px !important;
}
input[type="text"] {
margin-bottom: 0px !important;
}
</style>
<h4>Adding <?php echo $_GET['num'] ?> spooner<?php if($_GET['num'] > 1) echo 's' ?></h4>

View File

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

View File

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