593 |
stephane |
1 |
<?php
|
|
|
2 |
/*
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
*/
|
703 |
stephane |
6 |
/********************************************************************
|
|
|
7 |
* FICHIERS REQUIS *
|
|
|
8 |
*********************************************************************/
|
593 |
stephane |
9 |
require_once('includes/defines.inc.php');
|
|
|
10 |
require_once(ALCASAR_ADMIN_PATH_INC.'/session.inc.php');
|
703 |
stephane |
11 |
|
|
|
12 |
/********************************************************************
|
|
|
13 |
* APPLIQUATION DES MISES A JOURS *
|
|
|
14 |
*********************************************************************/
|
|
|
15 |
/*
|
|
|
16 |
Cette section met à jour la configuration réseau d'alcasar d'Alcasar
|
|
|
17 |
*/
|
|
|
18 |
print_r($_REQUEST);
|
|
|
19 |
/*
|
|
|
20 |
Mise à jour des paramètres WAN
|
|
|
21 |
*/
|
|
|
22 |
|
|
|
23 |
|
|
|
24 |
/*
|
|
|
25 |
Mise à jour des paramètres LAN
|
|
|
26 |
*/
|
|
|
27 |
|
|
|
28 |
|
|
|
29 |
|
|
|
30 |
/*
|
|
|
31 |
Mise à jour des paramètres DNS
|
|
|
32 |
*/
|
|
|
33 |
|
|
|
34 |
/*
|
|
|
35 |
Mise à jour des paramètres DHCP
|
|
|
36 |
*/
|
|
|
37 |
|
|
|
38 |
|
|
|
39 |
/*
|
|
|
40 |
Mise à jour des ROUTE
|
|
|
41 |
*/
|
|
|
42 |
|
|
|
43 |
|
|
|
44 |
/********************************************************************
|
|
|
45 |
* CHOIX DE LA LANGUE *
|
|
|
46 |
*********************************************************************/
|
|
|
47 |
# Choice of language
|
|
|
48 |
$Language = 'en';
|
|
|
49 |
if(isset($_SERVER['HTTP_ACCEPT_LANGUAGE'])){
|
|
|
50 |
$Langue = explode(",",$_SERVER['HTTP_ACCEPT_LANGUAGE']);
|
|
|
51 |
$Language = strtolower(substr(chop($Langue[0]),0,2)); }
|
|
|
52 |
if($Language == 'fr'){
|
|
|
53 |
$l_network_title = "Configuration réseau";
|
|
|
54 |
$l_ip = "@IP/CIDR";
|
|
|
55 |
$l_mask = "Masque";
|
|
|
56 |
$l_gateway = "Passerelle";
|
|
|
57 |
$l_dns = "DNS";
|
|
|
58 |
$l_yes = "OUI";
|
|
|
59 |
$l_no = "NON";
|
|
|
60 |
$l_ip_row_title = "Adresse IP";
|
|
|
61 |
$l_host_row_title = "Nom d'hôte";
|
|
|
62 |
$l_mac_row_title = "Adresse MAC";
|
|
|
63 |
$l_description_row_title = "Description";
|
|
|
64 |
//tabs-wan
|
|
|
65 |
$l_wan = "WAN";
|
|
|
66 |
$l_enable = "actif";
|
|
|
67 |
$l_disable = "inactif";
|
|
|
68 |
$l_internet_title = "Internet";
|
|
|
69 |
$l_ip_public = "@IP public";
|
|
|
70 |
$l_state = "Etat Internet";
|
|
|
71 |
$l_eth0_title = "ETH0 : carte réseau connecté vers Internet";
|
|
|
72 |
//tabs-lan
|
|
|
73 |
$l_lan = "LAN";
|
|
|
74 |
$l_eth1_title = "ETH1 : carte réseau connecté sur le réseau de consultation";
|
|
|
75 |
//tabs-dns-local
|
|
|
76 |
$l_local_dns = "DNS local";
|
|
|
77 |
//tabs-dhcp
|
|
|
78 |
$l_dhcp = "DHCP";
|
|
|
79 |
$l_dhcp_server = "Serveur DHCP";
|
|
|
80 |
$l_dhcp_activation = "Activation";
|
|
|
81 |
$l_dhcp_bail = "Bail";
|
|
|
82 |
$l_dhcp_description = "Si le DHCP est activée, la plage d'adresse IP est coupée en deux.<br />
|
|
|
83 |
Les adresses IP de X.X.X.X à X sont attribuées par DHCP, les autres sont réservées pour un adressage manuel des stations clientes.<br />";
|
|
|
84 |
$l_dhcp_ip_statique = "Adresses IP statiques";
|
|
|
85 |
//tabs-route
|
|
|
86 |
$l_route = "ROUTE";
|
|
|
87 |
$l_destination_row_title = "Destination";
|
|
|
88 |
$l_mask_row_title = "Masque de sous-réseau";
|
|
|
89 |
$l_gateway_row_title = "Passerelle";
|
|
|
90 |
//buttons
|
|
|
91 |
$l_change = "Modifier";
|
|
|
92 |
}
|
|
|
93 |
else { // a traduire
|
|
|
94 |
$l_network_title = "Network configuration";
|
|
|
95 |
$l_ip = "@IP/CIDR";
|
|
|
96 |
$l_mask = "Mask";
|
|
|
97 |
$l_gateway = "Gateway";
|
|
|
98 |
$l_dns = "DNS";
|
|
|
99 |
$l_yes = "YES";
|
|
|
100 |
$l_no = "NO";
|
|
|
101 |
$l_ip_row_title = "IP adress";
|
|
|
102 |
$l_host_row_title = "Host name";
|
|
|
103 |
$l_mac_row_title = "MAC adresse ";
|
|
|
104 |
$l_description_row_title = "Description";
|
|
|
105 |
//tabs-wan
|
|
|
106 |
$l_wan = "WAN";
|
|
|
107 |
$l_enable = "enable";
|
|
|
108 |
$l_disable = "disable";
|
|
|
109 |
$l_internet_title = "Internet";
|
|
|
110 |
$l_ip_public = "Public IP ";
|
|
|
111 |
$l_state = "Internet state";
|
|
|
112 |
$l_eth0_title = "ETH0 : carte réseau connecté vers Internet";
|
|
|
113 |
//tabs-lan
|
|
|
114 |
$l_lan = "LAN";
|
|
|
115 |
$l_eth1_title = "ETH1 : carte réseau connecté sur le réseau de consultation";
|
|
|
116 |
//tabs-dns-local
|
|
|
117 |
$l_local_dns = "Local DNS";
|
|
|
118 |
//tabs-dhcp
|
|
|
119 |
$l_dhcp = "DHCP";
|
|
|
120 |
$l_dhcp_server = "DHCP server";
|
|
|
121 |
$l_dhcp_activation = "Activation";
|
|
|
122 |
$l_dhcp_bail = "Bail";
|
|
|
123 |
$l_dhcp_description = "Si le DHCP est activée, la plage d'adresse IP est coupée en deux.<br />
|
|
|
124 |
Les adresses IP de X.X.X.X à X sont attribuées par DHCP, les autres sont réservées pour un adressage manuel des stations clientes.<br />";
|
|
|
125 |
$l_dhcp_ip_statique = "Adresses IP statiques";
|
|
|
126 |
//tabs-route
|
|
|
127 |
$l_route = "ROUTE";
|
|
|
128 |
$l_destination_row_title = "Destination";
|
|
|
129 |
$l_mask_row_title = "Mask";
|
|
|
130 |
$l_gateway_row_title = "Gateway";
|
|
|
131 |
//buttons
|
|
|
132 |
$l_change = "Modifier";
|
|
|
133 |
}
|
|
|
134 |
|
|
|
135 |
/********************************************************************
|
|
|
136 |
* CONSTANTES AVEC CHEMINS DES FICHIERS DE CONFIGURATION *
|
|
|
137 |
*********************************************************************/
|
|
|
138 |
define ("ALCASAR_CHILLI", "/etc/chilli.conf");
|
|
|
139 |
//define ("ALCASAR_CONF_FILE", "/usr/local/etc/alcasar.conf");
|
|
|
140 |
define ("ALCASAR_CONF_FILE", "includes/alcasar.conf");
|
|
|
141 |
define ("ALCASAR_ETHERS", "/usr/local/etc/alcasar-ethers");
|
|
|
142 |
define ("ALCASAR_DNS_NAME", "/usr/local/etc/alcasar-dns-name");
|
|
|
143 |
|
|
|
144 |
/********************************************************************
|
|
|
145 |
* TEST DES FICHIERS DE CONFIGURATION *
|
|
|
146 |
*********************************************************************/
|
|
|
147 |
|
|
|
148 |
//Test de présence et des droits en lecture des fichiers de configuration.
|
|
|
149 |
/*
|
|
|
150 |
if (!file_exists(ALCASAR_CHILLI)){
|
|
|
151 |
exit("Fichier de configuration ".ALCASAR_CHILLI." non présent");
|
|
|
152 |
}
|
|
|
153 |
*/
|
|
|
154 |
if (!file_exists(ALCASAR_CONF_FILE)){
|
|
|
155 |
exit("Fichier de configuration ".ALCASAR_CONF_FILE." non présent");
|
|
|
156 |
}
|
|
|
157 |
/*
|
|
|
158 |
if (!file_exists(ALCASAR_ETHERS)){
|
|
|
159 |
exit("Fichier de configuration ".ALCASAR_ETHERS." non présent");
|
|
|
160 |
}
|
|
|
161 |
if (!file_exists(ALCASAR_DNS_NAME)){
|
|
|
162 |
exit("Fichier de configuration ".ALCASAR_DNS_NAME." non présent");
|
|
|
163 |
}
|
|
|
164 |
if (!is_readable(ALCASAR_CONF_FILE)){
|
|
|
165 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".ALCASAR_CONF_FILE);
|
|
|
166 |
}
|
|
|
167 |
if (!is_readable(ALCASAR_ETHERS)){
|
|
|
168 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".ALCASAR_ETHERS);
|
|
|
169 |
}
|
|
|
170 |
if (!is_readable(ALCASAR_DNS_NAME)){
|
|
|
171 |
exit("Vous n'avez pas les droits de lecture sur le fichier ".ALCASAR_DNS_NAME);
|
|
|
172 |
}
|
|
|
173 |
*/
|
|
|
174 |
|
|
|
175 |
/********************************************************************
|
|
|
176 |
* PARSING DES FICHIERS DE CONFIGURATION *
|
|
|
177 |
*********************************************************************/
|
|
|
178 |
/*
|
|
|
179 |
alcasar.conf parser
|
|
|
180 |
*/
|
|
|
181 |
$lines = file(ALCASAR_CONF_FILE);
|
|
|
182 |
$alcasar_conf = array();
|
|
|
183 |
foreach($lines as $line)
|
|
|
184 |
{
|
|
|
185 |
if (preg_match('/^[[:space:]]*#/',$line)) // on ignore les commentaires (ligne débutant par #)
|
|
|
186 |
continue;
|
|
|
187 |
if (strpos($line,"=")!==false){ // on parse toutes les lignes contenant un "="
|
|
|
188 |
$tmp = explode("=",$line);
|
|
|
189 |
$alcasar_conf[trim($tmp[0])] = trim($tmp[1]);
|
|
|
190 |
}
|
|
|
191 |
}
|
|
|
192 |
/*
|
|
|
193 |
chilli parser
|
|
|
194 |
*/
|
|
|
195 |
/*
|
|
|
196 |
$lines = file(ALCASAR_CHILLI);
|
|
|
197 |
$chilli = array();
|
|
|
198 |
foreach($lines as $line)
|
|
|
199 |
{
|
|
|
200 |
if (preg_match('/^[[:space:]]*#/',$line)) // on ignore les commentaires (ligne débutant par #)
|
|
|
201 |
continue;
|
|
|
202 |
if (strpos($line,"=")!==false){ // on parse toutes les lignes contenant un "="
|
|
|
203 |
$tmp = explode("=",$line);
|
|
|
204 |
$chilli[trim($tmp[0])] = trim($tmp[1]);
|
|
|
205 |
}
|
|
|
206 |
}
|
|
|
207 |
*/
|
|
|
208 |
/*
|
|
|
209 |
dnsname parser
|
|
|
210 |
*/
|
|
|
211 |
/*
|
|
|
212 |
$lines = file(ALCASAR_DNS_NAME);
|
|
|
213 |
$dnsadresse = array();
|
|
|
214 |
$n = 0;
|
|
|
215 |
foreach($lines as $line)
|
|
|
216 |
{
|
|
|
217 |
if (preg_match('/^[[:space:]]*#/',$line)) // on ignore les commentaires (ligne débutant par #)
|
|
|
218 |
continue;
|
|
|
219 |
if (preg_match("/^(address=\/)/", trim($line))){ // on parse toutes les lignes commencant par "address="
|
|
|
220 |
if (strpos($line,"/")!==false){
|
|
|
221 |
$tmp = explode("/",$line);
|
|
|
222 |
if (count($tmp) == 3) {
|
|
|
223 |
$dnsadresse[$n]['DNSNAME'] = $tmp[1];
|
|
|
224 |
$dnsadresse[$n]['IPADDR'] = $tmp[2];
|
|
|
225 |
$n++;
|
|
|
226 |
}
|
|
|
227 |
}
|
|
|
228 |
}
|
|
|
229 |
}
|
|
|
230 |
*/
|
|
|
231 |
/*
|
|
|
232 |
ethers parser
|
|
|
233 |
BUG COOVA PRESENT : LE CHAMP DESCRIPTION EST TOUJOURS VIDE
|
|
|
234 |
*/
|
|
|
235 |
/*
|
|
|
236 |
$lines = file(ALCASAR_ETHERS);
|
|
|
237 |
$ethers = array();
|
|
|
238 |
$n = 0;
|
|
|
239 |
foreach($lines as $line)
|
|
|
240 |
{
|
|
|
241 |
if (preg_match('^[[:space:]]*#',$line)) // on ignore les commentaires (ligne débutant par #)
|
|
|
242 |
continue;
|
|
|
243 |
$tmp = preg_split("/\s/",$line,2);
|
|
|
244 |
if (count($tmp) == 2) {
|
|
|
245 |
$ethers[$n]['MAC'] = trim($tmp[0]);
|
|
|
246 |
|
|
|
247 |
if (strpos($line,"#")!==false){ //si présence de commentaire
|
|
|
248 |
$tmp2 = explode("#",$tmp[1],2);
|
|
|
249 |
|
|
|
250 |
$ethers[$n]['IPADDR']= trim($tmp2[0]);
|
|
|
251 |
$ethers[$n]['DESCRIPTION']= trim($tmp2[1]);
|
|
|
252 |
} else { //si absence de commentaire
|
|
|
253 |
$ethers[$n]['IPADDR']= trim($tmp[1]);
|
|
|
254 |
$ethers[$n]['DESCRIPTION']= "";
|
|
|
255 |
}
|
|
|
256 |
$n++;
|
|
|
257 |
}
|
|
|
258 |
}
|
|
|
259 |
*/
|
|
|
260 |
/********************************************************************
|
|
|
261 |
* AFFICHAGE DE LA PAGE *
|
|
|
262 |
*********************************************************************/
|
593 |
stephane |
263 |
?><!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN//2.0">
|
|
|
264 |
<html>
|
|
|
265 |
<head>
|
|
|
266 |
<title>Network page</title>
|
703 |
stephane |
267 |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
596 |
stephane |
268 |
<!-- include default CSS -->
|
593 |
stephane |
269 |
<link rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/default.css" type="text/css">
|
596 |
stephane |
270 |
<!-- include JQUERY UI CSS -->
|
|
|
271 |
<link type="text/css" rel="stylesheet" href="<?php echo ALCASAR_ADMIN_PATH_CSS; ?>/default/ui-lightness/jquery-ui-1.8.10.custom.css">
|
|
|
272 |
<!-- include custom page CSS -->
|
|
|
273 |
<style type="text/css">
|
|
|
274 |
|
|
|
275 |
</style>
|
|
|
276 |
<!-- include JQUERY -->
|
|
|
277 |
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-1.5.min.js"></script>
|
|
|
278 |
<!-- include JQUERY UI -->
|
|
|
279 |
<script type="text/javascript" src="<?php echo ALCASAR_ADMIN_PATH_JS; ?>/jquery-ui-1.8.10.all.min.js"></script>
|
|
|
280 |
<!-- include page javascript -->
|
|
|
281 |
<script type="text/javascript">
|
703 |
stephane |
282 |
$(function(){
|
|
|
283 |
$("a").attr("target", "content");
|
|
|
284 |
// Tabs
|
|
|
285 |
$('#tabs').tabs();
|
|
|
286 |
$( "button, input:submit, input:button, input:reset").button();
|
|
|
287 |
});
|
596 |
stephane |
288 |
</script>
|
593 |
stephane |
289 |
</head>
|
596 |
stephane |
290 |
<body>
|
703 |
stephane |
291 |
<div id="tabs">
|
|
|
292 |
<ul>
|
|
|
293 |
<li><a href="#tabs-wan"><?php echo $l_wan; ?></a></li>
|
|
|
294 |
<li><a href="#tabs-lan"><?php echo $l_lan; ?></a></li>
|
|
|
295 |
<li><a href="#tabs-dns-local"><?php echo $l_local_dns; ?></a></li>
|
|
|
296 |
<li><a href="#tabs-dhcp"><?php echo $l_dhcp; ?></a></li>
|
|
|
297 |
<li><a href="#tabs-route"><?php echo $l_route; ?></a></li>
|
|
|
298 |
</ul>
|
|
|
299 |
<!-- -->
|
|
|
300 |
<div id="tabs-wan">
|
|
|
301 |
<form method="post" name="form_wan" action="<?php echo $_SERVER['PHP_SELF']; ?>">
|
|
|
302 |
<table class="ui-widget ui-widget-content">
|
|
|
303 |
<thead>
|
|
|
304 |
<tr class="ui-widget-header"><th colspan="2"><?php echo $l_internet_title; ?></th></tr>
|
|
|
305 |
</head>
|
|
|
306 |
<tbody>
|
|
|
307 |
<tr><td><?php echo $l_state; ?> :</td>
|
|
|
308 |
<td><?php
|
|
|
309 |
/*
|
|
|
310 |
if (InternetTest()){
|
|
|
311 |
echo " <img src='../images/state_ok.gif'> $l_enable";
|
|
|
312 |
$IP_PUB = exec ("wget http://checkip.dyndns.org/ -O - -o /dev/null | cut -d: -f 2 | cut -d\< -f 1");}
|
|
|
313 |
else {
|
|
|
314 |
echo " <img src='../images/state_error.gif'> $l_disable";
|
|
|
315 |
$IP_PUB = "-.-.-.-";}
|
|
|
316 |
*/
|
|
|
317 |
?>
|
|
|
318 |
</td></tr>
|
|
|
319 |
<tr><td><?php echo $l_ip_public; ?> :</td><td><?php //echo $IP_PUB; ?></td></tr>
|
|
|
320 |
<tr><td colspan="2"><br /></td></tr>
|
|
|
321 |
<tr class="ui-widget-header"><th colspan="2"><?php echo $l_eth0_title; ?></th></tr>
|
|
|
322 |
<tr><td><?php echo $l_ip; ?> :</td>
|
|
|
323 |
<td>
|
|
|
324 |
<input type="text" name="WAN-ip" id="WAN-ip" value="<?php echo $alcasar_conf["PUBLIC_IP"]; ?>" class="text">
|
|
|
325 |
</td>
|
|
|
326 |
</tr>
|
|
|
327 |
<tr><td><?php echo $l_mask;
|
|
|
328 |
$WAN_mask="en cour";
|
|
|
329 |
?> :</td><td>
|
|
|
330 |
<input type="text" name="WAN-mask" id="WAN-mask" value="<?php echo $WAN_mask; ?>" class="text">
|
|
|
331 |
</td></tr>
|
|
|
332 |
<tr><td><?php echo $l_gateway; ?> :</td><td>
|
|
|
333 |
<input type="text" name="WAN-gateway" id="WAN-gateway" value="<?php echo $alcasar_conf["GW"]; ?>" class="text">
|
|
|
334 |
</td></tr>
|
|
|
335 |
<tr><td><?php echo $l_dns; ?> 1 :</td><td>
|
|
|
336 |
<input type="text" name="WAN-dns1" id="WAN-dns1" value="<?php echo $alcasar_conf["DNS1"]; ?>" class="text">
|
|
|
337 |
</td></tr>
|
|
|
338 |
<tr><td><?php echo $l_dns; ?> 2 :</td><td>
|
|
|
339 |
<input type="text" name="WAN-dns2" id="WAN-dns2" value="<?php echo $alcasar_conf["DNS2"]; ?>" class="text">
|
|
|
340 |
</td></tr>
|
|
|
341 |
<tr><td colspan ="2"><br /></td></tr>
|
|
|
342 |
<tr><td><input type="submit" value="<?php echo $l_change; ?>" class="text"></td><td><br /></td></tr>
|
|
|
343 |
</tbody>
|
|
|
344 |
</table>
|
|
|
345 |
</form>
|
|
|
346 |
</div>
|
|
|
347 |
<div id="tabs-lan">
|
|
|
348 |
<form method="post" name="form_lan" action="<?php echo $_SERVER['PHP_SELF']; ?>">
|
|
|
349 |
<table class="ui-widget ui-widget-content">
|
|
|
350 |
<thead>
|
|
|
351 |
<tr class="ui-widget-header"><th colspan="2"><?php echo $l_eth1_title; ?></th></tr>
|
|
|
352 |
</thead>
|
|
|
353 |
<tbody>
|
|
|
354 |
<tr><td><?php echo $l_ip; ?> :</td><td><input type="text" name="eth0-ip" id="eth0-ip" value="<?php echo $alcasar_conf["PRIVATE_IP"]; ?>" class="text"></td></tr>
|
|
|
355 |
<tr><td><?php echo $l_mask; ?> :</td><td><input type="text" name="eth0-ip" id="eth0-ip" value="EN COUR" class="text"></td></tr>
|
|
|
356 |
<tr><td colspan ="2"><br /></td></tr>
|
|
|
357 |
<tr><td><input type="submit" value="Modifier" class="text"></td><td><br /></td></tr>
|
|
|
358 |
</tbody>
|
|
|
359 |
</table>
|
|
|
360 |
</form>
|
|
|
361 |
</div>
|
|
|
362 |
<div id="tabs-dns-local">
|
|
|
363 |
<table border="0" id="dns-local" class="ui-widget ui-widget-content">
|
|
|
364 |
<thead>
|
|
|
365 |
<tr class="ui-widget-header"><th><?php echo $l_ip_row_title; ?></th><th></th><th><?php echo $l_host_row_title; ?></th><th class="col_action" scope="col" colspan="2"></th></tr>
|
|
|
366 |
</thead>
|
|
|
367 |
<tbody>
|
|
|
368 |
<?php
|
|
|
369 |
//foreach ($dnsadresse as $dns_entry){
|
|
|
370 |
?>
|
|
|
371 |
<tr>
|
|
|
372 |
<td><?php echo "IP"; ?></td>
|
|
|
373 |
<td> </td>
|
|
|
374 |
<td><?php echo "DOMAINE"; ?></td>
|
|
|
375 |
<td class="col_action" colspan="2"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/delete.png"></td>
|
|
|
376 |
</tr>
|
|
|
377 |
<?php
|
|
|
378 |
//}
|
|
|
379 |
?>
|
|
|
380 |
<tr>
|
|
|
381 |
<td>
|
|
|
382 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
383 |
<input type="text" readonly="readonly" value="168" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
384 |
<input type="text" readonly="readonly" value="182" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
385 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
386 |
</td>
|
|
|
387 |
<td> </td>
|
|
|
388 |
<td>
|
|
|
389 |
<input type="text" value="" maxlength="100" size="50" class="text" name="dhcp_static_macaddr_p0" id="dhcp_static_macaddr_p0">
|
|
|
390 |
</td>
|
|
|
391 |
<td class="col_action"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/add.png"></td>
|
|
|
392 |
<td class="col_action"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/chart_organisation.png"></td>
|
|
|
393 |
</tr>
|
|
|
394 |
</tbody>
|
|
|
395 |
</table>
|
|
|
396 |
</div>
|
|
|
397 |
<div id="tabs-dhcp">
|
|
|
398 |
<div id="dhcp">
|
|
|
399 |
<div id="div_dhcp_conf">
|
|
|
400 |
<h3 class="ui-widget-header"><?php echo $l_dhcp_server; ?></h3>
|
|
|
401 |
<form name="form_dhcp" action="<?php echo $_SERVER['PHP_SELF']; ?>" id="dhcp_conf_form">
|
|
|
402 |
|
|
|
403 |
<table class="ui-widget ui-widget-content">
|
|
|
404 |
<tr><td><?php echo $l_dhcp_activation; ?> :</td>
|
|
|
405 |
<td>
|
|
|
406 |
<select name="" class="text">
|
|
|
407 |
<option><?php echo $l_yes; ?></option>
|
|
|
408 |
<option<?php echo $l_no; ?>></option>
|
|
|
409 |
</select>
|
|
|
410 |
</td>
|
|
|
411 |
</tr>
|
|
|
412 |
<tr>
|
|
|
413 |
<td>DHCP start :</td>
|
|
|
414 |
<td>
|
|
|
415 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
416 |
<input type="text" readonly="readonly" value="168" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
417 |
<input type="text" readonly="readonly" value="182" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
418 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
419 |
</td>
|
|
|
420 |
</tr>
|
|
|
421 |
<tr><td>DHCP stop :</td><td>
|
|
|
422 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
423 |
<input type="text" readonly="readonly" value="168" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
424 |
<input type="text" readonly="readonly" value="182" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
425 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
426 |
</td>
|
|
|
427 |
</tr>
|
|
|
428 |
<tr><td>MTU :</td><td><input type="text" value="1500" maxlength="8" size="8" class="text" name="" id=""></td></tr>
|
|
|
429 |
<tr><td><?php echo $l_dhcp_bail; ?> :</td><td><input type="text" value="600" maxlength="8" size="8" class="text" name="" id=""></td></tr>
|
|
|
430 |
<tr><td>Grâce :</td><td><input type="text" value="60" maxlength="8" size="8" class="text" name="" id=""></td></tr>
|
|
|
431 |
<tr><td colspan ="2"><br /></td></tr>
|
|
|
432 |
<tr><td><input type="submit" value="Modifier" class="text"></td><td></td></tr>
|
|
|
433 |
</table>
|
|
|
434 |
<br />
|
|
|
435 |
<?php echo $l_dhcp_description; ?>
|
|
|
436 |
</form>
|
|
|
437 |
</div>
|
|
|
438 |
<br /><br />
|
|
|
439 |
|
|
|
440 |
|
|
|
441 |
<div id="div_dhcp_statique">
|
|
|
442 |
<h3><?php echo $l_dhcp_ip_statique; ?></h3>
|
|
|
443 |
<table border="0" id="dhcp_static" class="ui-widget ui-widget-content">
|
|
|
444 |
<thead>
|
|
|
445 |
<tr class="ui-widget-header"><th><?php echo $l_ip_row_title; ?></th><th></th><th><?php echo $l_mac_row_title; ?></th><th></th><th><?php echo $l_description_row_title; ?></th><th class="col_action" scope="col" colspan="2"></th></tr>
|
|
|
446 |
</thead>
|
|
|
447 |
<tbody>
|
|
|
448 |
<?php
|
|
|
449 |
//foreach ($ethers as $ip_static){
|
|
|
450 |
?>
|
|
|
451 |
<tr>
|
|
|
452 |
<td><?php //echo $ip_static['IP']; ?></td>
|
|
|
453 |
<td> </td>
|
|
|
454 |
<td><?php //echo $ip_static['MAC']; ?></td>
|
|
|
455 |
<td> </td>
|
|
|
456 |
<td><?php //echo $ip_static['DESCRIPTION']; ?></td>
|
|
|
457 |
<td class="col_action" colspan="2"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/delete.png"></td>
|
|
|
458 |
</tr>
|
|
|
459 |
<?php
|
|
|
460 |
//}
|
|
|
461 |
?>
|
|
|
462 |
<tr>
|
|
|
463 |
<td>
|
|
|
464 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
465 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
466 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
467 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
468 |
</td>
|
|
|
469 |
<td> </td>
|
|
|
470 |
<td>
|
|
|
471 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p0" id="dhcp_static_macaddr_p0">:
|
|
|
472 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p1" id="dhcp_static_macaddr_p1">:
|
|
|
473 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p2" id="dhcp_static_macaddr_p2">:
|
|
|
474 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p3" id="dhcp_static_macaddr_p3">:
|
|
|
475 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p4" id="dhcp_static_macaddr_p4">:
|
|
|
476 |
<input type="text" value="" maxlength="2" size="2" class="text" name="dhcp_static_macaddr_p5" id="dhcp_static_macaddr_p0">
|
|
|
477 |
</td>
|
|
|
478 |
<td> </td>
|
|
|
479 |
<td><input type="text" value="" maxlength="20" size="20" class="text" name="dhcp_static_description" id="dhcp_static_description"></td>
|
|
|
480 |
<td class="col_action"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/add.png"></td>
|
|
|
481 |
<td class="col_action"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/chart_organisation.png"></td>
|
|
|
482 |
</tr>
|
|
|
483 |
</tbody>
|
|
|
484 |
</table>
|
|
|
485 |
</div>
|
|
|
486 |
</div>
|
|
|
487 |
</div>
|
|
|
488 |
<div id="tabs-route">
|
|
|
489 |
Alcasar est la passerelle par défaut des postes du réseau de consulation.<br />
|
|
|
490 |
Si un réseau est accessible par une autre passerelle présente sur le réseau de consultation vous pouvez le préciser içi.<br />
|
|
|
491 |
<br />
|
|
|
492 |
<table border="0" id="route" class="ui-widget ui-widget-content">
|
|
|
493 |
<thead>
|
|
|
494 |
<tr class="ui-widget-header"><th><?php echo $l_destination_row_title; ?></th><th></th><th><?php echo $l_mask_row_title; ?></th><th><?php echo $l_gateway_row_title; ?></th><th class="col_action" scope="col" colspan="2"></th></tr>
|
|
|
495 |
</thead>
|
|
|
496 |
<tbody>
|
|
|
497 |
<?php
|
|
|
498 |
$route_list = array();// a faire
|
|
|
499 |
//foreach ($route_list as $route){
|
|
|
500 |
?>
|
|
|
501 |
<tr>
|
|
|
502 |
<td><?php //echo $route['DESTINATION']; ?>DESTINATION</td>
|
|
|
503 |
<td> </td>
|
|
|
504 |
<td><?php //echo $route['NETMASK']; ?>NETMASK</td>
|
|
|
505 |
<td><?php //echo $route['GATEWAY']; ?>GATEWAY</td>
|
|
|
506 |
<td class="col_action" colspan="2"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/delete.png"></td>
|
|
|
507 |
</tr>
|
|
|
508 |
<?php
|
|
|
509 |
//}
|
|
|
510 |
?>
|
|
|
511 |
<tr>
|
|
|
512 |
<td>
|
|
|
513 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
514 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
515 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
516 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
517 |
</td>
|
|
|
518 |
<td> </td>
|
|
|
519 |
<td>
|
|
|
520 |
<input type="text" value="255" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
521 |
<input type="text" value="255" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
522 |
<input type="text" value="255" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
523 |
<input type="text" value="0" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
524 |
</td>
|
|
|
525 |
<td>
|
|
|
526 |
<input type="text" readonly="readonly" value="192" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p0" id="dhcp_static_ipaddr_p0">.
|
|
|
527 |
<input type="text" readonly="readonly" value="168" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p1" id="dhcp_static_ipaddr_p1">.
|
|
|
528 |
<input type="text" readonly="readonly" value="182" maxlength="3" size="3" class="readonly" name="dhcp_static_ipaddr_p2" id="dhcp_static_ipaddr_p2">.
|
|
|
529 |
<input type="text" value="" maxlength="3" size="3" class="text" name="dhcp_static_ipaddr_p3" id="dhcp_static_ipaddr_p3">
|
|
|
530 |
</td>
|
|
|
531 |
<td class="col_action"><image src="<?php echo ALCASAR_ADMIN_PATH_IMG; ?>/add.png"></td>
|
|
|
532 |
<td class="col_action"></td>
|
|
|
533 |
</tr>
|
|
|
534 |
</tbody>
|
|
|
535 |
</table>
|
|
|
536 |
</div>
|
|
|
537 |
</div>
|
593 |
stephane |
538 |
</body>
|
|
|
539 |
</html>
|