First commit

This commit is contained in:
Pierre Hubert
2016-11-19 12:08:12 +01:00
commit 990540b2b9
4706 changed files with 931207 additions and 0 deletions

View File

@ -0,0 +1,16 @@
<?php
/**
* This file is used to check whether the website
* was shutdown for upgrade or not
*
* @author Pierre HUBERT
*/
isset($_SESSION) OR exit("Invalid call - ".$_SERVER['PHP_SELF']);
//On vérifie si le site est bloqué pour une mise à jour ou non
if($bloque_site_for_update == 1)
{
echo add_url_site(file_get_contents(websiteRelativePath().'inc/message_update.html'), $urlsite);
die();
}

View File

@ -0,0 +1,24 @@
<?php
/**
* This file is useful to check we are
* on an allowed host for Comunic
*
* @author Pierre HUBERT
*/
isset($_SESSION) OR exit("Invalid call - ".$_SERVER['PHP_SELF']);
/**
* Getting list of allowed host
*/
include(websiteRelativePath("inc/config/listAllowedHosts.inc.php"));
/**
* Performing security check
*/
if(!in_array($_SERVER['HTTP_HOST'], $liste_allowed_hosts))
{
//On redirige vers l'URL du site
header('location: '.$urlsite);
}