Projet

Général

Profil

Télécharger (21 ko) Statistiques
| Branche: | Tag: | Révision:

univnautes / usr / local / www / services_unbound.php @ f64b0b8e

1
<?php
2
/* $Id$ */
3
/*
4
	services_unbound.php
5
	part of the pfSense project (https://www.pfsense.org)
6
	Copyright (C) 2014	Warren Baker (warren@pfsense.org)
7
	All rights reserved.
8

    
9
	Redistribution and use in source and binary forms, with or without
10
	modification, are permitted provided that the following conditions are met:
11

    
12
	1. Redistributions of source code must retain the above copyright notice,
13
	   this list of conditions and the following disclaimer.
14

    
15
	2. Redistributions in binary form must reproduce the above copyright
16
	   notice, this list of conditions and the following disclaimer in the
17
	   documentation and/or other materials provided with the distribution.
18

    
19
	THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
20
	INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
21
	AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
22
	AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
23
	OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24
	SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25
	INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26
	CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27
	ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28
	POSSIBILITY OF SUCH DAMAGE.
29
*/
30
/*
31
	pfSense_MODULE:	dnsresolver
32
*/
33

    
34
##|+PRIV
35
##|*IDENT=page-services-unbound
36
##|*NAME=Services: DNS Resolver page
37
##|*DESCR=Allow access to the 'Services: DNS Resolver' page.
38
##|*MATCH=services_unbound.php*
39
##|-PRIV
40

    
41
require_once("guiconfig.inc");
42
require_once("unbound.inc");
43

    
44
if (!is_array($config['unbound']))
45
	$config['unbound'] = array();
46
$a_unboundcfg =& $config['unbound'];
47

    
48
if (!is_array($config['unbound']['hosts']))
49
	$config['unbound']['hosts'] = array();
50
$a_hosts =& $config['unbound']['hosts'];
51

    
52
if (!is_array($config['unbound']['domainoverrides']))
53
	$config['unbound']['domainoverrides'] = array();
54
$a_domainOverrides = &$config['unbound']['domainoverrides'];
55

    
56
if (isset($config['unbound']['enable']))
57
	$pconfig['enable'] = true;
58
if (isset($config['unbound']['dnssec']))
59
	$pconfig['dnssec'] = true;
60
if (isset($config['unbound']['forwarding']))
61
	$pconfig['forwarding'] = true;
62
if (isset($config['unbound']['regdhcp']))
63
	$pconfig['regdhcp'] = true;
64
if (isset($config['unbound']['regdhcpstatic']))
65
	$pconfig['regdhcpstatic'] = true;
66
if (isset($config['unbound']['txtsupport']))
67
	$pconfig['txtsupport'] = true;
68

    
69
$pconfig['port'] = $config['unbound']['port'];
70
$pconfig['custom_options'] = $config['unbound']['custom_options'];
71

    
72
if (empty($config['unbound']['active_interface']))
73
	$pconfig['active_interface'] = array();
74
else
75
	$pconfig['active_interface'] = explode(",", $config['unbound']['active_interface']);
76
if (empty($config['unbound']['outgoing_interface']))
77
	$pconfig['outgoing_interface'] = array();
78
else
79
	$pconfig['outgoing_interface'] = explode(",", $config['unbound']['outgoing_interface']);
