echo gettext("Remove Extension");
?>
" onclick="return confirm('<?php 
echo gettext("Do you really want to remove the extension from the system?");
?>
')" />
        </div>
        <table width="100%" border="0" cellpadding="6" cellspacing="0">
			<?php 
html_separator();
?>
			<?php 
html_separator();
?>
			<?php 
html_titleline(gettext("Extension") . " " . gettext("Release Notes"));
?>
			<tr>
                <td class="listt">
                    <div>
                        <textarea style="width: 98%;" id="content" name="content" class="listcontent" cols="1" rows="25" readonly="readonly"><?php 
unset($lines);
exec("/bin/cat {$config['downloady']['rootfolder']}release_notes.txt", $lines);
foreach ($lines as $line) {
    echo $line . "\n";
}
?>
</textarea>
                    </div>
                </td>
			</tr>
				<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php 
echo gettext("Sockets");
?>
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
  <tr>
    <td class="tabcont">
			<table width="100%" border="0">
				<?php 
html_titleline(gettext("RSYNC Client informations"));
?>
				<tr>
			    <td>
			    	<?php 
if (!is_array($config['rsync']) || !is_array($config['rsync']['rsyncclient'])) {
    ?>
			    	<pre><?php 
    echo gettext("No RSYNC Client configured");
    ?>
</pre>
			    	<?php 
} else {
    ?>
			    	<pre><?php 
    echo "<strong>" . gettext("Detected RSYNC remote shares") . ":</strong><br /><br />";
				<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php 
echo gettext("Sockets");
?>
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
  <tr>
    <td class="tabcont">
    	<table width="100%" border="0">
    		<?php 
html_titleline(gettext("List of available target name on all configured iSCSI targets"));
?>
				<tr>
			    <td>
			    	<?php 
if (0 >= count($a_disk)) {
    ?>
			    	<pre><?php 
    echo gettext("iSCSI initiator disabled");
    ?>
</pre>
			    	<?php 
} else {
    ?>
			    	<pre><?php 
    foreach ($a_disk as $disk) {
	<tr>
		<td class="tabcont">
			<table width="100%" border="0">
				<?php 
html_titleline(gettext("ZFS volume information and status"));
?>
				<tr>
					<td class="listt">
						<pre><span id="zfs_volume_list"><?php 
echo zfs_volume_display_list();
?>
</span></pre>
					</td>
				</tr>
				<?php 
html_titleline(gettext("ZFS volume properties"));
?>
				<tr>
					<td class="listt">
						<pre><span id="zfs_volume_properties"><?php 
echo zfs_volume_display_properties();
?>
</span></pre>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
?>
				<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();
foreach (system_get_user_list() as $userk => $userv) {
    $a_user[$userk] = htmlspecialchars($userk);
}
?>
					<?php 
html_combobox("username", gettext("Username"), $pconfig['username'], $a_user, gettext("Specifies the username which the service will run as."), false);
?>
					<?php 
html_inputbox("umask", gettext("umask"), $pconfig['umask'], gettext("Sets the umask for newly created files to the specified value. The default is zero (anyone can read or write)."), false, 4);
Example #6
0
		<td class="tabcont">
<?php 
$netstat = isset($_POST['resolve']) && $_POST['resolve'] == 'yes' ? 'netstat -rW' : 'netstat -nrW';
list($dummy, $internet, $internet6) = explode("\n\n", shell_exec($netstat));
foreach (array(&$internet, &$internet6) as $tabindex => $table) {
    $osver = @exec("/usr/bin/uname -U");
    if ($osver >= 1000000) {
        $elements = $tabindex == 0 ? 7 : 7;
    } else {
        $elements = $tabindex == 0 ? 8 : 8;
    }
    $name = $tabindex == 0 ? 'IPv4' : 'IPv6';
    ?>
			<table width="100%" border="0" cellpadding="6" cellspacing="0">
				<?php 
    html_titleline($name, $elements);
    foreach (explode("\n", $table) as $row => $line) {
        if ($row == 0) {
            continue;
        }
        if ($line == '') {
            continue;
        }
        print "<tr>\n";
        $col = 0;
        foreach (explode(' ', $line) as $entry) {
            if ($entry == '') {
                continue;
            }
            if ($row == 1) {
                $class = $col == 0 ? "listhdrlr" : "listhdrr";
				</tr>
				<?php 
}
?>
			</table>
				<br />







				<table width="100%" border="0" cellpadding="5" cellspacing="0">
					<?php 
html_titleline(gettext('Options'));
?>
					<?php 
html_checkbox("leave_autosnapshots", gettext("Leave auto snapshot configuration"), true, gettext("Leave already configured auto snapshots."), "", false);
?>
					<?php 
html_checkbox("import_disks", gettext("Import disks"), true, gettext("Import disks used in configuration."), "", false);
?>
					<?php 
html_checkbox("import_disks_overwrite", gettext("Overwrite disks configuration"), false, gettext("Overwrite already configured disks (only affects filesystem value)."), "", false);
?>
				</table>
				<br />
				<div id="submit">
					<input type="submit" name="import_config" value="<?php 
echo gettext('Synchronize');
Example #8
0
         tblrow('[' . $i . '] Maximum seen current (A)', $ups['outlet.' . $i . '.current.maximum'], 'A');
         tblrow('[' . $i . '] Current value of real power (W)', $ups['outlet.' . $i . '.realpower'], 'W');
         tblrow('[' . $i . '] Voltage (V)', $ups['outlet.' . $i . '.voltage'], 'V');
         tblrow('[' . $i . '] Power Factor (dimensionless value between 0 and 1)', $ups['outlet.' . $i . '.powerfactor']);
         tblrow('[' . $i . '] Crest Factor (dimensionless, equal to or greater than 1)', $ups['outlet.' . $i . '.crestfactor']);
         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);
 ?>
</span></a></li>
	<li class="tabinact"><a href="disks_raid_graid5_tools.php"><span><?php 
echo gettext("Tools");
?>
</span></a></li>
	<li class="tabact"><a href="disks_raid_graid5_info.php" title="<?php 
echo gettext("Reload page");
?>
" ><span><?php 
echo gettext("Information");
?>
</span></a></li>
  </ul>
  </td></tr>
  <tr> 
    <td class="tabcont">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
	    <?php 
html_titleline(gettext("RAID 5 information and status"));
?>
	    <tr>
		<td class="listt">
		    <pre><span id="raidinfo"></span></pre>
		</td>
	    </tr>
    	</table>
    </td>
  </tr>
</table>
<?php 
include "fend.inc";
										</td>
									 </tr>  -->
			<?php 
//endfor;
?>
								</table>
					<?php 
// endif;
?>
				</td></tr>
			<?php 
html_separator();
?>
				</tr>
				<?php 
html_titleline("Framework configuration");
$work_dir_type = array('0' => 'Home', '2' => 'Different folder');
if (true == bhyve_zfs_check()) {
    $work_dir_type[1] = 'Dataset';
}
html_combobox("work_dir_type", "Working folder", $pconfig['work_dir_type'], $work_dir_type, "Virtual machines will store on dataset", false, false, "clickfix()");
html_text("work_dir_simple", "", "Virtual machines will store at extension home folder");
if (FALSE !== ($datasets_list = bhyve_datasets_list())) {
    for ($i = 0; $i < count($datasets_list); ++$i) {
        $a_datasets_list[$datasets_list[$i][1]] = $datasets_list[$i][1];
    }
    html_combobox("work_dir_zfs", "", $pconfig['work_dir'], $a_datasets_list, "Virtual machines will store on dataset", false, false, "clickfix()");
}
?>
				<tr id='work_dir_diff_tr'>
					<td width='22%' valign='top' class='vncell'><label for='work_dir_diff'></label></td>
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();
?>
					<?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">
Example #12
0
    render_ajax($procinfo);
}
include "fbegin.inc";
?>
<script type="text/javascript">//<![CDATA[
$(document).ready(function(){
	var gui = new GUI;
	gui.recall(0, 5000, 'status_process.php', null, function(data) {
		$('#procinfo').val(data.data);
	});
});
//]]>
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="tabcont">
			<table width="100%" border="0" cellspacing="0" cellpadding="0">
				<?php 
html_titleline(gettext("Processes information"));
?>
			  <tr>
			    <td class="listt">
			    	<pre><textarea style="width: 98%;" id="procinfo" name="procinfo" class="listcontent" cols="95" rows="30" readonly="readonly"></textarea></pre>
			    </td>
			  </tr>
			</table>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
?>
					<?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_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"));
Example #14
0
?>
" <?php 
echo $readonly;
?>
 /><br />
							<span class="vexpl"><?php 
echo gettext("IPv6 addresses");
?>
</span><br />
			      </td>
			    </tr>
			    <?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Time"));
?>
					<?php 
html_timezonecombobox("timezone", gettext("Time zone"), $pconfig['timezone'], gettext("Select the location closest to you."), false);
?>
			    <tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("System time");
?>
</td>
						<td width="78%" class="vtable">
							<input id="systime" size="20" maxlength="20" name="systime" type="text" value="" />
							<img src="cal.gif" onclick="showChooser(this, 'systime', 'chooserSpan', 1950, 2020, Date.patterns.Default, true);" alt="" />
							<div id="chooserSpan" class="dateChooser select-free" style="display: none; visibility: hidden; width: 160px;"></div><br />
							<span class="vexpl"><?php 
echo gettext("Enter desired system time directly (format mm/dd/yyyy hh:mm) or use icon to select it.");
Example #15
0
    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);
    ?>
<!--
											<?php 
    html_checkbox("polling", gettext("Device polling"), $pconfig['polling'] ? true : false, gettext("Enable device polling"), gettext("Device polling is a technique that lets the system periodically poll network devices for new data instead of relying on interrupts. This can reduce CPU load and therefore increase throughput, at the expense of a slightly higher forwarding delay (the devices are polled 1000 times per second). Not all NICs support polling."), false);
    ?>
-->
											<?php 
    html_combobox("media", gettext("Media"), $pconfig['media'], array("autoselect" => gettext("Autoselect"), "10baseT/UTP" => "10baseT/UTP", "100baseTX" => "100baseTX", "1000baseTX" => "1000baseTX", "1000baseSX" => "1000baseSX"), "", false, false, "media_change()");
    ?>
											<?php 
    html_combobox("mediaopt", gettext("Duplex"), $pconfig['mediaopt'], array("half-duplex" => "half-duplex", "full-duplex" => "full-duplex"), "", false);
    ?>
				<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php 
echo gettext("Sockets");
?>
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
  <tr>
    <td class="tabcont">
    	<table width="100%" border="0">
				<?php 
html_titleline(gettext("Swap status"));
?>
				<tr>
			    <td>
			    	<?php 
if (!isset($config['system']['swap']['enable'])) {
    ?>
			    	<pre><?php 
    echo gettext("Swap disabled");
    ?>
</pre>
			    	<?php 
} else {
    ?>
			    	<pre><?php 
    exec("/usr/sbin/swapinfo", $rawdata);
html_inputbox("basejail", gettext(_THEBRIG_BASE), $pconfig['basejail'], gettext(_THEBRIG_BASE_DESC), false, 50, $base_ro);
?>
	 	<?php 
//html_filechooser("rootfolder", gettext("Media Directory"), $pconfig['rootfolder'], gettext("Directory that contains our jails (e.g /mnt/Mount_Point/Folder). We will create folder /mnt/Mount_Point/Folder/thebrig/"), $g['media_path'], true);
?>
		<?php 
html_inputbox("template", gettext("Template Location"), $pconfig['template'], gettext("Sets the alternate location for the buildworld jail template. Default is in a folder named template within TheBrig's installation folder."), false, 50);
?>
	 	<?php 
//html_filechooser("rootfolder", gettext("Media Directory"), $pconfig['rootfolder'], gettext("Directory that contains our jails (e.g /mnt/Mount_Point/Folder). We will create folder /mnt/Mount_Point/Folder/thebrig/"), $g['media_path'], true);
?>
		<?php 
html_separator();
?>
		<?php 
html_titleline(gettext(_THEBRIG_CLEANUP));
?>
		
		<!-- This is the row beneath the title -->
		<tr><td width="22%" valign="top" class="vncellreq">&nbsp;</td>
			<td width="78%" class="vtable">
				<input type="checkbox" name="remove" value="1" onclick="return message(this);" ><?php 
echo _THEBRIG_CLEANUP_DESC;
?>
			</td>
		</tr>
			
		<!-- This is the Save button -->
		<tr><td width="22%" valign="top">&nbsp;</td>
			<td width="78%">
			 	<input name="Submit" type="submit" class="formbtn" value="<?php 
Example #18
0
				<?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_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>
    echo $vdevice['pool'];
    ?>
</td>
					<td class="listr"><?php 
    echo implode(', ', $vdevice['device']);
    ?>
</td>
				</tr>
				<?php 
}
?>
			</table>
			<br />
			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<?php 
html_titleline(gettext('Datasets') . ' (' . count($zfs['datasets']['dataset']) . ')', 7);
?>
				<tr>
					<td width="16%" class="listhdrlr"><?php 
echo gettext("Name");
?>
</td>
					<td width="14%" class="listhdrr"><?php 
echo gettext("Pool");
?>
</td>
					<td width="14%" class="listhdrr"><?php 
echo gettext("Compression");
?>
</td>
					<td width="14%" class="listhdrr"><?php 
Example #20
0
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    echo "<br />" . gettext("Ping winbindd to see if it is alive:") . "<br />";
    exec("/usr/local/bin/wbinfo -p 2>&1", $rawdata);
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    echo "<br />" . gettext("Check shared secret:") . "<br />";
    exec("/usr/local/bin/wbinfo -t 2>&1", $rawdata);
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    ?>
</pre>
					</td>
				</tr>
				<?php 
    html_titleline(gettext("List of imported users"));
    ?>
				<tr>
					<td>
						<pre><?php 
    exec("/usr/local/bin/net rpc user -S {$config['ad']['domaincontrollername']} -U " . escapeshellarg("{$config['ad']['username']}%{$config['ad']['password']}") . " 2>&1", $rawdata);
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    ?>
</pre>
						<?php 
}
?>
					</td>
				</tr>
			</table>
Example #21
0
?>
	<tr>
	  <td>
	    <pre><?php 
unset($rawdata);
exec("/bin/df -h", $rawdata);
echo htmlspecialchars(implode("\n", $rawdata));
?>
</pre>
	  </td>
	</tr>
<?php 
if (file_exists("/sbin/xmdconfig")) {
    ?>
	<?php 
    html_titleline(gettext("Memory usage"));
    ?>
	<tr>
	  <td>
	    <pre><?php 
    $xmdconfig_header = "Device  Type       Size Comp  Level    Ratio (compressed/allocated/uncompressed)";
    // don't translate this header. it will be removed later.
    echo "{$xmdconfig_header}\n";
    unset($rawdata);
    exec("/sbin/xmdconfig -lv", $rawdata);
    echo htmlspecialchars(implode("\n", $rawdata));
    ?>
</pre>
	  </td>
	</tr>
<?php 
Example #22
0
	<li class="tabinact"><a href="services_hast_resource.php"><span><?php 
echo gettext("Resources");
?>
</span></a></li>
	<li class="tabact"><a href="services_hast_info.php" title="<?php 
echo gettext("Reload page");
?>
"><span><?php 
echo gettext("Information");
?>
</span></a></li>
      </ul>
    </td>
  </tr>
  <tr>
    <td class="tabcont">
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
	<?php 
html_titleline(gettext("HAST status of the configured resources"));
?>
	<tr>
	  <td class="listt">
	  <pre><span id="hast_status"></span></pre>
	  </td>
	</tr>
	</table>
    </td>
  </tr>
</table>
<?php 
include "fend.inc";
				<!-- This is the Query button, which is displayed if we haven't yet queried the ftp server -->
				<input name="ftpquery" type="submit" class="formbtn" value="<?php 
    echo _THEBRIG_QUERYBTN;
    ?>
" onClick="disable_buttons();">
				<?php 
}
?>
			</td>
		</tr>
		<?php 
html_separator();
?>
	
		<?php 
html_titleline(gettext(_THEBRIG_REMOTE_ACTIVE));
?>
		
				<!-- The first td of this row is the box in the top row, far left. -->
		<tr><td width="22%" valign="top" class="vncellreq"><?php 
echo _THEBRIG_PARTIAL_TB;
?>
</td>
		<!-- The next td is the larger box to the right, which contains the text box and info --> 
		<td width="78%" class="vtable">
		<!-- This creates a div named loaddiv, which is dynamically update by an ajax, jquery function -->
		<div id="loaddiv" style="display: block;"><script>$('#loaddiv').load("extensions_thebrig_download.php");</script></div>
			</td></tr>
		
	</table>
	<?php 
Example #24
0
				<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php 
echo gettext("Sockets");
?>
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
  <tr>
    <td class="tabcont">
    	<table width="100%" border="0">
    		<?php 
html_titleline(gettext("Connected FTP users"));
?>
				<tr>
			    <td>
			    	<?php 
if (!isset($config['ftpd']['enable'])) {
    ?>
			    	<pre><?php 
    echo gettext("FTP server disabled");
    ?>
</pre>
			    	<?php 
} else {
    ?>
			    	<pre><?php 
    exec("/usr/local/bin/ftpwho -v", $rawdata);
Example #25
0
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
	<tr>
		<td class="tabcont">
		    <table width="100%" border="0">
			  <?php 
foreach ($a_disk as $diskk => $diskv) {
    ?>
				<?php 
    html_titleline(sprintf(gettext("Device /dev/%s - %s"), $diskk, $diskv['desc']));
    ?>
				<tr>
					<td>
						<pre><?php 
    $devicetype_arg = !empty($diskv['smart']['devicetypearg']) ? sprintf('-d %s', $diskv['smart']['devicetypearg']) : "";
    exec("/usr/local/sbin/smartctl -i {$diskv['smart']['devicefilepath']} {$devicetype_arg}", $rawdata);
    $rawdata = array_slice($rawdata, 3);
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    ?>
</pre>
						<?php 
    $hasdata = False;
    $devicetype_arg = !empty($diskv['smart']['devicetypearg']) ? sprintf('-d %s', $diskv['smart']['devicetypearg']) : '';
    exec("/usr/local/sbin/smartctl -a {$diskv['smart']['devicefilepath']} {$devicetype_arg}", $rawdata);
Example #26
0
				<li class="tabinact"><a href="diag_infos_sockets.php"><span><?php 
echo gettext("Sockets");
?>
</span></a></li>
				<li class="tabinact"><a href="diag_infos_ups.php"><span><?php 
echo gettext("UPS");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
  <tr>
    <td class="tabcont">
    	<table width="100%" border="0">
    		<?php 
html_titleline(gettext("List of mount points"));
?>
				<tr>
					<td>
						<pre><?php 
unset($rawdata);
exec("/sbin/mount", $rawdata);
echo htmlspecialchars(implode("\n", $rawdata));
?>
</pre>
					</td>
				</tr>
    	</table>
    </td>
  </tr>
</table>
html_inputbox("traphost", gettext("Trap host"), $pconfig['traphost'], gettext("Enter trap host name."), true, 40);
?>
					<?php 
html_inputbox("trapport", gettext("Trap port"), $pconfig['trapport'], gettext("Enter the port to send the traps to (default 162)."), true, 5);
?>
					<?php 
html_inputbox("trap", gettext("Trap string"), $pconfig['trap'], gettext("Trap string."), true, 40);
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters will be added to %s."), "snmpd.config") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/cgi/man.cgi?query=bsnmpd&amp;apropos=0&amp;sektion=0&amp;manpath=FreeBSD+{$os_release}-RELEASE&amp;format=html"), false, 65, 5, false, false);
?>
					<?php 
html_separator();
?>
					<?php 
html_titleline(gettext("Modules"));
?>
					<tr>
						<td width="22%" valign="top" class="vncell"><?php 
echo gettext("SNMP Modules");
?>
</td>
						<td width="78%" class="vtable">
							<input name="mibii" type="checkbox" id="mibii" value="yes" <?php 
if ($pconfig['mibii']) {
    echo "checked=\"checked\"";
}
?>
 /><?php 
echo gettext("MibII");
?>
Example #28
0
	2. Redistributions in binary form must reproduce the above copyright notice,
	   this list of conditions and the following disclaimer in the documentation
	   and/or other materials provided with the distribution.

	THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
	ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
	WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
	DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
	ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
	(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
	LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
	ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
	(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
	SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

	The views and conclusions contained in the software and documentation are those
	of the authors and should not be interpreted as representing official policies,
	either expressed or implied, of the NAS4Free Project.
*/
require "auth.inc";
require "guiconfig.inc";
$pgtitle = array("Not", "YET", "AVAILABLE");
include "fbegin.inc";
?>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
	<?php 
html_titleline(gettext("NOT YET AVAILABLE"));
?>
</table>
<?php 
include "fend.inc";
html_titleline(gettext("Node A settings"));
?>
	<?php 
html_inputbox("aname", gettext("Node Name"), $pconfig['aname'], "", false, 40);
?>
	<?php 
html_inputbox("apath", gettext("Path"), $pconfig['apath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("aremoteaddr", gettext("Node B IP address"), $pconfig['aremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	<?php 
html_separator();
?>
	<?php 
html_titleline(gettext("Node B settings"));
?>
	<?php 
html_inputbox("bname", gettext("Node Name"), $pconfig['bname'], "", false, 40);
?>
	<?php 
html_inputbox("bpath", gettext("Path"), $pconfig['bpath'], sprintf(gettext("Path to the local device. (e.g. %s)"), "/dev/da1"), false, 40);
?>
	<?php 
html_inputbox("bremoteaddr", gettext("Node A IP address"), $pconfig['bremoteaddr'], gettext("Address of the remote hastd daemon. It must be a static IP address."), false, 40);
?>
	</table>
	<div id="submit">
	  <input name="Submit" type="submit" class="formbtn" value="<?php 
echo isset($uuid) && FALSE !== $cnid ? gettext("Save") : gettext("Add");
?>
	<tr>
		<td class="tabcont">
			<table width="100%" border="0">
				<?php 
html_titleline(gettext("ZFS snapshot information and status"));
?>
				<tr>
					<td class="listt">
						<pre><span id="zfs_snapshot_list"><?php 
echo zfs_snapshot_display_list();
?>
</span></pre>
					</td>
				</tr>
				<?php 
html_titleline(gettext("ZFS snapshot properties"));
?>
				<tr>
					<td class="listt">
						<pre><span id="zfs_snapshot_properties"><?php 
echo zfs_snapshot_display_properties();
?>
</span></pre>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";