63 lines
1.6 KiB
PHP
63 lines
1.6 KiB
PHP
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<?php
|
|
error_reporting(0);
|
|
require 'php/values.php';
|
|
require 'php/functions.php';
|
|
|
|
$driveValues = getDriveValues($machine->drives);
|
|
?>
|
|
<title><?php echo $machine->name ?> - homo.casa</title>
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="manifest" href="/site.webmanifest">
|
|
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#ee0000">
|
|
<meta name="msapplication-TileColor" content="#00aba9">
|
|
<meta name="theme-color" content="#ffffff">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
|
|
<link rel="stylesheet" href="css/base.css">
|
|
<link rel="stylesheet" href="css/flavour.css">
|
|
</head>
|
|
<body>
|
|
<div id="background">
|
|
<div id="content">
|
|
|
|
<header>
|
|
<?php echo '<h1>' . $machine->name . '</h1>
|
|
<p id="' . $machine->name . '">' . $machine->description . '</p>'; ?>
|
|
</header>
|
|
|
|
<div id="drives">
|
|
<?php
|
|
echo "<h2>" . $machine->driveLabel . "</h2>";
|
|
|
|
foreach ($driveValues as $drive) {
|
|
printDrive($drive);
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<div id="services">
|
|
<?php
|
|
echo "<h2>" . $machine->serviceLabel . "</h2>
|
|
<p>note: authentication required for access.</p>";
|
|
|
|
foreach ($machine->services as $service) {
|
|
printService($service);
|
|
}
|
|
?>
|
|
</div>
|
|
|
|
<footer>
|
|
<?php echo '<p id="' . $machine->footer->name . '">' . $machine->footer->description . '
|
|
</p>';?>
|
|
</footer>
|
|
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|