80

    
81
if ($_POST) {
82
	$pconfig = $_POST;
83
	unset($input_errors);
84

    
85
	if ($_POST['apply']) {
86
		$retval = services_unbound_configure();
87
		$savemsg = get_std_save_message($retval);
88
		if ($retval == 0)
89
			clear_subsystem_dirty('unbound');
90
		/* Update resolv.conf in case the interface bindings exclude localhost. */
91
		system_resolvconf_generate();
92
	} else {
93
		if (isset($_POST['enable']) && isset($config['dnsmasq']['enable']))
94
			$input_errors[] = "The system dns-forwarder is still active. Disable it before enabling the DNS Resolver.";
95

    
96
		if (empty($_POST['active_interface']))
97
			$input_errors[] = "A single network interface needs to be selected for the DNS Resolver to bind to.";
98

    
99
		if (empty($_POST['outgoing_interface']))
100
			$input_errors[] = "A single outgoing network interface needs to be selected for the DNS Resolver to use for outgoing DNS requests.";
101

    
102
		if ($_POST['port'])
103
			if (is_port($_POST['port']))
104
				$a_unboundcfg['port'] = $_POST['port'];
105
			else
106
				$input_errors[] = gettext("You must specify a valid port number.");
107
		else if (isset($config['unbound']['port']))
108
			unset($config['unbound']['port']);
109

    
110
		if (isset($_POST['enable']))
111
			$a_unboundcfg['enable'] = true;
112
		else
113
			unset($a_unboundcfg['enable']);
114
		if (isset($_POST['dnssec']))
115
			$a_unboundcfg['dnssec'] = true;
116
		else
117
			unset($a_unboundcfg['dnssec']);
118
		if (isset($_POST['forwarding']))
119
			$a_unboundcfg['forwarding'] = true;
120
		else
121
			unset($a_unboundcfg['forwarding']);
122
		if (isset($_POST['regdhcp']))
123
			$a_unboundcfg['regdhcp'] = true;
124
		else
125
			unset($a_unboundcfg['regdhcp']);
126
		if (isset($_POST['regdhcpstatic']))
127
			$a_unboundcfg['regdhcpstatic'] = true;
128
		else
129
			unset($a_unboundcfg['regdhcpstatic']);
130
		if (isset($_POST['txtsupport']))
131
			$a_unboundcfg['txtsupport'] = true;
132
		else
133
			unset($a_unboundcfg['txtsupport']);
134
		if (is_array($_POST['active_interface']) && !empty($_POST['active_interface']))
135
			$a_unboundcfg['active_interface'] = implode(",", $_POST['active_interface']);
136

    
137
		if (is_array($_POST['outgoing_interface']) && !empty($_POST['outgoing_interface']))
138
			$a_unboundcfg['outgoing_interface'] = implode(",", $_POST['outgoing_interface']);
139

    
140
		$a_unboundcfg['custom_options'] = str_replace("\r\n", "\n", $_POST['custom_options']);
141

    
142
		if (!$input_errors) {
143
			write_config("DNS Resolver configured.");
144
			mark_subsystem_dirty('unbound');
145
		}
146
	}
147
}
148

    
149
if ($_GET['act'] == "del") {
150
	if ($_GET['type'] == 'host') {
151
		if ($a_hosts[$_GET['id']]) {
152
			unset($a_hosts[$_GET['id']]);
153
			write_config();
154
			mark_subsystem_dirty('unbound');
155
			header("Location: services_unbound.php");
156
			exit;
157
		}
158
	} elseif ($_GET['type'] == 'doverride') {
159
		if ($a_domainOverrides[$_GET['id']]) {
160
			unset($a_domainOverrides[$_GET['id']]);
161
			write_config();
162
			mark_subsystem_dirty('unbound');
163
			header("Location: services_unbound.php");
164
			exit;
165
		}
166
	}
167
}
168

    
169
$closehead = false;
170
$pgtitle = array(gettext("Services"),gettext("DNS Resolver"));
171
include_once("head.inc");
172

    
173
?>
174

    
175
<script type="text/javascript">
176
//<![CDATA[
177
function enable_change(enable_over) {
178
	var endis;
179
	endis = !(jQuery('#enable').is(":checked") || enable_over);
180
	jQuery("#active_interface,#outgoing_interface,#dnssec,#forwarding,#regdhcp,#regdhcpstatic,#dhcpfirst,#port,#txtsupport,#custom_options").prop('disabled', endis);
181
}
182
function show_advanced_dns() {
183
	jQuery("#showadv").show();
184
	jQuery("#showadvbox").hide();
185
}
186
//]]>
187
</script>
188
</head>
189

    
190
<body>
191
<?php include("fbegin.inc"); ?>
192
<form action="services_unbound.php" method="post" name="iform" id="iform">
193
<?php if ($input_errors) print_input_errors($input_errors); ?>
194
<?php if ($savemsg) print_info_box($savemsg); ?>
195
<?php if (is_subsystem_dirty('unbound')): ?><br/>
196
<?php print_info_box_np(gettext("The configuration for the DNS Resolver, has been changed") . ".<br />" . gettext("You must apply the changes in order for them to take effect."));?><br />
197
<?php endif; ?>
198
<table width="100%" border="0" cellpadding="0" cellspacing="0" summary="services unbound">
199
	<tbody>
