示例#1
0
}
?>
									</td>
						    </tr>
							</table>
							<span class="vexpl"><?php 
echo gettext("Add additional scheduled self-test.");
?>
</span>
						</td>
					</tr>
					<?php 
html_separator();
?>
					<?php 
html_titleline_checkbox("email_enable", gettext("Email report"), !empty($pconfig['email_enable']) ? true : false, gettext("Activate"), "enable_change(this)");
?>
					<?php 
html_inputbox("email_to", gettext("To email"), !empty($pconfig['email_to']) ? $pconfig['email_to'] : "", sprintf("%s %s", gettext("Destination email address."), gettext("Separate email addresses by semi-colon.")), true, 40);
?>
					<?php 
html_checkbox("email_testemail", gettext("Test email"), !empty($pconfig['email_testemail']) ? true : false, gettext("Send a TEST warning email on startup."));
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<div id="remarks">
示例#2
0
	<tr>
		<td class="tabcont">
			<form action="services_nfs.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Network File System"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("numproc", gettext("Number of servers"), $pconfig['numproc'], gettext("Specifies how many servers to create.") . " " . gettext("There should be enough to handle the maximum level of concurrency from its clients, typically four to six."), false, 2);
?>
					<?php 
html_checkbox("v4enable", gettext("NFSv4"), !empty($pconfig['v4enable']) ? true : false, gettext("Enable NFSv4 server."), "", false);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true)" />
				</div>
				<?php 
示例#3
0
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<?php 
if (updatenotify_exists("websrvauth")) {
    print_config_change_box();
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Webserver"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("protocol", gettext("Protocol"), $pconfig['protocol'], array("http" => "HTTP", "https" => "HTTPS"), "", true, false, "protocol_change()");
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("TCP port to bind the server to."), true, 5);
?>
					<?php 
html_combobox("runasuser", gettext("Run as"), $pconfig['runasuser'], array("server.username = \"www\"" => "www", "" => "root"), gettext("Set what user the service will run as (www by default). <br><b><font color='red'>NOTE</font>: Running as root is <u>not recommended</u> for security reasons, use it on your own risk!</b></br>"), true);
?>
	
					<?php 
html_textarea("certificate", gettext("Certificate"), $pconfig['certificate'], gettext("Paste a signed certificate in X.509 PEM format here."), true, 76, 7, false, false);
?>
					<?php 
示例#4
0
    print_error_box($errormsg);
}
?>
	<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
	<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
	<table width="100%" border="0" cellpadding="6" cellspacing="0">
	<?php 
html_titleline_checkbox("enable", gettext("HAST (Highly Available Storage)"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "");
?>
	<?php 
echo html_text("nodeid", gettext("Node ID"), htmlspecialchars($nodeid));
?>
	<?php 
echo html_text("nodename", gettext("Node Name"), htmlspecialchars($nodename));
?>
	<?php 
$a_vipaddrs = array();
foreach ($a_carp as $carp) {
    $ifinfo = get_carp_info($carp['if']);
    //$a_vipaddrs[] = $carp['vipaddr']." ({$ifinfo['state']},{$ifinfo['advskew']})";
    $a_vipaddrs[] = $carp['vipaddr'] . " ({$ifinfo['state']})";
}
?>
	<tr>
		<td class="tabcont">
			<form action="services_tftp.php" method="post" name="iform" id="iform">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Trivial File Transfer Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_filechooser("dir", gettext("Directory"), $pconfig['dir'], gettext("The directory containing the files you want to publish. The remote host does not need to pass along the directory as part of the transfer."), $g['media_path'], true, 60);
?>
					<?php 
html_checkbox("allowfilecreation", gettext("Allow new files"), $pconfig['allowfilecreation'] ? true : false, gettext("Allow new files to be created."), gettext("By default, only already existing files can be uploaded."), false);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Advanced settings"));
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("The port to listen to. The default is to listen to the tftp port specified in /etc/services."), false, 5);
html_inputbox("maxconnections", gettext("Max. connections"), $pconfig['maxconnections'], sprintf(gettext("Maximum number of connections in each session (%d by default)."), 8), true, 30, false);
?>
		      <?php 
