/alcasar.sh |
---|
94,16 → 94,20 |
echo "Échec" |
echo "La carte réseau connectée à Internet ($EXTIF) n'est pas correctement configurée." |
echo "Renseignez les champs suivants dans le fichier '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :" |
echo "Appliquez les changements : 'service network restart'" |
else |
echo "Failed" |
echo "The Internet connected network card ($EXTIF) isn't well configured." |
echo "The folowing parametres must be set in the file '/etc/sysconfig/network-scripts/ifcfg-$EXTIF' :" |
echo "Apply the new configuration 'service network restart'" |
fi |
echo "DEVICE=$EXTIF" |
echo "IPADDR=" |
echo "NETMASK=" |
echo "GATEWAY=" |
echo "DNS1=" |
echo "DNS2=" |
echo "ONBOOT=yes" |
exit 0 |
fi |
echo -n "." |
/TODO |
---|
2,7 → 2,7 |
# TODO : |
English : |
http://www.alcasar.info/en/current-developments |
http://www.alcasar.net/en/current-developments |
Français : |
http://www.alcasar.info/fr/evolutions-en-cours |
http://www.alcasar.net/fr/evolutions-en-cours |
/conf/etc/alcasar-dns-name |
---|
1,17 → 1,20 |
# Here you can define your local domain name ( localdomain par défaut ) |
local=/localdomain/ |
## Ajouter une ligne par définition d'hôte sous la forme |
## address=/<nomMachine>/<@IP> |
## Exemple : address=/www.alcasar.info/88.191.66.83 |
## Ajouter une ligne par hôte |
## Add one line by host |
## address=/<EquipmentName>/<@IP> |
## Exemple : address=/myserver/88.191.66.83 |
## Ajouter une ligne par définition d'alias sous la forme |
## cname=<nom_d'alias>,nom_réel |
## Ajouter une ligne par alias |
## Add one line by alias |
## cname=<AliasName>,nom_réel |
## Exemple cname=alcasouille,alcasar |
## Ajouter une ligne pour chaque domaine géré en interne ; normalement 1 seul devrait suffire en plus de localdomain |
# Votre contrôleur de domaine interne : |
## domain=/You.Domain.AD/<@IP_AD_server> |
## Ajouter une ligne pour chaque domaine géré par un autre seveur DNS |
## Add one line by domains managed by an other DNS server |
## domain=/<your_domain>/<@IP_domain_server> |
## Exemple for an A.D. domainr : domain=/You.Domain.AD/110.120.100.100 |
/CHANGELOG |
---|
4,7 → 4,9 |
---- svn ---- |
Bugs |
- "username" in "userinfo" table is varchar(64) like in others tables of ALCASAR database |
- "activity.php" : don't print "private_ip_address". Update with new "chilli_query" output |
Improve core |
- all "alcasar.info" becomes "alcasar.net" in code |
---------------------- 2.5 -------------------- |
Bugs |
- watchdog of Daemons for service's test |
/scripts/sbin/alcasar-version.sh |
---|
9,7 → 9,7 |
# download the ALCASAR versions (stable / dev) |
VERSION="/var/www/html/VERSION" |
SITE_VERSION="version.alcasar.info" |
SITE_VERSION="version.alcasar.net" |
MAJ="False" |
DNS_VERSION_L=`dig $SITE_VERSION txt | grep ^$SITE_VERSION | cut -d"\"" -f2` |
DNS_VERSION=`echo $DNS_VERSION_L|cut -d" " -f1` |
/web/acc/haut.php |
---|
26,7 → 26,7 |
</HEAD> |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0"> |
<TD valign="top" align="left"><A HREF=javascript:ouvrir("about.htm")><IMG height="80" border="0" SRC="/images/logo-alcasar.png"f></A></TD> |
<TD valign="top" align="center"><A HREF="http://www.alcasar.info" TARGET="_new"><IMG height="80" border="0" SRC="/images/titre-alcasar.png"></A></TD> |
<TD valign="top" align="center"><A HREF="http://www.alcasar.net" TARGET="_new"><IMG height="80" border="0" SRC="/images/titre-alcasar.png"></A></TD> |
<TD valign="top" align="right"><A HREF="admin/logo.php" TARGET="REXY2"><IMG height="80" border="0" SRC="/images/organisme.png"></A></TD> |
</TABLE> |
</BODY> |
/web/acc/admin/activity.php |
---|
9,6 → 9,23 |
<body> |
<TABLE width="100%" border="0" cellspacing="0" cellpadding="0"> |
<? |
#retrieve IP_address of ALCASAR |
$ouvre=fopen("/usr/local/etc/alcasar.conf","r"); |
if ($ouvre){ |
while (!feof ($ouvre)) |
{ |
$tampon = fgets($ouvre, 4096); |
if (strpos($tampon,"=")!==false){ |
$tmp = explode("=",$tampon); |
$conf[$tmp[0]] = $tmp[1]; |
} |
} |
}else{ |
exit("Erreur d'ouverture du fichier ".ALCASAR_ETH1); |
} |
fclose($ouvre); |
$tmp = explode("/",$conf["PRIVATE_IP"]); |
$private_ip=$tmp[0]; |
# Choice of language |
$mac_allowed_list="/usr/local/etc/alcasar-macallowed"; |
$Language = 'en'; |
77,18 → 94,18 |
exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); |
while (list(,$ligne) = each($output)){ |
$detail = explode (" ", $ligne); |
if (($detail[1] != "0.0.0.0")&&($detail[1] != "1.0.0.0")){ |
if ($detail[1] != $private_ip){ |
$nb_ligne ++; |
echo "<FORM action='".$_SERVER['PHP_SELF']."' method=POST>"; |
echo "<TR>"; |
echo "<TD>"; echo $nb_ligne; echo "</TD>"; |
echo "<TD>"; echo $detail[1]; echo "</TD>"; |
echo "<TD>"; echo $detail[0]; echo "</TD>"; |
echo "<TD>".$nb_ligne."</TD>"; |
echo "<TD>".$detail[1]."</TD>"; |
echo "<TD>".$detail[0]."</TD>"; |
echo "<TD>"; |
# station authorisée |
# authorized equipment |
if ($detail[4] == "1"){ |
# par @MAC |
if ($detail[5] == "-"){ |
# by MAC address |
if ($detail[5] == $detail[0]){ |
echo "$l_mac_allowed"; |
if (is_file ($mac_allowed_list)) # le fichier existe |
{ |
110,7 → 127,7 |
else { echo "$l_error_open_file $mac_allowed_list";} |
echo "</TD><TD> "; |
} |
# par usager authentifié |
# by user |
else { |
echo "<a href=\"/acc/manager/htdocs/user_admin.php?login=$detail[5]\" title=\"Editer l'utilisateur $detail[5]\">$detail[5]</a>"; |
echo "</TD>"; |
121,7 → 138,7 |
echo "<INPUT type=submit value='$l_disconnect'>"; |
} |
} |
# station sans usager connecté |
# equipment without authenticated user |
else { |
echo " "; |
echo "</TD>"; |
/web/acc/phpsysinfo/includes/xml/portail.php |
---|
58,7 → 58,7 |
// Fonction de test de connectivité internet |
function internetTest(){ |
$host = "www.google.com"; # Google Test |
$host2 = "www.alcasar.info"; |
$host2 = "www.alcasar.net"; |
$port = "80"; |
//var $num; //non utilisé |
//var $error; //non utilisé |
122,7 → 122,7 |
else { $web_antivir_status = $text['disable'];} |
if ((filtrageTest("/var/www/html/index.php","/network_pb = False/")) && (internetTest())){ |
$internet_status = "<img src='/images/state_ok.gif'>".$text['enable']; |
$version = dns_get_record("version.alcasar.info",DNS_TXT); |
$version = dns_get_record("version.alcasar.net",DNS_TXT); |
$AVAILABLEDVERSION = $version[0]['txt']; |
} else { |
$internet_status = "<img src='/images/state_error.gif'>".$text['disable']; |