200
		<tr>
201
			<td class="tabnavtbl">
202
				<?php
203
					$tab_array = array();
204
					$tab_array[] = array(gettext("General settings"), true, "services_unbound.php");
205
					$tab_array[] = array(gettext("Advanced settings"), false, "services_unbound_advanced.php");
206
					$tab_array[] = array(gettext("Access Lists"), false, "/services_unbound_acls.php");
207
					display_top_tabs($tab_array, true);
208
				?>
209
			</td>
210
		</tr>
211
		<tr>
212
			<td id="mainarea">
213
				<div class="tabcont">
214
					<table width="100%" border="0" cellpadding="6" cellspacing="0" summary="main area">
215
						<tbody>
216
							<tr>
217
								<td colspan="2" valign="top" class="listtopic"><?=gettext("General DNS Resolver Options");?></td>
218
							</tr>
219
							<tr>
220
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Enable");?></td>
221
								<td width="78%" class="vtable"><p>
222
									<input name="enable" type="checkbox" id="enable" value="yes" <?php if (isset($pconfig['enable'])) echo "checked=\"checked\"";?> onclick="enable_change(false)" />
223
									<strong><?=gettext("Enable DNS Resolver");?><br />
224
									</strong></p>
225
								</td>
226
							</tr>
227
							<tr>
228
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Listen Port");?></td>
229
								<td width="78%" class="vtable">
230
									<p>
231
										<input name="port" type="text" id="port" size="6" <?php if ($pconfig['port']) echo "value=\"{$pconfig['port']}\"";?> />
232
										<br /><br />
233
										<?=gettext("The port used for responding to DNS queries. It should normally be left blank unless another service needs to bind to TCP/UDP port 53.");?>
234
									</p>
235
								</td>
236
							</tr>
237
							<tr>
238
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Network Interfaces"); ?></td>
239
								<td width="78%" class="vtable">
240
									<?php
241
										$interface_addresses = get_possible_listen_ips(true);
242
										$size=count($interface_addresses)+1;
243
									?>
244
									<?=gettext("Interface IPs used by the DNS Resolver for responding to queries from clients. If an interface has both IPv4 and IPv6 IPs, both are used. Queries to other interface IPs not selected below are discarded. The default behavior is to respond to queries on every available IPv4 and IPv6 address.");?>
245
									<br /><br />
246
									<select id="active_interface" name="active_interface[]" multiple="multiple" size="3">
247
										<option value="" <?php if (empty($pconfig['active_interface']) || empty($pconfig['active_interface'][0])) echo 'selected="selected"'; ?>>All</option>
248
										<?php
249
											foreach ($interface_addresses as $laddr):
250
												$selected = "";
251
												if (in_array($laddr['value'], $pconfig['active_interface']))
252
													$selected = 'selected="selected"';
253
										?>
254
										<option value="<?=$laddr['value'];?>" <?=$selected;?>>
255
											<?=htmlspecialchars($laddr['name']);?>
256
										</option>
257
										<?php endforeach; ?>
258
									</select>
259
									<br /><br />
260
								</td>
261
							</tr>
262
							<tr>
263
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Outgoing Network Interfaces"); ?></td>
264
								<td width="78%" class="vtable">
265
									<?php
266
										$interface_addresses = get_possible_listen_ips(true);
267
										$size=count($interface_addresses)+1;
268
									?>
269
									<?=gettext("Utilize different network interface(s) that the DNS Resolver will use to send queries to authoritative servers and receive their replies. By default all interfaces are used.");?>
270
									<br /><br />
271
									<select id="outgoing_interface" name="outgoing_interface[]" multiple="multiple" size="3">
