Line 13... |
Line 13... |
13 |
$l_eth1_legend = "Eth1 (Réseau de consultation)";
|
13 |
$l_eth1_legend = "Eth1 (Réseau de consultation)";
|
14 |
$l_internet_legend = "INTERNET";
|
14 |
$l_internet_legend = "INTERNET";
|
15 |
$l_ip_adr = "Adresse IP";
|
15 |
$l_ip_adr = "Adresse IP";
|
16 |
$l_ip_mask = "Masque";
|
16 |
$l_ip_mask = "Masque";
|
17 |
$l_ip_router = "Passerelle";
|
17 |
$l_ip_router = "Passerelle";
|
18 |
$l_ip_public = "Adresse IP public :";
|
18 |
$l_ip_public = "Adresse IP public";
|
19 |
$l_ip_dns1 = "DNS1";
|
19 |
$l_ip_dns1 = "DNS1";
|
- |
|
20 |
$l_ip_dns2 = "DNS2";
|
20 |
} else {
|
21 |
} else {
|
21 |
$l_network_title = "Network configuration";
|
22 |
$l_network_title = "Network configuration";
|
22 |
$l_eth0_legend = "Eth0 (Internet connected interface)";
|
23 |
$l_eth0_legend = "Eth0 (Internet connected interface)";
|
23 |
$l_eth1_legend = "Eth1 (Private network)";
|
24 |
$l_eth1_legend = "Eth1 (Private network)";
|
24 |
$l_internet_legend = "INTERNET";
|
25 |
$l_internet_legend = "INTERNET";
|
25 |
$l_ip_adr = "IP Address";
|
26 |
$l_ip_adr = "IP Address";
|
26 |
$l_ip_mask = "Mask";
|
27 |
$l_ip_mask = "Mask";
|
27 |
$l_ip_router = "Router";
|
28 |
$l_ip_router = "Router";
|
28 |
$l_ip_public = "Public IP address:";
|
29 |
$l_ip_public = "Public IP address";
|
29 |
$l_ip_dns1 = "DNS1 :";
|
30 |
$l_ip_dns1 = "DNS1 :";
|
- |
|
31 |
$l_ip_dns2 = "DNS2";
|
30 |
}
|
32 |
}
|
31 |
|
33 |
|
32 |
/********************************************************************
|
34 |
/********************************************************************
|
33 |
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
|
35 |
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
|
34 |
*********************************************************************/
|
36 |
*********************************************************************/
|
35 |
|
37 |
|
36 |
define ("ALCASAR_CHILLI", "/etc/chilli/config");
|
38 |
define ("ALCASAR_CHILLI", "/etc/chilli/config");
|
37 |
define ("ALCASAR_ETH0", "/etc/sysconfig/network-scripts/ifcfg-eth0");
|
39 |
define ("ALCASAR_ETH0", "/etc/sysconfig/network-scripts/default-ifcfg-eth0");
|
38 |
define ("ALCASAR_ETH1", "/etc/sysconfig/network-scripts/ifcfg-eth1");
|
40 |
define ("ALCASAR_ETH1", "/etc/sysconfig/network-scripts/ifcfg-eth1");
|
39 |
|
41 |
|
40 |
/********************************************************************
|
42 |
/********************************************************************
|
41 |
* TEST DES FICHIERS DE CONFIGURATION *
|
43 |
* TEST DES FICHIERS DE CONFIGURATION *
|
42 |
*********************************************************************/
|
44 |
*********************************************************************/
|
Line 127... |
Line 129... |
127 |
|
129 |
|
128 |
/************************
|
130 |
/************************
|
129 |
* TO DO *
|
131 |
* TO DO *
|
130 |
*************************/
|
132 |
*************************/
|
131 |
//modification de la conf réseau, cmd : ifconfig eth0 .....
|
133 |
//modification de la conf réseau, cmd : ifconfig eth0 .....
|
132 |
//synhro de la modification réseau dans les différentes couches d'alcasar
|
134 |
//synchro de la modification réseau dans les différentes couches d'alcasar
|
133 |
//gestion du dhcp (affichage,modification, ajout @static)
|
135 |
//gestion du dhcp (affichage,modification, ajout @static)
|
134 |
|
136 |
|
135 |
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
137 |
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
136 |
<html><!-- written by steweb57 -->
|
138 |
<html><!-- written by steweb57 -->
|
137 |
<head>
|
139 |
<head>
|
Line 147... |
Line 149... |
147 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
149 |
<TABLE width="100%" border=1 cellspacing=0 cellpadding=1>
|
148 |
<tr><td valign="middle" align="left">
|
150 |
<tr><td valign="middle" align="left">
|
149 |
<fieldset>
|
151 |
<fieldset>
|
150 |
<legend><?php echo $l_eth0_legend; ?></legend>
|
152 |
<legend><?php echo $l_eth0_legend; ?></legend>
|
151 |
<table>
|
153 |
<table>
|
152 |
<tr><td><?php echo $l_ip_adr; ?></td><td><?php echo $eth0["IPADDR"]; ?></td></tr>
|
154 |
<tr><td><?php echo $l_ip_adr." : </td><td>".$eth0["IPADDR"];?></td></tr>
|
153 |
<tr><td><?php echo $l_ip_mask; ?></td><td><?php echo $eth0["NETMASK"]; ?></td></tr>
|
155 |
<tr><td><?php echo $l_ip_mask." : </td><td>".$eth0["NETMASK"];?></td></tr>
|
154 |
<tr><td><?php echo $l_ip_router; ?></td><td><?php echo $eth0["GATEWAY"]; ?></td></tr>
|
156 |
<tr><td><?php echo $l_ip_router." : </td><td>".$eth0["GATEWAY"];?></td></tr>
|
155 |
</table>
|
157 |
</table>
|
156 |
</fieldset>
|
158 |
</fieldset>
|
157 |
<br />
|
159 |
<br />
|
158 |
<fieldset>
|
160 |
<fieldset>
|
159 |
<legend><?php echo $l_eth1_legend; ?></legend>
|
161 |
<legend><?php echo $l_eth1_legend; ?></legend>
|
160 |
<table>
|
162 |
<table>
|
161 |
<tr><td><?php echo $l_ip_adr; ?></td><td><?php echo $eth1["IPADDR"]; ?></td></tr>
|
163 |
<tr><td><?php echo $l_ip_adr." : </td><td>".$eth1["IPADDR"];?></td></tr>
|
162 |
<tr><td><?php echo $l_ip_mask; ?></td><td><?php echo $eth1["NETMASK"]; ?></td></tr>
|
164 |
<tr><td><?php echo $l_ip_mask." : </td><td>".$eth1["NETMASK"];?></td></tr>
|
163 |
</table>
|
165 |
</table>
|
164 |
</fieldset>
|
166 |
</fieldset>
|
165 |
<br />
|
167 |
<br />
|
166 |
<fieldset>
|
168 |
<fieldset>
|
167 |
<legend><?php echo $l_internet_legend; ?></legend>
|
169 |
<legend><?php echo $l_internet_legend; ?></legend>
|
168 |
<table>
|
170 |
<table>
|
169 |
<tr><td> <?php echo $l_ip_public." ".$IP_PUB;?></td></tr>
|
171 |
<tr><td><?php echo $l_ip_public." : </td><td>".$IP_PUB;?></td></tr>
|
170 |
<tr><td><?php echo $l_ip_dns1." ".$eth0["DNS1"]; ?></td></tr>
|
172 |
<tr><td><?php echo $l_ip_dns1." : </td><td>".$eth0["DNS1"];?></td></tr>
|
- |
|
173 |
<tr><td><?php echo $l_ip_dns2." : </td><td>".$eth0["DNS2"];?></td></tr>
|
171 |
</table>
|
174 |
</table>
|
172 |
</fieldset>
|
175 |
</fieldset>
|
173 |
<br />
|
176 |
<br />
|
174 |
</td></tr>
|
177 |
</td></tr>
|
175 |
</table>
|
178 |
</table>
|