Subversion Repositories ALCASAR

Compare Revisions

Ignore whitespace Rev 611 → Rev 628

/web/index.php
1,5 → 1,4
<?php
$private_ip = "192.168.182.1";
$hostname = "alcasar";
$network_pb = False;
$cert_add = "http://alcasar/certs";
11,7 → 10,7
$nb_connection_history = 3;
 
# on discrimine les accès directs sur Alcasar par rapport aux redirections (blacklist ou pannes rso)
if (($_SERVER['HTTP_HOST'] == $private_ip) || preg_match ("/^alcasar/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname/", $_SERVER['HTTP_POST']))
if (($_SERVER['HTTP_HOST'] == $_SERVER['SERVER_ADDR']) || preg_match ("/^alcasar/", $_SERVER['HTTP_HOST']) || preg_match ("/^$hostname/", $_SERVER['HTTP_POST']))
{
$direct_access=True;
exec ("sudo /usr/sbin/chilli_query list|grep $remote_ip" , $tab);