272
										<option value="" <?php if (empty($pconfig['outgoing_interface']) || empty($pconfig['outgoing_interface'][0])) echo 'selected="selected"'; ?>>All</option>
273
										<?php
274
											foreach ($interface_addresses as $laddr):
275
												$selected = "";
276
												if (in_array($laddr['value'], $pconfig['outgoing_interface']))
277
												$selected = 'selected="selected"';
278
										?>
279
										<option value="<?=$laddr['value'];?>" <?=$selected;?>>
280
											<?=htmlspecialchars($laddr['name']);?>
281
										</option>
282
										<?php endforeach; ?>
283
									</select>
284
									<br /><br />
285
								</td>
286
							</tr>
287
							<tr>
288
								<td width="22%" valign="top" class="vncellreq"><?=gettext("DNSSEC");?></td>
289
								<td width="78%" class="vtable"><p>
290
									<input name="dnssec" type="checkbox" id="dnssec" value="yes" <?php echo (isset($pconfig['dnssec']) ? "checked=\"checked\"" : "");?> />
291
									<strong><?=gettext("Enable DNSSEC Support");?><br />
292
									</strong></p>
293
								</td>
294
							</tr>
295
							<tr>
296
								<td width="22%" valign="top" class="vncellreq"><?=gettext("DNS Query Forwarding");?></td>
297
								<td width="78%" class="vtable"><p>
298
									<input name="forwarding" type="checkbox" id="forwarding" value="yes" <?php echo (isset($pconfig['forwarding']) ? "checked=\"checked\"" : "");?> />
299
									<strong><?=gettext("Enable Forwarding Mode");?></strong><br /></p>
300
								</td>
301
							</tr>
302
							<tr>
303
								<td width="22%" valign="top" class="vncellreq"><?=gettext("DHCP Registration");?></td>
304
								<td width="78%" class="vtable"><p>
305
									<input name="regdhcp" type="checkbox" id="regdhcp" value="yes" <?php if (isset($pconfig['regdhcp'])) echo "checked=\"checked\"";?> />
306
									<strong><?=gettext("Register DHCP leases in the DNS Resolver");?><br />
307
									</strong><?php printf(gettext("If this option is set, then machines that specify".
308
									" their hostname when requesting a DHCP lease will be registered".
309
									" in the DNS Resolver, so that their name can be resolved.".
310
									" You should also set the domain in %sSystem:".
311
									" General setup%s to the proper value."),'<a href="system.php">','</a>')?></p>
312
								</td>
313
							</tr>
314
							<tr>
315
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Static DHCP");?></td>
316
								<td width="78%" class="vtable"><p>
317
									<input name="regdhcpstatic" type="checkbox" id="regdhcpstatic" value="yes" <?php if (isset($pconfig['regdhcpstatic'])) echo "checked=\"checked\"";?> />
318
									<strong><?=gettext("Register DHCP static mappings in the DNS Resolver");?><br />
319
									</strong><?php printf(gettext("If this option is set, then DHCP static mappings will ".
320
											"be registered in the DNS Resolver, so that their name can be ".
321
											"resolved. You should also set the domain in %s".
322
											"System: General setup%s to the proper value."),'<a href="system.php">','</a>');?></p>
323
								</td>
324
							</tr>
325
							<tr>
326
								<td width="22%" valign="top" class="vncellreq"><?=gettext("TXT Comment Support");?></td>
327
								<td width="78%" class="vtable"><p>
328
									<input name="txtsupport" type="checkbox" id="txtsupport" value="yes" <?php echo (isset($pconfig['txtsupport']) ? "checked=\"checked\"" : "");?> />
329
									<strong><?=gettext("If this option is set, then any descriptions associated with Host entries and DHCP Static mappings will create a corresponding TXT record.");?><br />
330
									</strong></p>
331
								</td>
332
							</tr>
333
							<tr>
334
								<td width="22%" valign="top" class="vncellreq"><?=gettext("Advanced");?></td>
335
								<td width="78%" class="vtable">
