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:
parent
bb9cedaf49
commit
bb0a4f7d1b
5
add.php
5
add.php
@ -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>
|
||||
|
@ -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');
|
||||
?>
|
||||
|
@ -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");
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user