finished final project
Deploy CSIS 2440 / deploy (push) Canceled after 0s

This commit is contained in:
2025-05-05 21:53:39 -06:00
parent 5cd4571a92
commit 3f844e4e06
32 changed files with 1087 additions and 219 deletions
+18 -9
View File
@@ -1,20 +1,29 @@
<?php
include_once 'functions/init.php';
require_once 'functions/init.php';
require_once 'functions/user.php';
if (isset($_POST['username']) && isset($_POST['password'])) {
if (login($_POST['username'], $_POST['password']))
if (login($_POST['username'], $_POST['password'])) {
header('Location: catalog.php');
else
} else {
echo '<p>Username and/or password are incorrect!</p>';
}
}
include_once 'components/head.php';
include_once 'components/user/login.php';
require_once 'components/head.php';
require_once 'components/user/login.php';
if (isset($_SESSION['id'])) {
echo '<h1>Welcome to the store</h1>';
} else
echo login_form();
echo '
<div id="welcome" class="glass" style="width: auto; height: auto;">
<h1>Welcome to ACME!</h1>
<p><strong>Where \'Oops!\' is Part of the Plan.</strong></p>
</div>
';
include_once 'components/foot.php';
include_once 'components/bubbles.php';
} else {
echo login_form();
}
require_once 'components/foot.php';