Files
jashton 3f844e4e06
Deploy CSIS 2440 / deploy (push) Canceled after 0s
finished final project
2025-05-05 21:53:39 -06:00

22 lines
495 B
PHP
Executable File

<?php
if (!isset($_GET['id']))
header('Location: catalog.php');
require_once 'functions/init.php';
require_once 'functions/catalog.php';
// UI Components
foreach (glob('components/products/*.php') as $file)
require_once $file;
require_once 'components/user/login.php';
require_once 'components/head.php';
echo '<div id="product_page" class="std_width center">';
$product = fetch_product($_GET['id']);
echo product_page($product);
echo '</div>';
require_once 'components/foot.php';