File: D:/HostingSpaces/SBogers57/topsluchtfilters.nl/wwwroot/index.php
<?php
/**
* index.php
* Created by Komma Mediadesign.
* Author: mike
* Date: 11/02/14
*/
if(substr($_SERVER['HTTP_HOST'],0,3) != 'www')
{
header ('HTTP/1.1 301 Moved Permanently');
$location = 'http://www.' . $_SERVER['HTTP_HOST'];
if( ! empty($_SERVER['REQUEST_URI'])) $location .= $_SERVER['REQUEST_URI'];
header('location: ' . $location);
exit;
}
// Require static functions
require_once 'lib/general/functions.class.php';
// Configure our system
require_once 'config/errorReport.php';
require_once 'config/paths.php';
require_once 'config/friendlyUrl.php';
initFriendlyUrl(0,1);
switch(URL_LANG)
{
case 'en':
define('SITE_NAME', 'Tops Air Filters');
break;
case 'de':
define('SITE_NAME', 'Tops Luftfilters');
break;
default:
define('SITE_NAME', 'Tops Luchtfilters - Filters voor luchtbehandelingsinstallaties, spuitcabines en WTW-systemen.');
break;
}
// Require libraries
require_once 'lib/general/session.class.php';
require_once 'lib/general/translator.class.php';
require_once 'lib/general/url_pin.class.php';
require_once 'lib/content/menu.class.php';
require_once 'lib/content/breadcrumb.class.php';
require_once 'lib/mvc/controller.class.php';
require_once 'lib/mvc/model.class.php';
require_once 'lib/mvc/view.class.php';
// Login
require_once 'lib/bootstrap.class.php';
// Bootstrap the system
new Bootstrap();