<?php
//**********************************************************************//
// Caiyern's Site Engine v2.0                                           //
// Copyright 2009 Nate Eckardt (Nate@Caiyern.net)                       //
//                                                                      //
// This file is part of Caiyern's Site Engine.                          //
//                                                                      //
// This script is free software: you can redistribute it and/or modify  //
// it under the terms of the GNU General Public License as published by //
// the Free Software Foundation, either version 3 of the License, or    //
// (at your option) any later version as long as this header remains    //
// intact in its entirety.                                              //
//**********************************************************************// 
    
include("./classes/config.php");
    include(
"./classes/mysql.php");
    include(
"./classes/user.php");
    include(
"./classes/request.php");
    
    
session_start(); //Session start must come after class declarations, or else objects will not be accessible.
    
    //Object creation
    
$sql Mysql::create(Config::mysql_serverConfig::mysql_userConfig::mysql_passConfig::mysql_db);
    
    
$request = new Request;
    
    include(
"./modules/logintester.php");

    
$pages = array(
        
"comments" => "./request_modules/comments.php",
        
"test" => "./test.php"
    
);
    if(
array_key_exists(strtolower($_GET['page']),$pages)){
        include(
$pages[strtolower($_GET['page'])]);
    }
?>