html_inputbox("firstburstlength", gettext("FirstBurstLength"), $pconfig['firstburstlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 65536), true, 30, false);
?>
		      <?php 
html_inputbox("maxburstlength", gettext("MaxBurstLength"), $pconfig['maxburstlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 262144), true, 30, false);
?>
		      <?php 
html_inputbox("maxrecvdatasegmentlength", gettext("MaxRecvDataSegmentLength"), $pconfig['maxrecvdatasegmentlength'], sprintf(gettext("iSCSI initial parameter (%d by default)."), 262144), true, 30, false);
?>
		      <?php 
html_separator();
?>
		      <?php 
html_titleline_checkbox("uctlenable", gettext("iSCSI Target Logical Unit Controller"), $pconfig['uctlenable'] ? true : false, gettext("Enable"), "uctlenable_change(false)");
?>
		      <?php 
html_inputbox("uctladdress", gettext("Controller IP address"), $pconfig['uctladdress'], sprintf(gettext("Logical Unit Controller IP address (%s by default)"), "127.0.0.1(localhost)"), true, 30, false);
?>
		      <?php 
html_inputbox("uctlport", gettext("Controller TCP Port"), $pconfig['uctlport'], sprintf(gettext("Logical Unit Controller TCP port (%d by default)"), 3261), true, 15, false);
?>
		      <?php 
html_inputbox("uctlnetmask", gettext("Controller Authorised network"), $pconfig['uctlnetmask'], sprintf(gettext("Logical Unit Controller Authorised network (%s by default)"), "127.0.0.1/8"), true, 30, false);
?>
		      <?php 
html_combobox("uctlauthmethod", gettext("Controller Auth Method"), $pconfig['uctlauthmethod'], array("CHAP" => gettext("CHAP"), "CHAP mutual" => gettext("Mutual CHAP")), gettext("The method can be accepted in the controller."), true);
?>
		      <?php 
$ag_list = array();
示例#7
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td class="tabcont">
	    	<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Active Directory"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
			    <tr>
			      <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Domain controller name");
?>
</td>
			      <td width="78%" class="vtable">
			        <input name="domaincontrollername" type="text" class="formfld" id="domaincontrollername" size="20" value="<?php 
echo htmlspecialchars($pconfig['domaincontrollername']);
?>
" />
			      	<br /><span class="vexpl"><?php 
echo gettext("AD or PDC name.");
?>
</span>
示例#8
0
            tblrow('[' . $i . '] Apparent power (VA)', $ups['outlet.' . $i . '.power'], 'VA');
        }
        html_separator();
        html_titleline(gettext('NUT Internal Driver Information'));
        tblrow(gettext('Driver used'), $ups['driver.name']);
        tblrow(gettext('Driver version'), $ups['driver.version']);
        tblrow(gettext('Driver version internal'), $ups['driver.version.internal']);
        tblrow(gettext('Parameter xxx (ups.conf or cmdline -x) setting'), $ups['driver.parameter.xxx']);
        tblrow(gettext('Flag xxx (ups.conf or cmdline -x) status'), $ups['driver.flag.xxx']);
        html_separator();
        html_titleline(gettext('Internal Server Information'));
        tblrow(gettext('Server information'), $ups['server.info']);
        tblrow(gettext('Server version'), $ups['server.version']);
        html_separator();
        html_separator();
        html_titleline_checkbox('raw_upsc_enable', 'NUT', $upsc_enable ? true : false, gettext('Show RAW UPS Info'), 'upsc_enable_change()');
        tblrow('RAW info', htmlspecialchars($read), 'pre', 'upsc_raw_command');
        unset($handle);
        unset($read);
        unset($lines);
        unset($status);
        unset($disp_status);
        unset($ups);
    }
    unset($cmd);
    ?>
			  <?php 
}
?>
    	<!-- </table> -->
		<?php 
示例#9
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="tabcont">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", sprintf("%s (%s)", gettext("Lightweight Directory Access Protocol"), gettext("Client")), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("hostname", gettext("URI"), $pconfig['hostname'], gettext("The space-separated list of URIs for the LDAP server."), true, 60);
?>
					<?php 
html_inputbox("base", gettext("Base DN"), $pconfig['base'], sprintf(gettext("The default base distinguished name (DN) to use for searches, e.g. %s"), "dc=test,dc=org"), true, 40);
?>
					<?php 
html_checkbox("anonymousbind", gettext("Anonymous bind"), !empty($pconfig['anonymousbind']) ? true : false, gettext("Enable anonymous bind."), "", true, "anonymousbind_change()");
?>
					<?php 
html_inputbox("binddn", gettext("Bind DN"), $pconfig['binddn'], sprintf(gettext("The distinguished name to bind to the directory server, e.g. %s"), "cn=admin,dc=test,dc=org"), true, 40);
?>
					<?php 
html_passwordconfbox("bindpw", "bindpw2", gettext("Bind password"), $pconfig['bindpw'], $pconfig['bindpw2'], gettext("The cleartext credentials with which to bind."), true);
示例#10
0
html_inputbox("http_port", gettext("Port"), $pconfig['http_port'], "", true, 10);
?>
					<?php 
html_checkbox("http_auth", gettext("Authentication"), !empty($pconfig['http_auth']) ? true : false, gettext("Enable proxy authentication."), "", false, "proxy_auth_change()");
?>
          <?php 
html_inputbox("http_username", gettext("User"), $pconfig['http_username'], "", true, 20);
?>
			    <?php 
html_inputbox("http_password", gettext("Password"), $pconfig['http_password'], "", true, 20);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline_checkbox("ftp_enable", gettext("FTP Proxy"), !empty($pconfig['ftp_enable']) ? true : false, gettext("Enable"), "enable_change(this)");
?>
          <?php 
html_inputbox("ftp_address", gettext("Address"), $pconfig['ftp_address'], "", true, 40);
?>
          <?php 
html_inputbox("ftp_port", gettext("Port"), $pconfig['ftp_port'], "", true, 10);
?>
          <?php 
html_checkbox("ftp_auth", gettext("Authentication"), !empty($pconfig['ftp_auth']) ? true : false, gettext("Enable proxy authentication."), "", false, "proxy_auth_change()");
?>
          <?php 
html_inputbox("ftp_username", gettext("User"), $pconfig['ftp_username'], "", true, 20);
?>
			    <?php 
html_inputbox("ftp_password", gettext("Password"), $pconfig['ftp_password'], "", true, 20);
示例#11
0
  <tr>
    <td class="tabcont">
      <form action="services_samba.php" method="post" name="iform" id="iform">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Common Internet File System"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("security", gettext("Authentication"), $pconfig['security'], array("share" => gettext("Anonymous"), "user" => gettext("Local User"), "domain" => gettext("Domain")), "", true, false, "authentication_change()");
?>
          <tr>
            <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("NetBIOS name");
?>
</td>
            <td width="78%" class="vtable">
              <input name="netbiosname" type="text" class="formfld" id="netbiosname" size="30" value="<?php 
echo htmlspecialchars($pconfig['netbiosname']);
?>
" />
            </td>
示例#12
0
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if (!isset($config['system']['zeroconf'])) {
    print_error_box(sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Digital Audio Access Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("servername", gettext("Server name"), $pconfig['servername'], gettext("This is both the name of the server as advertised via Zeroconf/Bonjour/Rendezvous, and the name of the database exported via DAAP."), true, 20);
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("Port to listen on. Default iTunes port is 3689."), true, 5);
?>
					<?php 
html_filechooser("dbdir", gettext("Database directory"), $pconfig['dbdir'], gettext("Location where the content database file will be stored."), $g['media_path'], true, 60);
?>
					<?php 
html_folderbox("content", gettext("Content"), $pconfig['content'], gettext("Location of the files to share."), $g['media_path'], true);
?>
					<?php 
html_inputbox("rescaninterval", gettext("Rescan interval"), $pconfig['rescaninterval'], gettext("Scan file system every N seconds to see if any files have been added or removed. Set to 0 to disable background scanning. If background rescanning is disabled, a scan can still be forced from the status page of the administrative web interface."), false, 5);
}
?>
			<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
			<?php 
if (updatenotify_exists("vm")) {
    print_config_change_box();
}
?>
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
			
				<?php 
html_titleline_checkbox("enable", "Bhyve virtual machines", $pconfig['enable'], gettext("Enable"), "clickfix()");
?>
				
				<tr id='machines_tr'><td colspan='2' valign='top' class='vtable'>
					<?php 
//if( isset( $config['thebrig']['rootfolder'])==false):
?>
						<!--	<a title=<?php 
echo gettext("Configure TheBrig please first");
?>
 -->
					<?php 
// elseif( isset( $config['thebrig']['content'])==false):
?>
						<!--	<a title=<?php 
echo gettext("Configure at least one jail first");
            $enabled = 1;
        }
    }
    ?>
      <?php 
    if (!(isset($uuid) && FALSE !== $cnid)) {
        $a_storage_opt = array_merge(array("-" => gettext("None")), $a_storage_add);
    } else {
        $a_storage_opt = array_merge(array("-" => gettext("None")), $a_storage_edit);
    }
    ?>
      <?php 
    html_separator();
    ?>
			<?php 
    html_titleline_checkbox("{$lenable}", sprintf("%s%d", gettext("LUN"), $i), $enabled ? true : false, gettext("Enable"), "lun_change({$i})");
    ?>
      <?php 
    $index = array_search_ex("{$i}", $pconfig['lunmap'], "lun");
    if (false !== $index) {
        html_combobox("{$lstorage}", gettext("Storage"), $pconfig['lunmap'][$index]['extentname'], $a_storage_opt, sprintf(gettext("The storage area mapped to LUN%d."), $i), true);
    } else {
        html_combobox("{$lstorage}", gettext("Storage"), "-", $a_storage_opt_add, sprintf(gettext("The storage area mapped to LUN%d."), $i), true);
    }
    ?>
      <?php 
}
?>
      <?php 
html_separator();
?>
		</ul>
	</td></tr>
    <tr><td class="tabcont">
        <?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
        <?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
            <?php 
html_titleline_checkbox("enable", gettext("OneButtonInstaller"), $pconfig['enable'], gettext("Enable"), "enable_change(false)");
?>
            <?php 
html_text("installation_directory", gettext("Installation directory"), sprintf(gettext("The extension is installed in %s"), $config['onebuttoninstaller']['rootfolder']));
?>
			<?php 
html_filechooser("storage_path", gettext("Common directory"), $pconfig['storage_path'], gettext("Common directory for all extensions (a persistant place where all extensions are/should be - a directory below <b>/mnt/</b>)."), $pconfig['storage_path'], true, 60);
?>
            <?php 
html_checkbox("path_check", gettext("Path check"), $pconfig['path_check'], gettext("If this option is selected no examination of the common directory path will be carried out (whether it was set to a directory below /mnt/)."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("re_install", gettext("Re-install"), $pconfig['re_install'], gettext("If enabled it is possible to install extensions even if they are already installed."), "<b><font color='red'>" . gettext("Please use this option only if you know what you are doing!") . "</font></b>", false);
?>
            <?php 
html_checkbox("auto_update", gettext("Update"), $pconfig['auto_update'], gettext("Update extensions list automatically."), "", false);
示例#16
0
?>
</span></a></li>
      </ul>
    </td>
  </tr>
  <tr>
    <td class="tabcont">
      <form action="shutdown_sched.php" method="post" name="iform" id="iform">
      	<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Scheduled shutdown"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
          <tr>
						<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Time");
?>
</td>
						<td width="78%" class="vtable">
							<table width="100%" border="0" cellpadding="5" cellspacing="0">
								<tr>
									<td class="listhdrlr"><?php 
echo gettext("Minutes");
?>
</td>
									<td class="listhdrr"><?php 
echo gettext("Hours");
    }
    if (!isset($pconfig["{$lmuser}"])) {
        $pconfig["{$lmuser}"] = "";
    }
    if (!isset($pconfig["{$lmsecret}"])) {
        $pconfig["{$lmsecret}"] = "";
    }
    if (!isset($pconfig["{$lmsecret2}"])) {
        $pconfig["{$lmsecret2}"] = "";
    }
    ?>
	      <?php 
    html_separator();
    ?>
	      <?php 
    html_titleline_checkbox("{$ldelete}", sprintf("%s%d", gettext("User"), $i), false, gettext("Delete"), false);
    ?>
	      <?php 
    html_inputbox("{$luser}", gettext("User"), $pconfig["{$luser}"], gettext("Target side user name. It is usually the initiator name by default."), false, 60);
    ?>
	      <tr>
	        <td width="22%" valign="top" class="vncell"><?php 
    echo gettext("Secret");
    ?>
</td>
	        <td width="78%" class="vtable">
	          <input name="<?php 
    echo $lsecret;
    ?>
" type="password" class="formfld" id="<?php 
    echo $lsecret;
示例#18
0
    html_titleline_checkbox("enable", gettext("IPv4 Configuration"), !empty($pconfig['enable']) ? true : false, gettext("Activate"), "enable_change(false)");
    ?>
											<?php 
    html_combobox("type", gettext("Type"), $pconfig['type'], array("Static" => gettext("Static"), "DHCP" => gettext("DHCP")), "", true, false, "type_change()");
    ?>
											<?php 
    html_inputbox("descr", gettext("Description"), $pconfig['descr'], gettext("You may enter a description here for your reference."), true, 20);
    ?>
											<?php 
    html_ipv4addrbox("ipaddr", "subnet", gettext("IP address"), !empty($pconfig['ipaddr']) ? $pconfig['ipaddr'] : "", !empty($pconfig['subnet']) ? $pconfig['subnet'] : "", "", true);
    ?>
											<?php 
    html_separator();
    ?>
											<?php 
    html_titleline_checkbox("ipv6_enable", gettext("IPv6 Configuration"), !empty($pconfig['ipv6_enable']) ? true : false, gettext("Activate"), "enable_change(this)");
    ?>
											<?php 
    html_combobox("ipv6type", gettext("Type"), $pconfig['ipv6type'], array("Static" => gettext("Static"), "Auto" => gettext("Auto")), "", true, false, "ipv6_type_change()");
    ?>
											<?php 
    html_ipv6addrbox("ipv6addr", "ipv6subnet", gettext("IP address"), !empty($pconfig['ipv6addr']) ? $pconfig['ipv6addr'] : "", !empty($pconfig['ipv6subnet']) ? $pconfig['ipv6subnet'] : "", "", true);
    ?>
											<?php 
    html_separator();
    ?>
											<?php 
    html_titleline(gettext("Advanced Configuration"));
    ?>
											<?php 
    html_inputbox("mtu", gettext("MTU"), $pconfig['mtu'], gettext("Set the maximum transmission unit of the interface to n, default is interface specific. The MTU is used to limit the size of packets that are transmitted on an interface. Not all interfaces support setting the MTU, and some interfaces have range restrictions."), false, 5);
示例#19
0
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if ($failmsg) {
    print_error_box($failmsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Email Report"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<tr>
						<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("To email");
?>
</td>
						<td width="78%" class="vtable">
							<input name="to" type="text" class="formfld" id="to" size="40" value="<?php 
echo htmlspecialchars($pconfig['to']);
?>
" /><br />
							<span class="vexpl"><?php 
echo gettext("Destination email address.");
?>
 <?php 
示例#20
0
?>
</span></a></li>
      </ul>
    </td>
  </tr>
  <tr>
    <td class="tabcont">
      <form action="reboot_sched.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_titleline_checkbox("enable", gettext("Scheduled reboot"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
          <tr>
						<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Time");
?>
</td>
						<td width="78%" class="vtable">
							<table width="100%" border="0" cellpadding="6" cellspacing="0">
								<tr>
									<td class="listhdrlr"><?php 
echo gettext("Minutes");
?>
</td>
									<td class="listhdrr"><?php 
echo gettext("Hours");
示例#21
0
    return $ruleno;
}
include "fbegin.inc";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="tabcont">
      <form action="system_firewall_edit.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_titleline_checkbox("enable", gettext("Firewall rule"), !empty($pconfig['enable']) ? true : false, gettext("Enable"));
?>
        	<?php 
html_inputbox("ruleno", gettext("Rule number"), $pconfig['ruleno'], gettext("The rule number determines the order of the rule."), true, 10);
?>
					<?php 
html_combobox("action", gettext("Action"), $pconfig['action'], array("allow" => gettext("Allow"), "deny" => gettext("Deny"), "unreach host" => gettext("Reject")), gettext("The action which will be executed when the packet match the criteria specified below."), true);
?>
					<?php 
$a_interface = array("" => gettext("All"), get_ifname($config['interfaces']['lan']['if']) => "LAN");
for ($i = 1; isset($config['interfaces']['opt' . $i]); ++$i) {
    $a_interface[$config['interfaces']['opt' . $i]['if']] = $config['interfaces']['opt' . $i]['descr'];
}
?>
					<?php 
html_combobox("if", gettext("Interface"), $pconfig['if'], $a_interface, gettext("Choose on which interface packets must come in to match this rule."), true);
    print_error_box($errormsg);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if (updatenotify_exists("firewall")) {
    print_config_change_box();
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("System firewall"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("Rules");
?>
</td>
						<td width="78%" class="vtable">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="4%" class="listhdrlr">&nbsp;</td>
									<td width="5%" class="listhdrr"><?php 
echo gettext("Proto");
?>
</td>
									<td width="20%" class="listhdrr"><?php 
  <tr>
    <td class="tabcont">
			<form action="services_rsyncd_client_edit.php" method="post" name="iform" id="iform">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Rsync job"), $pconfig['enable'] ? true : false, gettext("Enable"));
?>
					<tr>
						<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("Local share");
?>
</td>
						<td width="78%" class="vtable">
							<input name="localshare" type="text" class="formfld" id="localshare" size="60" value="<?php 
echo htmlspecialchars($pconfig['localshare']);
?>
" />
							<input name="browse" type="button" class="formbtn" id="Browse" onclick='ifield = form.localshare; filechooser = window.open("filechooser.php?p="+escape(ifield.value)+"&amp;sd=<?php 
echo $g['media_path'];
?>
", "filechooser", "scrollbars=yes,toolbar=no,menubar=no,statusbar=no,width=550,height=300"); filechooser.ifield = ifield; window.ifield = ifield;' value="..." /><br />
示例#24
0
	<tr>
		<td class="tabcont">
			<form action="system_swap.php" method="post" name="iform" id="iform">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Swap memory"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("type", gettext("Type"), $pconfig['type'], array("file" => gettext("File"), "device" => gettext("Device")), "", true, false, "type_change()");
?>
					<?php 
html_mountcombobox("mountpoint", gettext("Mount point"), $pconfig['mountpoint'], gettext("Select mount point where to create the swap file."), true);
?>
					<?php 
html_inputbox("size", gettext("Size"), $pconfig['size'], gettext("The size of the swap file in MB."), true, 10);
?>
					<?php 
html_inputbox("devicespecialfile", gettext("Device"), $pconfig['devicespecialfile'], sprintf(gettext("Name of the device to use as swap device, e.g. %s."), "/dev/ad0s3"), true, 20);
?>
				</table>
				<div id="submit">
示例#25
0
	<tr>
		<td class="tabcont">
			<form action="services_ftp_mod.php" method="post">
				<?php 
if (updatenotify_exists("ftpd_mod_ban")) {
    print_config_change_box();
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("mod_ban_enable", gettext("Ban list"), !empty($pconfig['mod_ban_enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("Rules");
?>
</td>
						<td width="78%" class="vtable">
							<table width="100%" border="0" cellpadding="0" cellspacing="0">
								<tr>
									<td width="30%" class="listhdrlr"><?php 
echo gettext("Event");
?>
</td>
									<td width="30%" class="listhdrr"><?php 
echo gettext("Frequency");
示例#26
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="tabcont">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Kerberos Protocol"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("kdc", "KDC", $pconfig['kdc'], "", true, 60);
?>
					<?php 
html_inputbox("realms", "Realms", $pconfig['realms'], "", true, 60);
?>
				<tr id="krb5_keytabid" style="display: visible">
						<td width="22%" valign="top" class="vncellreq"><?php 
echo htmlspecialchars("Krb5.keytab");
?>
</td>
						<td width="78%" class="vtable">
							<input name="krb5" type="file" class="formfld" size="40" /><br />
						</td>
示例#27
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td class="tabcont">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Simple Network Management Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("location", gettext("Location"), $pconfig['location'], gettext("Location information, e.g. physical location of this system: 'Floor of building, Room xyz'."), true, 40);
?>
					<?php 
html_inputbox("contact", gettext("Contact"), $pconfig['contact'], gettext("Contact information, e.g. name or email of the person responsible for this system: '*****@*****.**'."), true, 40);
?>
					
					<?php 
html_inputbox("read", gettext("Community"), $pconfig['read'], gettext("In most cases, 'public' is used here."), true, 40);
?>
					<?php 
html_checkbox("trapenable", gettext("Traps"), $pconfig['trapenable'] ? true : false, gettext("Enable traps."), "", false, "trapenable_change()");
?>
					<?php 
示例#28
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td class="tabcont">
		    <?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Secure Shell"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
			    <tr>
			      <td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("TCP port");
?>
</td>
			      <td width="78%" class="vtable">
							<input name="port" type="text" class="formfld" id="port" size="20" value="<?php 
echo htmlspecialchars($pconfig['port']);
?>
" />
							<br /><?php 
echo gettext("Alternate TCP port. Default is 22");
?>
</td>
示例#29
0
  <tr>
    <td class="tabcont">
			<form action="services_afp.php" method="post" name="iform" id="iform">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Apple Filing Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("Server Name");
?>
</td>
						<td width="78%" class="vtable">
							<input name="afpname" type="text" class="formfld" id="afpname" size="30" value="<?php 
echo htmlspecialchars($pconfig['afpname']);
?>
" /><br />
							<?php 
echo gettext("Name of the server. If this field is left empty the default server is specified.");
?>
<br />
示例#30
0
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?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">