336
									<div id="showadvbox" <?php if ($pconfig['custom_options']) echo "style='display:none'"; ?>>
337
										<input type="button" onclick="show_advanced_dns()" value="<?=gettext("Advanced"); ?>" /> - <?=gettext("Show advanced option");?>
338
									</div>
339
									<div id="showadv" <?php if (empty($pconfig['custom_options'])) echo "style='display:none'"; ?>>
340
										<strong><?=gettext("Advanced");?><br /></strong>
341
										<textarea rows="6" cols="78" name="custom_options" id="custom_options"><?=htmlspecialchars($pconfig['custom_options']);?></textarea><br />
342
										<?=gettext("Enter any additional options you would like to add to the DNS Resolver configuration here, separated by a space or newline"); ?><br />
343
									</div>
344
								</td>
345
							</tr>
346
							<tr>
347
								<td colspan="2">
348
									<input name="submit" type="submit" class="formbtn" value="<?=gettext("Save"); ?>" onclick="enable_change(true)" />
349
								</td>
350
							</tr>
351
						</tbody>
352
					</table>
353
				</div>
354
			</td>
355
		</tr>
356
	</tbody>
357
</table>
358

    
359

    
360
<p><span class="vexpl"><span class="red"><strong><?=gettext("Note:");?><br />
361
</strong></span><?php printf(gettext("If the DNS Resolver is enabled, the DHCP".
362
" service (if enabled) will automatically serve the LAN IP".
363
" address as a DNS server to DHCP clients so they will use".
364
" the DNS Resolver. If Forwarding, is enabled, the DNS Resolver will use the DNS servers".
365
" entered in %sSystem: General setup%s".
366
" or those obtained via DHCP or PPP on WAN if the &quot;Allow".
367
" DNS server list to be overridden by DHCP/PPP on WAN&quot;".
368
" is checked."),'<a href="system.php">','</a>');?><br />
369
</span></p>
370

    
371
&nbsp;<br />
372
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont" summary="host overrides">
373
<tr>
374
	<td colspan="5" valign="top" class="listtopic"><?=gettext("Host Overrides");?></td>
375
</tr>
376
<tr>
377
	<td><br />
378
	<?=gettext("Entries in this section override individual results from the forwarders.");?>
379
	<?=gettext("Use these for changing DNS results or for adding custom DNS records.");?>
380
	</td>
381
</tr>
382
</table>
383
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont sortable" summary="results">
384
	<thead>
385
	<tr>
386
		<td width="20%" class="listhdrr"><?=gettext("Host");?></td>
387
		<td width="25%" class="listhdrr"><?=gettext("Domain");?></td>
388
		<td width="20%" class="listhdrr"><?=gettext("IP");?></td>
389
		<td width="30%" class="listhdr"><?=gettext("Description");?></td>
390
		<td width="5%" class="list">
391
			<table border="0" cellspacing="0" cellpadding="1" summary="add">
392
				<tr>
393
					<td width="17"></td>
394
					<td valign="middle"><a href="services_unbound_host_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" alt="add" /></a></td>
395
				</tr>
396
			</table>
397
		</td>
398
	</tr>
399
	</thead>
400
	<tfoot>
401
	<tr>
402
		<td class="list" colspan="4"></td>
403
		<td class="list">
404
			<table border="0" cellspacing="0" cellpadding="1" summary="add">
405
				<tr>
406
					<td width="17"></td>
407
					<td valign="middle"><a href="services_unbound_host_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" alt="add" /></a></td>
408
				</tr>
409
			</table>
410
		</td>
411
	</tr>
412
	</tfoot>
413
	<tbody>
414
	<?php $i = 0; foreach ($a_hosts as $hostent): ?>
415
	<tr>
416
		<td class="listlr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
417
			<?=strtolower($hostent['host']);?>&nbsp;
418
		</td>
419
		<td class="listr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
420
			<?=strtolower($hostent['domain']);?>&nbsp;
421
		</td>
422
		<td class="listr" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
423
			<?=$hostent['ip'];?>&nbsp;
424
		</td>
425
		<td class="listbg" ondblclick="document.location='services_unbound_host_edit.php?id=<?=$i;?>';">
