updating file paths to use xampp again

This commit is contained in:
2025-03-31 16:40:02 -06:00
parent 6ea50f25a9
commit ffe30b8226
8 changed files with 27 additions and 28 deletions
+2 -2
View File
@@ -4,7 +4,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="/birthday/css/styles.css">
<link rel="stylesheet" href="css/styles.css">
<title>Birthday | Josh Ashton</title>
</head>
@@ -17,7 +17,7 @@
<h1>Happy Birthday!</h1>
</div>
<div id="pic-container">
<img src="birthday/img/birthday-AIgenerated.jpg" />
<img src="img/birthday-AIgenerated.jpg" />
</div>
</div>
';
+2 -2
View File
@@ -13,8 +13,8 @@ if (isset($_POST['phone_number']))
<head>
<title>Input</title>
<link href="/input/css/styles.css" rel="stylesheet" type="text/css">
<script src="/input/js/index.js"></script>
<link href="css/styles.css" rel="stylesheet" type="text/css">
<script src="js/index.js"></script>
</head>
<body>
+4 -4
View File
@@ -61,8 +61,8 @@ if (isset($_GET['logout'])) {
<head>
<title>Spies</title>
<link href="/insecure/css/styles.css" type="text/css" rel="stylesheet">
<script src="/insecure/js/index.js"></script>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
@@ -96,8 +96,8 @@ if (isset($_GET['logout'])) {
</div>
<form method="get">
<div class="row">
<button name="file" value="insecure/includes/fbi.txt">FBI</button>
<button name="file" value="insecure/includes/spies.txt">Spies</button>
<button name="file" value="includes/fbi.txt">FBI</button>
<button name="file" value="includes/spies.txt">Spies</button>
<button name="logout" value="true" class="reset">Logout</button>
</div>
</form>
+2 -2
View File
@@ -44,8 +44,8 @@ $poll_options = [
<head>
<title>Poll</title>
<link href="/poll/css/styles.css" type="text/css" rel="stylesheet">
<script src="/poll/js/index.js" defer></script>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js" defer></script>
</head>
<body>
-1
View File
@@ -8,4 +8,3 @@ echo '<h1>YouTube Video</h1>';
echo '
<iframe width="560" height="315" src="https://www.youtube.com/embed/8BIcAZxFfrc?si=DMccopjQMFNs361I" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
';
?>
+8 -8
View File
@@ -3,12 +3,12 @@ session_start();
if ($_SESSION['new-access'] == true) {
$_SESSION['new-access'] = false;
}
require_once '../vendor/autoload.php';
require_once 'vendor/autoload.php';
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
$dotenv->safeLoad();
include_once('session/includes/functions.php');
include_once('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="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
<?php include_once('/session/includes/nav.php'); ?>
<?php include_once('includes/nav.php'); ?>
<div id="content">
<?php
$page = $_GET['page'];
switch ($_GET['page']) {
case 'home':
$_GET['file'] = '/session/includes/fbi.txt';
$_GET['file'] = 'includes/fbi.txt';
getHome();
break;
case 'video':
include('/session/includes/video.php');
include('includes/video.php');
break;
case 'account':
include('/session/includes/account.php');
include('includes/account.php');
break;
default:
getHome();
+6 -6
View File
@@ -10,7 +10,7 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
$password = $_POST['password'];
if (array_key_exists($username, $users) && $users[$username] === $password) {
$_SESSION['access'] = true;
$_GET['file'] = 'spies/includes/fbi.txt';
$_GET['file'] = 'includes/fbi.txt';
} else {
$_GET['error'] = true;
}
@@ -18,7 +18,7 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
if (isset($_GET['logout'])) {
$_SESSION['access'] = false;
header('Location: ./spies');
header('Location: .');
}
?>
@@ -28,8 +28,8 @@ if (isset($_GET['logout'])) {
<head>
<title>Spies</title>
<link href="spies/css/styles.css" type="text/css" rel="stylesheet">
<script src="spies/js/index.js"></script>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
@@ -62,8 +62,8 @@ if (isset($_GET['logout'])) {
</div>
<form method="get">
<div class="row">
<button name="file" value="spies/includes/fbi.txt">FBI</button>
<button name="file" value="spies/includes/spies.txt">Spies</button>
<button name="file" value="includes/fbi.txt">FBI</button>
<button name="file" value="includes/spies.txt">Spies</button>
<button name="logout" value="true" class="reset">Logout</button>
</div>
</form>
+3 -3
View File
@@ -9,14 +9,14 @@ if (isset($_GET['error']))
<head>
<title>Validation</title>
<link href="validation/css/styles.css" type="text/css" rel="stylesheet">
<script src="validation/js/index.js"></script>
<link href="css/styles.css" type="text/css" rel="stylesheet">
<script src="js/index.js"></script>
</head>
<body>
<h1>Validation Assignment</h1>
<form action="validation/process.php" method="post">
<form action="process.php" method="post">
<input name="phone_number" type="text" placeholder="(xxx)xxx-xxxx" <?php $error ? 'value="' . $error . '"' : '' ?>>
<div class="row">
<button>Submit</button>