2017-01-04 18:14:27 +00:00
|
|
|
<?php
|
2018-01-02 17:48:39 +00:00
|
|
|
/**
|
|
|
|
* Comunic Web APP launcher
|
|
|
|
*
|
|
|
|
* @author Pierre HUBERT
|
|
|
|
*/
|
|
|
|
|
|
|
|
//We check if it is a redirection to handle 404 errors
|
|
|
|
if(isset($_SERVER["REDIRECT_URL"])){
|
|
|
|
//We check if it is an asset request
|
|
|
|
if(preg_match("<assets>", $_SERVER["REDIRECT_URL"])){
|
|
|
|
//This is a 404 not found error...
|
|
|
|
echo "<p>Error! 404 not found</p>";
|
|
|
|
http_response_code(404);
|
|
|
|
exit();
|
2017-01-21 18:30:27 +00:00
|
|
|
}
|
2018-01-02 17:48:39 +00:00
|
|
|
}
|
2017-06-23 17:09:45 +00:00
|
|
|
|
2018-01-02 17:48:39 +00:00
|
|
|
//Include system
|
|
|
|
require __DIR__."/system/system.php";
|
2017-01-04 18:14:27 +00:00
|
|
|
|
2018-01-02 17:48:39 +00:00
|
|
|
//Load the page
|
|
|
|
echo load_page("dev");
|