metanohi-misc-subsites/old-projects/eonaton/index.php

74 lines
1.5 KiB
PHP
Raw Normal View History

2011-08-02 19:57:57 +02:00
<?php
// INFO ABOUT CURRENT PAGE
$pagetype=$_GET["t"];
$pagesite=$_GET["s"];
if (!$pagetype) $pagetype=0;
if (!$pagesite) $pagesite=0;
if (!is_numeric($pagetype) || !is_numeric($pagesite)) {
$pagetype=-1;
$pagesite=-1;
}
// STUFF
$title="Error";
// CLASSES
include("classes.php");
// INFO
include("info.php");
// DOUBLE CHECKING
if ($pagetype>$type-1 || ($pagetype==0 && $pagesite>$menu->size()-1) || ($pagetype==1 && $pagesite>$footer->size()-1) || $pagetype<0 || $pagesite<0) {
$pagetype=-1;
$pagesite=-1;
}
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Eon Aton :: <?php echo $title; ?></title>
<link href='index.css' type='text/css' rel='stylesheet' />
<link href='general.css' type='text/css' rel='stylesheet' />
<link href='special.css' type='text/css' rel='stylesheet' />
<!--[if IE]>
<link href='iefix.css' type='text/css' rel='stylesheet' />
<![endif]-->
</head>
<body>
<div id='wrapper'>
<div id='header'>
<a href='.'></a>
<div id='headerbox'>
<?php echo $quotes_output; ?>
</div>
</div>
<div id='content'>
<div id='menu'>
<?php echo $menu_output; ?>
</div>
<div id='site'>
<?php include($pagetype."_".$pagesite.".php"); ?>
</div>
<div id='footer'>
<?php echo $footer_output; ?>
2011-08-05 02:49:23 +02:00
<a href='http://metanohi.name/'>metanohi</a>
2011-08-02 19:57:57 +02:00
</div>
</div>
</div>
<div id='space'></div>
</body>
</html>