This commit is contained in:
2025-03-31 16:24:22 -06:00
parent 282ad2d8cb
commit f9e7e16358
8 changed files with 28 additions and 29 deletions
+1 -2
View File
@@ -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
View File
@@ -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();