/web/acc/admin/network.php |
---|
33,13 → 33,9 |
$l_ip_dns2 = "DNS2"; |
$l_dhcp_title = "Service DHCP"; |
$l_dhcp_state = "Mode actuel"; |
$l_dhcp_mode = "Les différents modes sont les suivants :"; |
$l_DHCP_full = "DHCP complet"; |
$l_DHCP_half = "Demi DHCP "; |
$l_DHCP_off = "Sans DHCP"; |
$l_DHCP_full_explain = "Le serveur DHCP couvre la totalité des adresses du réseau. Des adresses statiques peuvent être réservées (cf. ci-dessous)."; |
$l_DHCP_half_explain = "La première moitié du réseau est réservé à l'adressage statique, l'autre moitié est en adressage dynamique (DHCP)."; |
$l_DHCP_off_explain = "Le serveur DHCP est arrêté."; |
$l_DHCP_on = "actif"; |
$l_DHCP_off = "inactif"; |
$l_DHCP_off_explain = "! Avant d'arréter le serveur DHCP, vous devez renseigner les paramêtres d'un serveur externe (cf. documentation)."; |
$l_static_dhcp_title = "Réservation d'adresses IP statiques"; |
$l_mac_address = "Adresse MAC"; |
$l_ip_address = "Adresse IP"; |
60,13 → 56,9 |
$l_ip_dns2 = "DNS2"; |
$l_dhcp_title = "DHCP service"; |
$l_dhcp_state = "Current mode"; |
$l_dhcp_mode = "The different modes are the following :"; |
$l_DHCP_full = "Full DHCP"; |
$l_DHCP_half = "Half DHCP "; |
$l_DHCP_off = "No DHCP"; |
$l_DHCP_full_explain = "The DHCP server manage all equipments in DHCP mode. Some static addresses can be reserved (see bellow)."; |
$l_DHCP_half_explain = "The first half of LAN's equipments are in static mode, the other are in dynamic mode (DHCP)."; |
$l_DHCP_off_explain = "The DHCP server is off."; |
$l_DHCP_on = "enabled"; |
$l_DHCP_off = "disabled"; |
$l_DHCP_off_explain = "! Before disabling the DHCP server, you must write the extern DHCP parameters in the config file (see Documentation)"; |
$l_static_dhcp_title = "Static IP addresses reservation"; |
$l_mac_address = "MAC Address"; |
$l_ip_address = "IP Address"; |
77,15 → 69,12 |
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";} |
switch ($choix) |
{ |
case 'DHCP_Full' : |
exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -full"); |
case 'DHCP_On' : |
exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -on"); |
break; |
case 'DHCP_Off' : |
exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -off"); |
break; |
case 'DHCP_Half' : |
exec ("sudo /usr/local/sbin/alcasar-dhcp.sh -half"); |
break; |
case 'new_mac' : |
if ((trim($_POST['add_mac']) != "") and (trim($_POST['add_ip']) != "")) |
{ |
251,7 → 240,7 |
<tr bgcolor="#FFCC66"><td><img src="/images/pix.gif" width="1" height="2"></td></tr> |
</table> |
<table width="100%" border=1 cellspacing=0 cellpadding=0> |
<tr><td valign="middle" align="left"> |
<tr><td colspan="2" valign="middle" align="left"> |
<? |
$dhcp_state=trim($conf["DHCP"]); |
echo "<CENTER><H3>$l_dhcp_state : ${"l_DHCP_".$dhcp_state}</H3></CENTER>"; |
258,16 → 247,13 |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>"; |
echo "<select name='choix'>"; |
echo "<option value=\"DHCP_Off\" ";if (!strcmp($dhcp_state,"off")) echo "selected";echo ">$l_DHCP_off"; |
echo "<option value=\"DHCP_Half\" ";if (!strcmp($dhcp_state,"half")) echo "selected";echo ">$l_DHCP_half"; |
echo "<option value=\"DHCP_Full\" ";if (!strcmp($dhcp_state,"full")) echo "selected";echo ">$l_DHCP_full"; |
echo "<option value=\"DHCP_On\" ";if (!strcmp($dhcp_state,"on")) echo "selected";echo ">$l_DHCP_on"; |
echo "</select>"; |
echo "<input type=submit value='$l_apply'>"; |
echo "<td valign='middle' align='left'><center><H3>$l_dhcp_mode</h3></center>"; |
echo "$l_DHCP_off : $l_DHCP_off_explain<br>$l_DHCP_half : $l_DHCP_half_explain<br>$l_DHCP_full : $l_DHCP_full_explain"; |
echo "</td>"; |
echo "<br>$l_DHCP_off_explain"; |
echo "</FORM>"; |
echo "</td></tr>"; |
if (strncmp($conf["DHCP"],"full",2) == 0) { require ('network2.php');} |
if (strncmp($conf["DHCP"],"on",2) == 0) { require ('network2.php');} |
else { echo "</TABLE>"; } |
?> |
</body> |
/web/acc/admin/services.php |
---|
32,7 → 32,7 |
$l_dnsmasq_blacklist = "Serveur DNS pour la Blacklist"; |
$l_dnsmasq_whitelist = "Serveur DNS pour la Whitelist"; |
$l_dnsmasq_blackhole = "Serveur DNS 'trou noir'"; |
$l_ulog_ssh = "journalisation des accès par SSH"; |
$l_ulogd_ssh = "journalisation des accès par SSH"; |
$l_ulogd_ext_access = "journalisation des tentatives d'accès externes"; |
$l_ulogd_traceability = "journalisation des connexions WEB filtrés"; |
} else { |
/web/acc/auth.php |
---|
1,19 → 1,19 |
<? |
$select[0]=$l_create_user; |
$select[1]=$l_edit_user; |
$select[2]=$l_create_group; |
$select[3]=$l_edit_group; |
$select[4]=$l_import_empty; |
$select[5]="Exceptions"; |
$select[6]="$l_activity"; |
$select[0]="$l_activity"; |
$select[1]=$l_create_user; |
$select[2]=$l_edit_user; |
$select[3]=$l_create_group; |
$select[4]=$l_edit_group; |
$select[5]=$l_import_empty; |
$select[6]="Exceptions"; |
$select[7]=$l_gammu; |
$fich[0]="manager/htdocs/user_new.php"; |
$fich[1]="manager/htdocs/find.php"; |
$fich[2]="manager/htdocs/group_new.php"; |
$fich[3]="manager/htdocs/show_groups.php"; |
$fich[4]="manager/htdocs/import_user.php"; |
$fich[5]="admin/auth_exceptions.php"; |
$fich[6]="manager/activity.php"; |
$fich[0]="manager/activity.php"; |
$fich[1]="manager/htdocs/user_new.php"; |
$fich[2]="manager/htdocs/find.php"; |
$fich[3]="manager/htdocs/group_new.php"; |
$fich[4]="manager/htdocs/show_groups.php"; |
$fich[5]="manager/htdocs/import_user.php"; |
$fich[6]="admin/auth_exceptions.php"; |
$fich[7]="manager/htdocs/autoregistration.php"; |
$j=0; |
$nb=count($select); |
/web/acc/manager/activity.php |
---|
27,6 → 27,8 |
fclose($ouvre); |
$tmp = explode("/",$conf["PRIVATE_IP"]); |
$private_ip=$tmp[0]; |
$tmp = explode("/",$conf["INTIF"]); |
$intif = $tmp[0]; |
require('/etc/freeradius-web/config.php'); |
# Choice of language |
$Language = 'en'; |
91,9 → 93,11 |
<th>$l_user</th> |
<th>$l_action</th> |
</tr>"; |
$output = array(); $output_mac = array(); $nb_ligne = 0; |
exec ('sudo /sbin/ip link show eth1 |grep ether|cut -d" " -f6', $output_mac); |
$eth1_mac_addr=strtoupper(str_replace(":","-",$output_mac[0])); |
$output = array(); $detail = array(); $nb_ligne = 0; |
exec ("sudo /sbin/ip link show $intif", $output); |
$detail = explode (" " , $output[1]); |
$intif_mac_addr=strtoupper(str_replace(":","-",$detail[5])); |
unset ($output);unset ($detail); |
exec ('sudo /usr/sbin/chilli_query list|sort -k5 -r', $output); |
while (list(,$ligne) = each($output)){ |
$detail = explode (" ", $ligne); |
123,7 → 127,7 |
} |
} |
# equipment without authenticated user |
else if (($detail[0] == $eth1_mac_addr) || ($detail[1] == $private_ip)){ |
else if (($detail[0] == $intif_mac_addr) || ($detail[1] == $private_ip)){ |
echo "ALCASAR system"; |
echo "</TD>"; |
echo "<TD>"; |
/web/acc/manager/htdocs/autoregistration.php |
---|
37,7 → 37,7 |
$l_time_perm = "Durée du blocage (en jours)"; |
$l_status_gammu = "Etat du service"; |
$l_start = "Démarrer"; |
$l_status_device = "Status de votre périphérique"; |
$l_status_device = "Status de votre clé 3G"; |
$l_key_diseable = "Aucun périphérique détecté"; |
$l_key_enable = "Votre clé est connectée"; |
$l_force_signal = "Force du signal"; |
99,13 → 99,13 |
$l_conf = "Configuration"; |
$l_conf_actu = "Current configuration"; |
$l_pin = "PIN password"; |
$l_num_alcasar = "Phone number (3g key)"; |
$l_num_alcasar = "Phone number (3G key)"; |
$l_ban_temp = "Max number of try before a permanent ban"; |
$l_time_account = "Time for a new session"; |
$l_time_perm = "Duration of a ban (for example, after X try)"; |
$l_status_gammu = "Service status"; |
$l_start = "Start"; |
$l_status_device = "Status of your device"; |
$l_status_device = "Status of your 3G key"; |
$l_key_diseable = "No device detected"; |
$l_key_enable = "Your 3g key is connected"; |
$l_force_signal = "Signal strength"; |
/web/acc/manager/htdocs/user_new.php |
---|
341,7 → 341,7 |
break; |
case 'Expiration' : |
/*Pré-remplissage avec la date du lendemain*/ |
$val=date("d F Y",strtotime("+1 day"));//<--en commentant cette ligne la valeur n'est plus pré-remplie |
/* $val=date("d F Y",strtotime("+1 day"));//<--en commentant cette ligne la valeur n'est plus pré-remplie |
/*Ajout du calendrier pour choisir la date*/ |
echo"<input id=\"popup_container\" type=text name=\"$name\" value=\"$val\" size=20>"; |
break; |
/web/acc/manager/lib/langues.php |
---|
102,7 → 102,7 |
$l_change = "Modifier"; |
$l_or = "Ou"; |
$l_create_multiple = "Créer plusieurs tickets"; |
$l_create_multiple_comment = "<br>Remarques : lors de la création plusieurs tickets simultanement :<br> |
$l_create_multiple_comment = "<br>Remarques : lors de la création de plusieurs tickets simultanement :<br> |
- l'identifiant et le mot de passe sont générés aléatoirement,<br> |
- les champs \"Nom, prénom\" et \"Adresse de couriel\" ne sont pas pris en compte.<br> "; |
$l_createTicketsMSG = "Saisissez le nombre d\'utilisateurs à créer"; |
/web/acc/system.php |
---|
1,13 → 1,11 |
<?php |
# $Id$ |
$select[0]=$l_activity; |
$select[1]=$l_network; |
$select[0]=$l_network; |
$select[1]="Services"; |
$select[2]=$l_ldap; |
$select[3]="Services"; |
$fich[0]="admin/activity.php"; |
$fich[1]="admin/network.php"; |
$fich[0]="admin/network.php"; |
$fich[1]="admin/services.php"; |
$fich[2]="admin/ldap.php"; |
$fich[3]="admin/services.php"; |
$j=0; |
$nb=count($select); |
while ($j != $nb) |
/web/language/alcasar-fr.txt |
---|
323,8 → 323,8 |
acc/admin/network.php |
$l_network_title = "Configuration réseau"; |
$l_eth0_legend = "Eth0 (Interface connectée à Internet)"; |
$l_eth1_legend = "Eth1 (Réseau de consultation)"; |
$l_extif_legend = "Interface connectée à Internet"; |
$l_intif_legend = "Interface connectée au réseau de consultation"; |
$l_internet_legend = "INTERNET"; |
$l_ip_adr = "Adresse IP"; |
$l_ip_mask = "Masque"; |