1
0
This repository has been archived on 2017-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
informaticaD4P-2017/index.php

47 lines
912 B
PHP
Raw Normal View History

2017-02-09 06:50:51 +00:00
<?php
2017-02-18 18:49:26 +00:00
/**
* Informatica Eindproject D4p
* 6in3, Stedelijk Gymnasium Nijmegen
* Docent: Hans de Wolf
*
* ==================
*
* Daniel Boutros,
* Christiaan Goossens,
* Jelmer Hinssen
*/
/**
* Session fix for development
*/
if (session_save_path() === "") {
ini_set('session.save_path', realpath(__DIR__ . '/../tmp'));
}
2017-02-18 18:49:26 +00:00
/**
* Check if the script is running in CLI mode
*/
2017-02-09 06:50:51 +00:00
if (PHP_SAPI == 'cli-server') {
// To help the built-in PHP dev server, check if the request was actually for
// something which should probably be served as a static file
$url = parse_url($_SERVER['REQUEST_URI']);
$file = __DIR__ . $url['path'];
2017-03-30 16:32:19 +00:00
2017-02-09 06:50:51 +00:00
if (is_file($file)) {
return false;
}
}
2017-02-18 18:49:26 +00:00
/**
* Require the Composer autoloader to load dependencies
*/
2017-03-29 11:32:39 +00:00
require __DIR__ . '/vendor/autoload.php';
2017-02-09 06:50:51 +00:00
2017-02-18 18:49:26 +00:00
/**
* Load the bootstrapping script
*/
2017-02-09 06:50:51 +00:00
2017-03-29 11:32:39 +00:00
include __DIR__ . '/src/bootstrap.php';