33 lines
1.0 KiB
PHP
Executable File
33 lines
1.0 KiB
PHP
Executable File
<?php include 'config.php'; ?>
|
|
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="color-scheme" content="light dark">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>Alchemy Ingredient Selector</title>
|
|
<link rel="stylesheet" href="style.css">
|
|
</head>
|
|
<body>
|
|
<?php
|
|
global $active_profession, $active_profession_title;
|
|
|
|
include 'nav.php';
|
|
include 'sidebar.php';
|
|
|
|
// Capture the active profession from the URL query safely
|
|
$current_prof = isset($_GET['prof']) ? $_GET['prof'] : '';
|
|
|
|
// Quick safety check mapping
|
|
if ($current_prof === 'alchemyIngredientPage' || $active_profession === 'alchemyIngredientPage') {
|
|
echo "<h1>Alchemy Market Prices</h1>";
|
|
// Run database query where profession = 'alchemy'
|
|
} elseif ($current_prof === 'blacksmithing' || $active_profession === 'blacksmithing') {
|
|
echo "<h1>Blacksmithing Market Prices</h1>";
|
|
// Run database query where profession = 'blacksmithing'
|
|
} else {
|
|
echo "<h1>Unknown Profession</h1>";
|
|
}
|
|
?>
|
|
</body>
|
|
</html>
|