ct-website/index.php

45 lines
934 B
PHP

<html>
<head>
<link rel="stylesheet" href="css/default.css">
<title>Cyclone Team website</title>
</head>
<body>
<div class="wrapper">
<?php
include "drafts/cap.html";
include "drafts/nav.php";
switch ($_GET["page"]) {
// Hidden
case "real_about":
include_once "pages/real_about.html";
break;
// Visible pages
case "contacts":
include_once "pages/contacts.html";
break;
case "music":
include_once "pages/music.html";
break;
case "project":
if (isset($_GET["id"]))
include_once "pages/project.php";
else
echo "<div><h2>404: project not found</h2></div>";
break;
case "projects":
include_once "pages/projects_list.html";
break;
case "news":
include_once "pages/news.php";
break;
case "main":
default:
include_once "pages/main.html";
}
include "drafts/footer.html";
?>
</div>
</body>
</html>