426
			<?=htmlspecialchars($hostent['descr']);?>&nbsp;
427
		</td>
428
		<td valign="middle" class="list nowrap">
429
			<table border="0" cellspacing="0" cellpadding="1" summary="icons">
430
				<tr>
431
					<td valign="middle"><a href="services_unbound_host_edit.php?id=<?=$i;?>"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" alt="edit" /></a></td>
432
					<td><a href="services_unbound.php?type=host&amp;act=del&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this host?");?>')"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" /></a></td>
433
				</tr>
434
			</table>
435
	</tr>
436
	<?php $i++; endforeach; ?>
437
	<tr style="display:none"><td></td></tr>
438
	</tbody>
439
</table>
440
<br />
441
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont" summary="domain overrides">
442
<tr>
443
	<td colspan="5" valign="top" class="listtopic"><?=gettext("Domain Overrides");?></td>
444
</tr>
445
<tr>
446
	<td><p><?=gettext("Entries in this area override an entire domain by specifying an".
447
	" authoritative DNS server to be queried for that domain.");?></p></td>
448
</tr>
449
</table>
450
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="tabcont sortable" summary="results">
451
	<thead>
452
	<tr>
453
		<td width="35%" class="listhdrr"><?=gettext("Domain");?></td>
454
		<td width="20%" class="listhdrr"><?=gettext("IP");?></td>
455
		<td width="40%" class="listhdr"><?=gettext("Description");?></td>
456
		<td width="5%" class="list">
457
			<table border="0" cellspacing="0" cellpadding="1" summary="add">
458
				<tr>
459
					<td width="17" height="17"></td>
460
					<td><a href="services_unbound_domainoverride_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" alt="add" /></a></td>
461
				</tr>
462
			</table>
463
		</td>
464
	</tr>
465
	</thead>
466
	<tfoot>
467
	<tr>
468
		<td class="list" colspan="3"></td>
469
		<td class="list">
470
		<table border="0" cellspacing="0" cellpadding="1" summary="add">
471
			<tr>
472
				<td width="17" height="17"></td>
473
				<td><a href="services_unbound_domainoverride_edit.php"><img src="./themes/<?= $g['theme']; ?>/images/icons/icon_plus.gif" width="17" height="17" border="0" alt="add" /></a></td>
474
			</tr>
475
		</table>
476
		</td>
477
	</tr>
478
	</tfoot>
479
	<tbody>
480
	<?php $i = 0; foreach ($a_domainOverrides as $doment): ?>
481
	<tr>
482
		<td class="listlr">
483
			<?=strtolower($doment['domain']);?>&nbsp;
484
		</td>
485
		<td class="listr">
486
			<?=$doment['ip'];?>&nbsp;
487
		</td>
488
		<td class="listbg">
489
			<?=htmlspecialchars($doment['descr']);?>&nbsp;
490
		</td>
491
		<td valign="middle" class="list nowrap">
492
			<table border="0" cellspacing="0" cellpadding="1" summary="icons">
493
				<tr>
494
					<td valign="middle"><a href="services_unbound_domainoverride_edit.php?id=<?=$i;?>">
495
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_e.gif" width="17" height="17" border="0" alt="edit" />
496
					</a></td>
497
					<td valign="middle"><a href="services_unbound.php?act=del&amp;type=doverride&amp;id=<?=$i;?>" onclick="return confirm('<?=gettext("Do you really want to delete this domain override?");?>')">
498
						<img src="./themes/<?= $g['theme']; ?>/images/icons/icon_x.gif" width="17" height="17" border="0" alt="delete" />
499
					</a></td>
500
				</tr>
501
			</table>
502
		</td>
503
	</tr>
504
	<?php $i++; endforeach; ?>
505
	<tr style="display:none"><td></td></tr>
506
	</tbody>
507
</table>
508
</form>
509
<script type="text/javascript">
510
//<![CDATA[
511
enable_change(false);
512
//]]>
513
</script>
514
<?php include("fend.inc"); ?>
515
</body>
516
</html>
(170-170/256)