<?php
- require_once 'lib/init.php';
-
- $url_string = get_url_string();
-
- if (is_string($url_string)) {
-
- if ( basename($url_string) == "aggregate") {
- header ("Location: http://quilime.com/aggregate/index.php");
- exit;
- }
- else if (is_file ( TEMPLATE_DIR . basename($url_string) . '.html' )) {
- include ( TEMPLATE_DIR . basename($url_string) . '.html' );
- exit;
- }
- else if (dirname($url_string) != '.' && is_dir(CONTENT_DIR . dirname($url_string))) {
- include( TEMPLATE_DIR . dirname($url_string) . '.html' );
- exit;
- }
- else {
- include( TEMPLATE_DIR . '404.html' );
- exit;
- }
- }
-
- include ( TEMPLATE_DIR . 'index.html' );
-
+ require_once "plog/lib/init.php";
+
+ include ( get_template_dir() . 'index.' . get_format() );
+
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
-<link rel="stylesheet" href="<?= get_base_dir(); ?>/css/style.css" type="text/css">
+<link rel="stylesheet" href="<?= get_template_dir(); ?>css/style.css" type="text/css">
<script type="text/javascript" src="<?= get_base_dir(); ?>/js/jquery-1.3.2.min.js"></script>