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 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();
<tr> <td class="tabcont"> <?php if (!empty($input_errors)) { print_input_errors($input_errors); } ?> <table width="100%" border="0" cellpadding="6" cellspacing="0"> <?php html_inputbox("name", gettext("Extent Name"), $pconfig['name'], gettext("String identifier of the extent."), true, 30, isset($uuid) && FALSE !== $cnid); ?> <?php html_combobox("type", gettext("Type"), $pconfig['type'], array("file" => gettext("File"), "device" => gettext("Device"), "zvol" => gettext("ZFS volume"), "hast" => gettext("HAST volume")), gettext("Type used as extent."), true, false, "type_change()"); ?> <?php html_filechooser("path", gettext("Path"), $pconfig['path'], sprintf(gettext("File path (e.g. /mnt/sharename/extent/%s) used as extent."), $pconfig['name']), $g['media_path'], true); ?> <?php html_combobox("device", gettext("Device"), $pconfig['path'], $a_device, "", true); ?> <?php html_combobox("zvol", gettext("ZFS volume"), $pconfig['path'], $a_zvol, "", true); ?> <?php html_combobox("hast", gettext("HAST volume"), $pconfig['path'], $a_hast, "", true); ?> <tr id="size_tr"> <td width="22%" valign="top" class="vncellreq"><?php echo gettext("File size"); ?> </td>
html_filechooser("home", gettext("Database directory"), $pconfig['home'], gettext("Location where the database with media contents will be stored."), $g['media_path'], true, 67); ?> <?php html_folderbox("content", gettext("Media library"), !empty($pconfig['content']) ? $pconfig['content'] : array(), gettext("Set the content location(s) to or from the media library."), $g['media_path'], true); ?> <?php html_combobox("profile", gettext("Profile"), $pconfig['profile'], array("default" => gettext("Default"), "DLNA" => "DLNA", "Denon_AVR" => "DENON Network A/V Receiver", "PS3" => "Sony Playstation 3", "Telegent_TG100" => "Telegent TG100", "ZyXEL_DMA1000" => "ZyXEL DMA-1000", "Helios_X3000" => "Helios X3000", "DLink_DSM320" => "D-Link DSM320", "Microsoft_XBox360" => "Microsoft XBox 360", "Terratec_Noxon_iRadio" => "Terratec Noxon iRadio", "Yamaha_RXN600" => "Yamaha RX-N600", "Loewe_Connect" => "Loewe Connect"), gettext("Compliant profile to be used."), true, false, "profile_change()"); ?> <?php html_inputbox("deviceip", gettext("Device IP"), $pconfig['deviceip'], gettext("The device's IP address."), true, 20); ?> <?php html_checkbox("transcoding", gettext("Transcoding"), !empty($pconfig['transcoding']) ? true : false, gettext("Enable transcoding."), "", false, "transcoding_change()"); ?> <?php html_filechooser("tempdir", gettext("Temporary directory"), $pconfig['tempdir'], gettext("Temporary directory to store transcoded files."), $g['media_path'], true, 67); ?> <?php html_separator(); ?> <?php html_titleline(gettext("Administrative WebGUI")); ?> <?php $if = get_ifname($pconfig['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);
foreach ($pconfig['device'] as $id => $device) { ?> <?php $device_nb = $id + 1; ?> <?php html_titleline("Device {$device_nb}"); ?> <?php html_inputbox("device[{$id}][name]", gettext("Name"), $pconfig['device'][$id]['name'], sprintf(gettext("Default is %s."), "OPENNAS-DEVICE-default"), true, 40); ?> <?php html_combobox("device[{$id}][mediatype]", gettext("Media type"), $pconfig['device'][$id]['mediatype'], array_combine($bacula_type, $bacula_type), sprintf(gettext("Default is %s."), "File"), true); ?> <?php html_filechooser("device_" . $id . "_archivepath", gettext("Archive device"), $pconfig['device'][$id]['archivepath'], '', '/mnt', true); ?> <?php html_checkbox("device[{$id}][labelmedia]", gettext("Label media"), !empty($pconfig['device'][$id]['labelmedia']), gettext("Labeled the media")); ?> <?php html_checkbox("device[{$id}][randomaccess]", gettext("Random access"), !empty($pconfig['device'][$id]['randomaccess']), gettext("The Storage daemon will submit a Mount Command before attempting to open the device")); ?> <?php html_checkbox("device[{$id}][removablemedia]", gettext("Removable media"), !empty($pconfig['device'][$id]['removablemedia']), gettext("This device supports removable media")); ?> <?php html_checkbox("device[{$id}][alwaysopen]", gettext("Always open"), !empty($pconfig['device'][$id]['alwaysopen']), gettext("Keep the device open")); ?> <?php if ($id !== 0 || count($pconfig['device']) > 1) {
html_titleline_checkbox("enable", gettext("Downloady"), $pconfig['enable'], gettext("Enable"), "enable_change(false)"); ?> <?php html_text("installation_directory", gettext("Installation directory"), sprintf(gettext("The extension is installed in %s."), $config['downloady']['rootfolder'])); ?> <?php $a_user = array(); foreach (system_get_user_list() as $userk => $userv) { $a_user[$userk] = htmlspecialchars($userk); } ?> <?php html_combobox("who", gettext("Username"), $pconfig['who'], $a_user, gettext("Specifies the username which the service will run as."), true); ?> <?php html_filechooser("storage_path", gettext("Download directory"), $pconfig['storage_path'], gettext("Where to save downloaded data."), $g['media_path'], true, 60); ?> <?php html_inputbox("ratelimit", gettext("Download bandwidth"), $pconfig['ratelimit'], gettext("The maximum download bandwith in KiB/s. An empty field means infinity."), false, 8); ?> <?php html_checkbox("resume", gettext("Resume"), $pconfig['resume'], gettext("Resume downloads after system startup."), "", false); ?> <?php html_checkbox("enable_schedule", gettext("Daily schedule"), $pconfig['enable_schedule'], gettext("Enable scheduler for downloads."), "", false, "schedule_change()"); ?> <?php $hours = array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23); ?> <?php html_combobox("startup", gettext("Startup"), $config['downloady']['schedule_startup'], $hours, gettext("Choose a startup hour for") . " " . $config['downloady']['appname'], true);
<?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("VirtualBox"), !empty($pconfig['enable']) ? true : false, gettext("Enable"), ""); ?> <?php html_filechooser("homedir", gettext("Home directory"), $pconfig['homedir'], gettext("Enter the path to the home directory of VirtualBox. VM config and HDD image will be created under the specified directory."), $g['media_path'], false, 60); ?> <?php html_separator(); ?> <?php html_titleline(sprintf("%s (%s)", gettext("Administrative WebGUI"), gettext("phpVirtualBox"))); ?> <?php $if = get_ifname($config['interfaces']['lan']['if']); $ipaddr = get_ipaddr($if); $url = htmlspecialchars("/phpvirtualbox/index.html"); $text = "<a href='{$url}' id='a_url1' target='_blank'>{$url}</a>"; ?> <?php html_text("url1", gettext("URL"), $text);
html_combobox("shell", gettext("Shell"), $pconfig['shell'], array("nologin" => "nologin", "scponly" => "scponly", "sh" => "sh", "csh" => "csh", "tcsh" => "tcsh", "bash" => "bash"), gettext("The user's login shell."), true); ?> <?php $grouplist = array(); foreach ($a_group as $groupk => $groupv) { $grouplist[$groupv] = $groupk; } ?> <?php html_combobox("primarygroup", gettext("Primary group"), $pconfig['primarygroup'], $grouplist, gettext("Set the account's primary group to the given group."), true); ?> <?php html_listbox("group", gettext("Additional group"), $pconfig['group'], $grouplist, gettext("Set additional group memberships for this account.") . "<br />" . gettext("Note: Ctrl-click (or command-click on the Mac) to select and deselect groups.")); ?> <?php html_filechooser("homedir", gettext("Home directory"), $pconfig['homedir'], gettext("Enter the path to the home directory of that user. Leave this field empty to use default path /mnt."), $g['media_path'], false, 60); ?> <?php html_checkbox("userportal", gettext("User portal"), $pconfig['userportal'] ? true : false, gettext("Grant access to the user portal."), "", 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"); ?> " /> <input name="uuid" type="hidden" value="<?php
<?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); ?> <?php $a_user = array();
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("Unison File Synchronisation"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)"); ?> <?php html_filechooser("workdir", gettext("Working directory"), $pconfig['workdir'], sprintf(gettext("Location where the working files will be stored, e.g. %s/backup/.unison"), $g['media_path']), $g['media_path'], true, 60); ?> <?php html_checkbox("mkdir", "", $pconfig['mkdir'] ? true : false, gettext("Create work directory if it doesn't exist."), "", false); ?> </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"> <?php html_remark("note", gettext("Note"), sprintf(gettext("<a href='%s'>SSHD</a> must be enabled for Unison to work, and the <a href='%s'>user</a> must have shell access."), "services_sshd.php", "access_users.php")); ?>
html_inputbox("dns_forwarder", gettext("DNS forwarder"), $pconfig['dns_forwarder'], "", true, 40); ?> <?php html_inputbox("dns_domain", gettext("DNS domain"), $pconfig['dns_domain'], "", true, 40); ?> <?php html_inputbox("netbios_domain", gettext("NetBIOS domain"), $pconfig['netbios_domain'], "", true, 40); ?> <?php //html_text("realm", gettext("Kerberos realm"), htmlspecialchars($realm)); ?> <?php html_passwordconfbox("password", "password_confirm", gettext("Admin password"), "", "", gettext("Generate password if leave empty."), true); ?> <?php html_filechooser("path", gettext("Path"), $pconfig['path'], sprintf(gettext("Permanent samba data path (e.g. %s)."), "/mnt/data/samba4"), $g['media_path'], true); ?> <?php html_combobox("fstype", gettext("Fileserver"), $pconfig['fstype'], array("s3fs" => "s3fs", "ntvfs" => "ntvfs"), "", true); ?> <?php html_checkbox("user_shares", gettext("User shares"), !empty($pconfig['user_shares']) ? true : false, gettext("Append user defined shares"), "", false); ?> </table> <div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Initialize"); ?> " /> </div> <?php
html_checkbox("noresolv", gettext("No read /etc/resolv.conf"), $pconfig['noresolv'], gettext("No read resolver file. This option may be checked, if need AD integration or define nameservers over scripts"), "", "", ""); ?> <?php html_combobox("logging", gettext("Log configuration"), $pconfig['logging'], array("mini" => gettext("System only"), "dhcp" => gettext("System+DHCP queries"), "all" => gettext("DNS+DHCP+Systems")), "", false, false, ""); ?> <?php html_inputbox("tftpboot", gettext("Boot kernel name"), $pconfig['tftpboot'], gettext("Define first boot kernel name"), false, 60, false); ?> <?php html_separator(); ?> <?php html_titleline_checkbox("enabletftp", gettext("Built-in tftp server"), !empty($pconfig['enabletftp']) ? true : false, gettext("Enable"), "enable_tftp(false)"); ?> <?php html_filechooser("tftproot", gettext("TFTP root folder"), $pconfig['tftproot'], gettext("Use tftp root folder"), !empty($pconfig['tftproot']) ? $pconfig['tftproot'] : $config['dnsmasq']['rootfolder'] . "tftproot/", true, 60); ?> <tr><td><div id="submit"> <input name="Submit" type="submit" class="formbtn" value="<?php echo gettext("Save"); ?> " /> </div> </td></tr> </table> </td> <?php include "formend.inc"; ?> </form> </tr>
<?php html_timezonecombobox("utctime", gettext("utc time"), $pconfig['utctime'], gettext("Set to any value if you want the guest clock to use UTC time."), false, 16, false); ?> <?php html_checkbox("vmdebug", "Debug", $pconfig['vmdebug'], "Set to run vm-bhyve in debug mode.", "In this mode, all output from the bhyve process is written to\nvm_dir/{guest}/bhyve.log. This is useful if the guest is crashing or exiting abnormally as the log will contain any output from bhyve.", false, ""); ?> <?php html_combobox("vmdisk0_type", "Disk0 type", $pconfig['vmdisk0_type'], array("virtio-blk", "ahci-hd"), "This specifies the emulation type for disk0. Please note that each disk requires at least a type and name.", true, false); ?> <?php html_combobox("vmdisk0_dev", "Disk0 device", $pconfig['vmdisk0_dev'], array("file", "zvol", "sparse-zvol", "custom"), "The type of device used as the backing store for this disk. The default is <i>file</i>, which means a sparse file is used. This file is stored in the guest's directory.\n\t\t\t\t\tFor the zvol options, the zvol must be directly under the guest dataset.\n\t\t\t\t\tThere is also a <i>custom</i> option, in which case the disk name should be the full path to the file or device you want to use.", true, false); ?> <?php html_filechooser('vmdisk0_name', "Disk0 name", $pconfig['vmdisk0_name'], "The name of the file or zvol for this disk. If the device type is 'custom', it should be the full path to whichever device or file you want to use. This value is translated to a path as follows, based on disk0_dev<br />\n\t\t\t\t\t<table border='3'><tr><td><b>DEVICE TYPE</b></td><td><b> DISK NAME </b></td><td><b> BHYVE PATH USED </b></td></tr>\n\t\t\t\t\t<tr><td>file</td><td>'disk0.img'</td> <td>'vm_dir/name/disk0.img'</td></tr>\n\t\t\t\t\t<tr><td>zvol|sparse-zvol</td><td>'disk0'</td><td>'/dev/zvol/pool/dataset/path/guest/disk0'</td></tr>\n\t\t\t\t\t<tr><td>custom</td><td>'/dev/da10'</td><td>'/dev/da10'</td></tr></table>", "/", false, "67", false, ""); ?> <?php //html_optionsbox("disk0_opts", "Disk0 options", $pconfig['disk0_opts'], array("direct","nocache","ro","sectorsize=logical","sectorsize=physical"), false, false) ; ?> <?php html_listbox("disk0_opts", "Disk0 options", $pconfig['disk0_opts'], array("direct", "nocache", "ro", "sectorsize=logical", "sectorsize=physical"), "List of additional options for the specified disk.\nThe available options are listed below. See the <a href='https://www.freebsd.org/cgi/man.cgi?query=bhyve&sektion=8'>bhyve(8) man page</a> for more details", false, false, ""); ?> <?php html_inputbox("network0_switch", gettext("network0 switch"), empty($pconfig['network0_switch']) ? "public" : $pconfig['network0_switch'], "The name of the virtual switch to connect this interface to. When starting the guest, if this switch cannot be found, or no switch is specified, the interface\nis still created but will not be connected to anything. All default templates use a switch called 'public', although it's perfectly reasonable to use other switch names that make sense in your environment", false, 16, false); ?> <?php html_bhyveinterfacecombobox("network0_device", "network0 device", $pconfig['network0_device'], "If you do not want vm-bhyve to create a new interface, but use an existing\none, enter the interface name here. This allows you to preconfigure the network\ndevice in a custom configuration, then instruct vm-bhyve to use that rather\nthan create all interfaces dynamically at run time.", false, false); ?> <?php html_inputbox("macaddr", "MAC address", $pconfig['macaddr'], "This allows you to specify a fixed mac address for this interface inside the guest.\nWithout this option, bhyve will automatically assign a mac address to the interface.", false, 26, false);
<?php html_separator(); html_titleline(gettext("rc.conf.local Migrator")); ?> <?php html_filechooser("oldconfig", gettext("Path to source"), $pconfig['oldconfig'], sprintf(gettext("If you want convert old rc.conf.local to TheBrig application, please add path to it."), $pconfig['name']), "/mnt/", false); html_text($confconv, gettext("Convert and download xml"), '<input name="submit" type="submit" value="Convert">'); ?> <?php html_separator(); html_titleline(gettext("Jail Archiver")); ?> <?php html_filechooser("fname", gettext("Path to folder"), $pconfig['fname'], sprintf(gettext("If you want archive old jail or any another folder choose it. It will be compressed and stored in " . $config['thebrig']['rootfolder'] . "work/."), $pconfig['fname']), "/mnt/", false); html_text($confconv, gettext("Compress and save"), '<input name="submit" type="submit" value="Compress">'); ?> </table> </td> <?php include "formend.inc"; ?> </form> </tr> </table> <?php include "fend.inc";
} ?> <?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); ?> <?php html_checkbox("show_beta", gettext("Beta releases"), $pconfig['show_beta'], gettext("If enabled, extensions in beta state will be shown in the extensions list."), "", false); ?> </table> <div id="submit">
</option> </select><br /> <span class="vexpl"><?php echo gettext("<b>EFI GPT partition</b> if you want to mount a GPT formatted drive (<b>default partition</b>).<br/><b>MBR partition</b> if you want to mount a UFS formatted drive or do imported disks from other OS.<br/><b>CD/DVD volume</b> if you want to mount a CD/DVD volume."); ?> </span> </td> </tr> <?php html_inputbox("partitionnum", gettext("Partition number"), $pconfig['partitionnum'], "", true, 3); ?> <?php html_combobox("fstype", gettext("File system"), !empty($pconfig['fstype']) ? $pconfig['fstype'] : "", array("ufs" => "UFS", "msdosfs" => "FAT", "cd9660" => "CD/DVD", "ntfs" => "NTFS", "ext2fs" => "EXT2", "exfat" => "exFAT"), "", true, false, "fstype_change()"); ?> <?php html_filechooser("filename", "Filename", !empty($pconfig['filename']) ? $pconfig['filename'] : "", gettext("ISO file to be mounted."), $g['media_path'], true); ?> <?php html_inputbox("sharename", gettext("Mount point name"), !empty($pconfig['sharename']) ? $pconfig['sharename'] : "", "", true, 20); ?> <?php html_inputbox("desc", gettext("Description"), !empty($pconfig['desc']) ? $pconfig['desc'] : "", gettext("You may enter a description here for your reference."), false, 40); ?> <?php html_checkbox("readonly", gettext("Read only"), !empty($pconfig['readonly']) ? true : false, gettext("Mount the file system read-only (even the super-user may not write it)."), "", false); ?> <?php html_checkbox("fsck", gettext("File system check"), $pconfig['fsck'] ? true : false, gettext("Enable foreground/background file system consistency check during boot process."), "", false); ?> <?php html_separator();
$ag_list = array(); $ag_list['0'] = gettext("Must choose one"); foreach ($config['iscsitarget']['authgroup'] as $ag) { if ($ag['comment']) { $l = sprintf(gettext("Tag%d (%s)"), $ag['tag'], $ag['comment']); } else { $l = sprintf(gettext("Tag%d"), $ag['tag']); } $ag_list[$ag['tag']] = htmlspecialchars($l); } ?> <?php html_combobox("uctlauthgroup", gettext("Controller Auth Group"), $pconfig['uctlauthgroup'], $ag_list, gettext("The istgtcontrol can access the targets with correct user and secret in specific Auth Group."), true); ?> <?php html_filechooser("mediadirectory", gettext("Media Directory"), $pconfig['mediadirectory'], gettext("Directory that contains removable media. (e.g /mnt/iscsi/)"), $g['media_path'], true); ?> </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"> <?php html_remark("note", gettext("Note"), gettext("You must have a minimum of 256MB of RAM for using iSCSI target.")); ?> </div> <?php include "formend.inc";
html_checkbox("dht", gettext("Distributed hash table"), !empty($pconfig['dht']) ? true : false, gettext("Enable distributed hash table."), "", false); ?> <?php html_combobox("encryption", gettext("Encryption"), $pconfig['encryption'], array("0" => gettext("Tolerated"), "1" => gettext("Preferred"), "2" => gettext("Required")), gettext("The peer connection encryption mode."), false); ?> <?php html_inputbox("uplimit", gettext("Upload bandwidth"), $pconfig['uplimit'], gettext("The maximum upload bandwith in KB/s. An empty field means infinity."), false, 5); ?> <?php html_inputbox("downlimit", gettext("Download bandwidth"), $pconfig['downlimit'], gettext("The maximum download bandwith in KiB/s. An empty field means infinity."), false, 5); ?> <?php html_filechooser("watchdir", gettext("Watch directory"), $pconfig['watchdir'], gettext("Directory to watch for new .torrent files."), $g['media_path'], false, 60); ?> <?php html_filechooser("incompletedir", gettext("Incomplete directory"), $pconfig['incompletedir'], gettext("Directory for incomplete files. An empty field means disable."), $g['media_path'], false, 60); ?> <?php html_inputbox("umask", gettext("User mask"), $pconfig['umask'], sprintf(gettext("Use this option to override the default permission modes for newly created files (%s by default)."), "0002"), false, 3); ?> <?php html_inputbox("extraoptions", gettext("Extra options"), $pconfig['extraoptions'], gettext("Extra options to pass over rpc using transmission-remote (usually empty).") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/cgi/man.cgi?query=transmission-remote&sektion=1&manpath=FreeBSD+Ports+9.0-RELEASE"), false, 40); ?> <?php 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_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 html_textarea("privatekey", gettext("Private key"), $pconfig['privatekey'], gettext("Paste an private key in PEM format here."), true, 76, 7, false, false); ?> <?php html_filechooser("documentroot", gettext("Document root"), $pconfig['documentroot'], gettext("Document root of the webserver. Home of the web page files."), $g['media_path'], true, 76); ?> <?php html_filechooser("uploaddir", gettext("Upload directory"), $pconfig['uploaddir'], sprintf(gettext("Upload directory of the webserver. The default is %s."), $default_uploaddir), $default_uploaddir, true, 76); ?> <?php html_checkbox("authentication", gettext("Authentication"), !empty($pconfig['authentication']) ? true : false, gettext("Enable authentication."), gettext("Give only local users access to the web page."), false, "authentication_change()"); ?> <tr id="authdirs_tr"> <td width="22%" valign="top" class="vncell"> </td> <td width="78%" class="vtable"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="45%" class="listhdrlr"><?php echo gettext("URL"); ?> </td> <td width="45%" class="listhdrr"><?php echo gettext("Realm");
html_titleline_checkbox("enable", gettext("Webserver"), $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_textarea("certificate", gettext("Certificate"), $pconfig['certificate'], gettext("Paste a signed certificate in X.509 PEM format here."), true, 65, 7, false, false); ?> <?php html_textarea("privatekey", gettext("Private key"), $pconfig['privatekey'], gettext("Paste an private key in PEM format here."), true, 65, 7, false, false); ?> <?php html_filechooser("documentroot", gettext("Document root"), $pconfig['documentroot'], gettext("Document root of the webserver. Home of the web page files."), $g['media_path'], true, 60); ?> <?php html_checkbox("authentication", gettext("Authentication"), $pconfig['authentication'] ? true : false, gettext("Enable authentication."), gettext("Give only local users access to the web page."), false, "authentication_change()"); ?> <tr id="authdirs_tr"> <td width="22%" valign="top" class="vncell"> </td> <td width="78%" class="vtable"> <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td width="45%" class="listhdrlr"><?php echo gettext("URL"); ?> </td> <td width="45%" class="listhdrr"><?php echo gettext("Realm");