update
This commit is contained in:
@@ -4,7 +4,7 @@ session_start();
|
||||
if ($_SESSION['new-access'] !== true)
|
||||
header('Location: .');
|
||||
|
||||
include_once ('functions.php');
|
||||
include_once('functions.php');
|
||||
|
||||
echo '<h1>Account</h1>';
|
||||
|
||||
@@ -24,4 +24,3 @@ echo '<div id="account-content">
|
||||
<button>Submit</button>
|
||||
</form>
|
||||
</div>';
|
||||
?>
|
||||
|
||||
+7
-7
@@ -8,7 +8,7 @@ require_once '../vendor/autoload.php';
|
||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||
$dotenv->safeLoad();
|
||||
|
||||
include_once ('includes/functions.php');
|
||||
include_once('/session/includes/functions.php');
|
||||
authUser();
|
||||
?>
|
||||
|
||||
@@ -17,25 +17,25 @@ authUser();
|
||||
|
||||
<head>
|
||||
<title>Session</title>
|
||||
<link href="session/css/styles.css" type="text/css" rel="stylesheet">
|
||||
<script src="session/js/index.js"></script>
|
||||
<link href="/session/css/styles.css" type="text/css" rel="stylesheet">
|
||||
<script src="/session/js/index.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<?php include_once ('session/includes/nav.php'); ?>
|
||||
<?php include_once('/session/includes/nav.php'); ?>
|
||||
<div id="content">
|
||||
<?php
|
||||
$page = $_GET['page'];
|
||||
switch ($_GET['page']) {
|
||||
case 'home':
|
||||
$_GET['file'] = 'session/includes/fbi.txt';
|
||||
$_GET['file'] = '/session/includes/fbi.txt';
|
||||
getHome();
|
||||
break;
|
||||
case 'video':
|
||||
include ('session/includes/video.php');
|
||||
include('/session/includes/video.php');
|
||||
break;
|
||||
case 'account':
|
||||
include ('session/includes/account.php');
|
||||
include('/session/includes/account.php');
|
||||
break;
|
||||
default:
|
||||
getHome();
|
||||
|
||||
Reference in New Issue
Block a user