mirror of
https://github.com/pierre42100/ComunicWeb
synced 2025-06-19 04:15:17 +00:00
Added a wait splash screen
This commit is contained in:
17
index.php
17
index.php
@ -1,6 +1,17 @@
|
||||
<?php
|
||||
//Include page initiator
|
||||
include("corePage/initPage.php");
|
||||
|
||||
//We check if it is a redirection
|
||||
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();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<!--
|
||||
Comunic web app client
|
||||
@ -30,6 +41,12 @@
|
||||
//Production mode
|
||||
productionMode: <?php echo config['productionMode']; ?>,
|
||||
|
||||
//Assets URL
|
||||
assetsURL: "<?php echo config['pathAssets']; ?>",
|
||||
|
||||
//Site URL
|
||||
siteURL: "<?php echo config['siteURL']; ?>",
|
||||
|
||||
//apiURL
|
||||
apiURL: "<?php echo config['API_URL']; ?>",
|
||||
|
||||
|
Reference in New Issue
Block a user