Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 1878 → Rev 1877

/web/index.php
59,7 → 59,7
$user = explode (" ", $tab[0]);
 
# on discrimine les accès directs sur Alcasar par rapport aux redirections (blacklist ou pannes rso)
if (isset($_SERVER['HTTP_HOST']) && (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST'])))
if (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname$/", $_SERVER['HTTP_HOST']) || preg_match ("/^$organisme$/", $_SERVER['HTTP_HOST']))
{
$direct_access=True;
}