36,11 → 36,7 |
$l_dhcp_state = "Mode actuel"; |
$l_DHCP_on = "actif"; |
$l_DHCP_off = "inactif"; |
$l_chilliNTP_on = "actif"; |
$l_chilliNTP_off = "inactif"; |
$l_chilliNTP_explain = "Activer l'option NTP dans les requêtes DHCP de coova-chilli ?<br> si oui, vous devez spécifier l'addresse IP du serveur NTP dans le fichier '/usr/local/etc/alcasar.conf' et changer la valeur de CHILLI_NTP_IP par l'ip de votre serveur NTP. Ensuite rendez le NTP 'actif' et appliquez."; |
$l_DHCP_off_explain = "! Avant d'arrêter le serveur DHCP, vous devez renseigner les paramètres d'un serveur externe (cf. documentation)."; |
$l_DHCP_explain = "Activer le DHCP"; |
$l_static_dhcp_title = "Réservation d'adresses IP statiques"; |
$l_mac_address = "Adresse MAC"; |
$l_ip_address = "Adresse IP"; |
73,10 → 69,6 |
$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_DHCP_explain = "Enable DHCP"; |
$l_chilliNTP_on = "enabled"; |
$l_chilliNTP_off = "disabled"; |
$l_chilliNTP_explain = "Would you like to enable NTP option in DHCP request of coova-chilli?<br> You have to specify IP address of NTP server in this file '/usr/local/etc/alcasar.conf' and change the value of CHILLI_NTP_IP by @IP of NTP server. Then select 'enabled' and 'Apply change'."; |
$l_static_dhcp_title = "Static IP addresses reservation"; |
$l_mac_address = "MAC Address"; |
$l_ip_address = "IP Address"; |
98,12 → 90,6 |
if (isset($_POST['choix'])){$choix=$_POST['choix'];} else {$choix="";} |
switch ($choix) |
{ |
case 'chilliNTP_On' : |
exec ("sudo /usr/local/bin/alcasar-chilli_ntp.sh -on"); |
break; |
case 'chilliNTP_Off' : |
exec ("sudo /usr/local/bin/alcasar-chilli_ntp.sh -off"); |
break; |
case 'DHCP_On' : |
exec ("sudo /usr/local/bin/alcasar-dhcp.sh -on"); |
break; |
375,26 → 361,13 |
$dhcp_state=trim($conf["DHCP"]); |
echo "<CENTER><H3>$l_dhcp_state : ${"l_DHCP_".$dhcp_state}</H3></CENTER>"; |
echo "<FORM action='$_SERVER[PHP_SELF]' method=POST>"; |
echo "<br><b>$l_DHCP_explain : </b><br>"; |
echo "<select name='choix'>"; |
echo "<option value=\"DHCP_Off\" ";if (!strcmp($dhcp_state,"off")) echo "selected";echo ">$l_DHCP_off"; |
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 "<br>$l_DHCP_off_explain"; |
|
echo "<br>$l_DHCP_off_explain<br>"; |
|
//DHCP option NTP (as known as 'option 42') with coovachilli |
if (!strcmp($dhcp_state,"on")) |
{ |
$chilliNTP_state=trim($conf["CHILLI_NTP_ENABLED"]); |
echo "<br><b>$l_chilliNTP_explain : </b><br>"; |
echo "<select name='chilliNTP_choix'>"; |
echo "<option value=\"chilliNTP_Off\" ";if (!strcmp($chilliNTP_state,"off")) echo "selected";echo ">$l_chilliNTP_off"; |
echo "<option value=\"chilliNTP_On\" ";if (!strcmp($chilliNTP_state,"on")) echo "selected";echo ">$l_chilliNTP_on"; |
echo "</select>"; |
} |
|
echo "<br><br><input type=submit value='$l_apply'>"; |
echo "</FORM>"; |
echo "</td></tr>"; |
if (strncmp($conf["DHCP"],"on",2) == 0) { require ('network2.php');} |