Exemplo n.º 1
0
?>
				<?php 
if (file_exists($d_upnpconfdirty_path)) {
    print_config_change_box();
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
				<?php 
html_titleline_checkbox("enable", gettext("DLNA/UPnP Media Server"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], gettext("Give your media library a friendly name."), true, 35);
?>
					<!--
					<?php 
html_interfacecombobox("if", gettext("Interface"), $pconfig['if'], gettext("Select which interface to use. (only selectable if your server has more than one)"), true);
?>
					-->
				<tr>
					<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Interface selection");
?>
</td>
					<td width="78%" class="vtable">
					<select name="if" class="formfld" id="xif">
						<?php 
foreach ($a_interface as $if => $ifinfo) {
    ?>
							<?php 
    $ifinfo = get_interface_info($if);
    if ("up" == $ifinfo['status'] || "associated" == $ifinfo['status']) {
Exemplo n.º 2
0
		</td>
	</tr>
	<tr>
		<td class="tabcont">
			<form action="diag_ping.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_inputbox("host", gettext("Host"), $host, gettext("Destination host name or IP number."), true, 20);
?>
					<?php 
html_interfacecombobox("interface", gettext("Interface"), !empty($interface) ? $interface : "", gettext("Use the following IP address as the source address in outgoing packets."), true);
?>
					<?php 
$a_count = array();
for ($i = 1; $i <= 10; $i++) {
    $a_count[$i] = $i;
}
?>
					<?php 
html_combobox("count", gettext("Count"), $count, $a_count, gettext("Stop after sending (and receiving) N packets."), true);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Ping");
?>
Exemplo n.º 3
0
?>
				<?php 
if (file_exists($d_upnpconfdirty_path)) {
    print_config_change_box();
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
				<?php 
html_titleline_checkbox("enable", gettext("UPnP A/V Media Server"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("name", gettext("Name"), $pconfig['name'], gettext("UPnP friendly name."), true, 20);
?>
					<!--
					<?php 
html_interfacecombobox("if", gettext("Interface"), $pconfig['if'], gettext("Interface to listen to."), true);
?>
					-->
				<tr>
					<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Interface");
?>
</td>
					<td width="78%" class="vtable">
					<select name="if" class="formfld" id="xif">
						<?php 
foreach ($a_interface as $if => $ifinfo) {
    ?>
							<?php 
    $ifinfo = get_interface_info($if);
    if ("up" == $ifinfo['status'] || "associated" == $ifinfo['status']) {