Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Server
- session_start();
- error_reporting(E_ALL);
- date_default_timezone_set('Europe/Berlin');
- // Includes
- include $_SERVER['DOCUMENT_ROOT'].'/config.php';
- include $_SERVER['DOCUMENT_ROOT'].'/System/Database/Database.php';
- include $_SERVER['DOCUMENT_ROOT'].'/System/Classes/wordfilter.class.php';
- include $_SERVER['DOCUMENT_ROOT'].'/System/Classes/route.class.php';
- include $_SERVER['DOCUMENT_ROOT'].'/System/Classes/classes.class.php';
- // Classes
- $classmanager = new Classes();
- $classmanager->init($config);
- // ROUTING by Lazcano
- $routes = new routes();
- $routes->addRoute("index", "/index", $config['routing']['directory']."index.tpl", true, true);
- $routes->addRoute("register", "/registrieren", $config['routing']['directory']."register.tpl", true, true);
- $routes->addRoute("me", "/me", $config['routing']['directory']."me.tpl", true, true);
- $routes->addRoute("staff", "/staff", $config['routing']['directory']."staff.php", true, true);
- // Content Manager
- if(!empty($_GET) && isset($_GET['page'])) {
- trim('/', ($page = $_GET['page']));
- $routes->proceed('/' . $page, $content_replace);
- } else {
- die('No Param');
- }
- Wordfilter.class.php :
- <?php
- $content_replace = array(
- '{name}' => $config['hotel']['name'],
- '{first}' => $config['kampagne']['first'],
- '{firsttext}' => $config['kampagne']['firsttext'],
- '{firstpic}' => $config['kampagne']['firstpic'],
- '{second}' => $config['kampagne']['second'],
- '{secondtext}' => $config['kampagne']['secondtext'],
- '{secondpic}' => $config['kampagne']['secondpic'],
- '{third}' => $config['kampagne']['third'],
- '{thirdtext}' => $config['kampagne']['thirdtext'],
- '{thirdpic}' => $config['kampagne']['thirdpic'],
- '{:' => '?php',
- ':}' => '?',
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement