update
This commit is contained in:
+1
-1
@@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="birthday/css/styles.css">
|
<link rel="stylesheet" href="/birthday/css/styles.css">
|
||||||
<title>Birthday | Josh Ashton</title>
|
<title>Birthday | Josh Ashton</title>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
|||||||
+10
-10
@@ -1,26 +1,26 @@
|
|||||||
<?php
|
<?php
|
||||||
if (isset($_POST['first_name']))
|
if (isset($_POST['first_name']))
|
||||||
$first_name = $_POST['first_name'];
|
$first_name = $_POST['first_name'];
|
||||||
if (isset($_POST['last_name']))
|
if (isset($_POST['last_name']))
|
||||||
$last_name = $_POST['last_name'];
|
$last_name = $_POST['last_name'];
|
||||||
if (isset($_POST['email']))
|
if (isset($_POST['email']))
|
||||||
$email = $_POST['email'];
|
$email = $_POST['email'];
|
||||||
if (isset($_POST['phone_number']))
|
if (isset($_POST['phone_number']))
|
||||||
$phone_number = $_POST['phone_number'];
|
$phone_number = $_POST['phone_number'];
|
||||||
?>
|
?>
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Input</title>
|
<title>Input</title>
|
||||||
<link href="input/css/styles.css" rel="stylesheet" type="text/css">
|
<link href="/input/css/styles.css" rel="stylesheet" type="text/css">
|
||||||
<script src="input/js/index.js"></script>
|
<script src="/input/js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<h1>Input Assignment</h1>
|
<h1>Input Assignment</h1>
|
||||||
<?php
|
<?php
|
||||||
if ($first_name || $last_name || $email || $phone_number) {
|
if ($first_name || $last_name || $email || $phone_number) {
|
||||||
echo '
|
echo '
|
||||||
<div id="confirmation">
|
<div id="confirmation">
|
||||||
<h3>Thank you for contacting me!</h3>
|
<h3>Thank you for contacting me!</h3>
|
||||||
@@ -32,7 +32,7 @@ if ($first_name || $last_name || $email || $phone_number) {
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
} else {
|
} else {
|
||||||
echo '
|
echo '
|
||||||
<div id="form">
|
<div id="form">
|
||||||
<form method="post">
|
<form method="post">
|
||||||
@@ -48,8 +48,8 @@ if ($first_name || $last_name || $email || $phone_number) {
|
|||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
';
|
';
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
+2
-2
@@ -44,8 +44,8 @@ function fileRead($file)
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Spies</title>
|
<title>Spies</title>
|
||||||
<link href="insecure/css/styles.css" type="text/css" rel="stylesheet">
|
<link href="/insecure/css/styles.css" type="text/css" rel="stylesheet">
|
||||||
<script src="insecure/js/index.js"></script>
|
<script src="/insecure/js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+2
-2
@@ -61,8 +61,8 @@ if (isset($_GET['logout'])) {
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Spies</title>
|
<title>Spies</title>
|
||||||
<link href="insecure/css/styles.css" type="text/css" rel="stylesheet">
|
<link href="/insecure/css/styles.css" type="text/css" rel="stylesheet">
|
||||||
<script src="insecure/js/index.js"></script>
|
<script src="/insecure/js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
+3
-3
@@ -3,15 +3,15 @@
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Favorite Albums</title>
|
<title>Favorite Albums</title>
|
||||||
<link rel="stylesheet" href="music/css/styles.css" type="text/css">
|
<link rel="stylesheet" href="/music/css/styles.css" type="text/css">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||||
<script src="music/js/switch.js"></script>
|
<script src="/music/js/switch.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<a href="explore"><button id="switcher">Spotify API Exploration</button></a>
|
<a href="explore"><button id="switcher">Spotify API Exploration</button></a>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php include ('music/core.php'); ?>
|
<?php include('/music/core.php'); ?>
|
||||||
</div>
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -44,8 +44,8 @@ $poll_options = [
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Poll</title>
|
<title>Poll</title>
|
||||||
<link href="poll/css/styles.css" type="text/css" rel="stylesheet">
|
<link href="/poll/css/styles.css" type="text/css" rel="stylesheet">
|
||||||
<script src="poll/js/index.js" defer></script>
|
<script src="/poll/js/index.js" defer></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ session_start();
|
|||||||
if ($_SESSION['new-access'] !== true)
|
if ($_SESSION['new-access'] !== true)
|
||||||
header('Location: .');
|
header('Location: .');
|
||||||
|
|
||||||
include_once ('functions.php');
|
include_once('functions.php');
|
||||||
|
|
||||||
echo '<h1>Account</h1>';
|
echo '<h1>Account</h1>';
|
||||||
|
|
||||||
@@ -24,4 +24,3 @@ echo '<div id="account-content">
|
|||||||
<button>Submit</button>
|
<button>Submit</button>
|
||||||
</form>
|
</form>
|
||||||
</div>';
|
</div>';
|
||||||
?>
|
|
||||||
|
|||||||
+7
-7
@@ -8,7 +8,7 @@ require_once '../vendor/autoload.php';
|
|||||||
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
$dotenv = Dotenv\Dotenv::createImmutable(__DIR__);
|
||||||
$dotenv->safeLoad();
|
$dotenv->safeLoad();
|
||||||
|
|
||||||
include_once ('includes/functions.php');
|
include_once('/session/includes/functions.php');
|
||||||
authUser();
|
authUser();
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@@ -17,25 +17,25 @@ authUser();
|
|||||||
|
|
||||||
<head>
|
<head>
|
||||||
<title>Session</title>
|
<title>Session</title>
|
||||||
<link href="session/css/styles.css" type="text/css" rel="stylesheet">
|
<link href="/session/css/styles.css" type="text/css" rel="stylesheet">
|
||||||
<script src="session/js/index.js"></script>
|
<script src="/session/js/index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
<?php include_once ('session/includes/nav.php'); ?>
|
<?php include_once('/session/includes/nav.php'); ?>
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php
|
<?php
|
||||||
$page = $_GET['page'];
|
$page = $_GET['page'];
|
||||||
switch ($_GET['page']) {
|
switch ($_GET['page']) {
|
||||||
case 'home':
|
case 'home':
|
||||||
$_GET['file'] = 'session/includes/fbi.txt';
|
$_GET['file'] = '/session/includes/fbi.txt';
|
||||||
getHome();
|
getHome();
|
||||||
break;
|
break;
|
||||||
case 'video':
|
case 'video':
|
||||||
include ('session/includes/video.php');
|
include('/session/includes/video.php');
|
||||||
break;
|
break;
|
||||||
case 'account':
|
case 'account':
|
||||||
include ('session/includes/account.php');
|
include('/session/includes/account.php');
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
getHome();
|
getHome();
|
||||||
|
|||||||
Reference in New Issue
Block a user