mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-12-24 09:58:51 +00:00
24 lines
503 B
PHP
24 lines
503 B
PHP
<?php
|
|
/**
|
|
* 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();
|
|
}
|
|
}
|
|
|
|
//Include system
|
|
require __DIR__."/system/system.php";
|
|
|
|
//Load the page
|
|
echo load_page("dev");
|