Skip to content

Instantly share code, notes, and snippets.

@sinky

sinky/index.php

Created Mar 1, 2015
Embed
What would you like to do?
My own first CMS 2004-2005
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>my-azur.de</title>
</head>
<body>
<h1>my-azur.de</h1>
<?php
$site = $_GET['site'];
if (!isset($site)) {
$site="home";
}
if (file_exists("content/$site.htm")) {
include("content/$site.htm");
}else{
include('content/404.htm');
}
?>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment