Ejemplo n.º 1
0
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Dynamic DNS"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_combobox("provider", gettext("Provider"), $pconfig['provider'], array("dyndns.org" => "dyndns.org", "freedns.afraid.org" => "freedns.afraid.org", "zoneedit.com" => "zoneedit.com", "no-ip.com" => "no-ip.com", "3322.org" => "3322.org", "easydns.com" => "easydns.com", "dnsdynamic.org" => "dnsdynamic.org", "dhis.org" => "dhis.org", "dnsexit.com" => "dnsexit.com", "ipv6tb.he.net" => "ipv6tb.he.net", "tzo.com" => "tzo.com", "dnsexit.com" => "dnsexit.com", "dynsip.org" => "dynsip.org", "custom" => gettext("Custom")), "", true, false, "provider_change()");
?>
					<?php 
html_inputbox("domainname", gettext("Domain name"), $pconfig['domainname'], gettext("A host name alias. This option can appear multiple times, for each domain that has the same IP. Use a space to separate multiple alias names."), true, 40);
?>
					<?php 
html_inputbox("username", gettext("Username"), $pconfig['username'], "", true, 20);
?>
					<?php 
html_passwordbox("password", gettext("Password"), $pconfig['password'], "", true, 20);
?>
					<?php 
html_inputbox("updateperiod", gettext("Update period"), $pconfig['updateperiod'], gettext("How often the IP is checked. The period is in seconds (max. is 10 days)."), false, 20);
?>
					<?php 
html_inputbox("forcedupdateperiod", gettext("Forced update period"), $pconfig['forcedupdateperiod'], gettext("How often the IP is updated even if it is not changed. The period is in seconds (max. is 10 days)."), false, 20);
?>
					<?php 
html_checkbox("wildcard", gettext("Wildcard"), !empty($pconfig['wildcard']) ? true : false, gettext("Enable domain wildcarding."), "", false);
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), !empty($pconfig['auxparam']) ? $pconfig['auxparam'] : "", sprintf(gettext("These parameters will be added to global settings in %s."), "inadyn.conf"), false, 65, 3, false, false);
?>
			  </table>
				<div id="submit">
echo $_SERVER['SCRIPT_NAME'];
?>
" 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_passwordbox("password_old", gettext("Old password"), "", "", true);
?>
					<?php 
html_passwordconfbox("password_new", "password_confirm", gettext("Password"), "", "", "", true);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
Ejemplo n.º 3
0
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 
html_checkbox("alwaysscan", gettext("Always scan"), $pconfig['alwaysscan'] ? true : false, "", gettext("Whether scans should be skipped if there are no users connected. This allows the drive to spin down when no users are connected."), false);
?>
					<?php 
html_combobox("scantype", gettext("Scan type"), $pconfig['scantype'], array("0" => gettext("Normal"), "1" => gettext("Aggressive"), "2" => gettext("Painfully aggressive")), "", false);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Administrative WebGUI"));
?>
					<?php 
html_passwordbox("admin_pw", gettext("Password"), $pconfig['admin_pw'], sprintf("%s %s", gettext("Password for the administrative pages."), gettext("Default user name is 'admin'.")), true, 20);
?>
					<?php 
$if = get_ifname($config['interfaces']['lan']['if']);
$ipaddr = get_ipaddr($if);
$url = htmlspecialchars("http://{$ipaddr}:{$pconfig['port']}");
$text = "<a href='{$url}' target='_blank'>{$url}</a>";
?>
					<?php 
html_text("url", gettext("URL"), $text);
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
Ejemplo n.º 4
0
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
			    <?php 
html_separator();
?>
			    <?php 
html_titleline(gettext("WebGUI"));
?>
					<?php 
html_passwordbox("password_old", gettext("Current password"), "", "", true);
?>
					<?php 
html_passwordconfbox("password_new", "password_confirm", gettext("New password"), "", "", gettext("If you want to change the password for accessing the WebGUI, enter it here twice."), true);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" />
				</div>
				<br>
				<div id="remarks">
			  	<?php 
html_remark("note", gettext("Note"), gettext("<div id='enumeration'><ul><li>The new password is also the default root password of the system!</li></ul></div>"));
?>
					<?php 
html_inputbox("storagemaxjobs", gettext("Maximum Concurrent Jobs"), $pconfig['storagemaxjobs'], sprintf(gettext("Default is %s."), "20"), true, 4);
?>

					<?php 
html_separator();
?>
					<?php 
html_titleline("Director");
?>
					<?php 
html_inputbox("directorname", gettext("Name"), $pconfig['directorname'], sprintf(gettext("Default is %s."), "OPENNAS-DIRECTOR-bacula"), true, 40);
?>
					<?php 
html_passwordbox("directorpassword", gettext("Password"), $pconfig['directorpassword'], '', true, 40);
?>

					<?php 
html_separator();
?>
					<?php 
