Added full user authentication system: register/login with validation, bcrypt, reCAPTCHA integration, session handling, and new landing page with animated form switcher.
This commit is contained in:
10
home.php
10
home.php
@@ -1,4 +1,12 @@
|
||||
<?php include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
|
||||
<?php
|
||||
session_start();
|
||||
|
||||
if (!isset($_SESSION['user_id'])) {
|
||||
header("Location: /landing.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
include($_SERVER['DOCUMENT_ROOT'] . '/inc/php/header.php');
|
||||
require_once($_SERVER['DOCUMENT_ROOT'] . '/db.php');
|
||||
$conn = getConnection();?>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user