foreach ($pconfig['device'] as $id => $device) {
    ?>
						<?php 
    $device_nb = $id + 1;
    ?>
						<?php 
    html_titleline("Device {$device_nb}");
    ?>
						<?php 
html_titleline_checkbox("enable", gettext("Ocs Inventory"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_separator();
?>
					<?php 
html_inputbox("server", gettext("Server"), $pconfig['server'], gettext("The uri of the server, http[s]://servername/ocsinventory"), true, 40);
?>
					<?php 
html_inputbox("realm", gettext("Realm"), $pconfig['realm'], gettext("Use REALM for an HTTP identification with the server"), true, 40);
?>
					<?php 
html_inputbox("ocs_user", gettext("User"), $pconfig['ocs_user'], gettext("Use USER for the server authentication"), true, 40);
?>
					<?php 
html_passwordbox("password", gettext("Password"), $pconfig['password'], gettext('Use PASSWORD for an HTTP identification with the server'), true, 40);
?>
					<?php 
html_inputbox("proxy", gettext("Proxy"), $pconfig['proxy'], gettext('Use PROXY to specify a proxy HTTP server, http[s]://serverproxy:port'), true, 40);
?>
					<?php 
html_separator();
?>
					<?php 
html_checkbox("ssl", gettext("Ssl Check"), !empty($pconfig['ssl']) ? true : false, gettext("Check SSL communications using a certificate"), "", true);
?>
					<tr id="cacert">
						<?php 
if (!file_exists($config['ocsinventory_agent']['ocs_cacert'])) {
    ?>
						<td width="22%" valign="top" class="vncellreq"><?php 
Ejemplo n.º 7
0
html_separator();
?>
					<?php 
html_titleline(gettext("Administrative WebGUI"));
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], sprintf(gettext("Port to listen on. Default port is %d."), 9091), true, 5);
?>
					<?php 
html_checkbox("authrequired", gettext("Authentication"), !empty($pconfig['authrequired']) ? true : false, gettext("Require authentication."), "", false, "authrequired_change()");
?>
					<?php 
html_inputbox("username", gettext("Username"), $pconfig['username'], "", true, 20);
?>
					<?php 
html_passwordbox("password", gettext("Password"), $pconfig['password'], gettext("Password for the administrative pages."), true, 20);
?>
					<?php 
$if = get_ifname($config['interfaces']['lan']['if']);
$ipaddr = get_ipaddr($if);
$url = htmlspecialchars("http://{$ipaddr}:{$pconfig['port']}");
$text = "<a href='{$url}' target='_blank'>{$url}</a>";
?>
					<?php 
html_text("url", gettext("URL"), $text);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
Ejemplo n.º 8
0
html_inputbox("media_uctlport", gettext("Controller TCP Port"), $pconfig['media_uctlport'], "", true, 15);
?>
      <?php 
html_combobox("media_uctlauthmethod", gettext("Controller Auth Method"), $pconfig['media_uctlauthmethod'], array("CHAP" => gettext("CHAP"), "CHAP mutual" => gettext("Mutual CHAP")), "", true, false, "authmethod_change()");
?>
      <?php 
html_inputbox("media_uctluser", gettext("User"), $pconfig['media_uctluser'], "", true, 60);
?>
      <?php 
html_passwordbox("media_uctlsecret", gettext("Secret"), $pconfig['media_uctlsecret'], "", true, 30);
?>
      <?php 
html_inputbox("media_uctlmuser", gettext("Peer User"), $pconfig['media_uctlmuser'], "", true, 60);
?>
      <?php 
html_passwordbox("media_uctlmsecret", gettext("Peer Secret"), $pconfig['media_uctlmsecret'], "", true, 30);
?>
      <?php 
html_checkbox("media_uctlsave", gettext("Save"), !empty($pconfig['media_uctlsave']) ? true : false, gettext("Save login information in configuration file."), "", false);
?>
      <tr>
        <td colspan="1" valign="top">
          <input name="Scan" type="submit" class="formbtn" value="<?php 
echo gettext("Scan Targets");
?>
" />
        </td>
        <td colspan="1" valign="top" align="right">
          <input name="Delete" type="submit" class="formbtn" value="<?php 
echo gettext("Delete Login Info");
?>
Ejemplo n.º 9
0
html_inputbox("ap_ssid", gettext("SSID"), $pconfig['ap_ssid'], gettext("Set the desired Service Set Identifier (aka network name)."), true, 20);
?>
				<?php 
html_inputbox("ap_channel", gettext("Channel"), $pconfig['ap_channel'], "", true, 10);
?>
				<?php 
html_combobox("ap_encryption", gettext("Encryption"), $pconfig['ap_encryption'], array("wpa" => sprintf("%s / %s", gettext("WPA"), gettext("WPA2"))), "", true, false, "encryption_change()");
?>
				<?php 
html_combobox("ap_keymgmt", gettext("Key Management Protocol"), $pconfig['ap_keymgmt'], array("WPA-PSK" => gettext("WPA-PSK (Pre Shared Key)")), "", true);
?>
				<?php 
html_combobox("ap_pairwise", gettext("Pairwise"), $pconfig['ap_pairwise'], array("CCMP" => gettext("CCMP"), "CCMP TKIP" => gettext("CCMP TKIP")), "", true);
?>
				<?php 
html_passwordbox("ap_psk", gettext("PSK"), $pconfig['ap_psk'], gettext("Enter the passphrase that will be used in WPA-PSK mode. This must be between 8 and 63 characters long."), true, 40);
?>
				<?php 
html_inputbox("ap_extraoptions", gettext("Extra options"), $pconfig['ap_extraoptions'], gettext("Extra options to ifconfig (usually empty)."), false, 60);
?>
				<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to %s."), "hostapd.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/cgi/man.cgi?query=hostapd.conf"), false, 65, 5, false, false);
?>
			</table>
			<div id="submit">
				<input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
" />
				<input name="Cancel" type="submit" class="formbtn" value="<?php 
echo gettext("Cancel");