Example #1
0
					<td class="listr"><?php 
    echo empty($volume['sparse']) ? '-' : 'on';
    ?>
</td>
					<td class="listr"><?php 
    echo $volume['compression'];
    ?>
</td>
					<td class="listr"><?php 
    echo $volume['dedup'];
    ?>
</td>
					<td class="listr"><?php 
    echo $volume['sync'];
    ?>
</td>
				</tr>
				<?php 
}
?>
			</table>
			<div id="remarks">
				<?php 
html_remark("note", gettext("Note"), gettext("This page reflects the current system configuration. It may be different to the configuration which has been created with the WebGUI if changes has been done via command line."));
?>
			</div>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
					<?php 
    $i++;
}
?>
					<tr>
						<td class="list" colspan="4"></td>
						<td class="list">
							<a href="disks_raid_gvinum_edit.php"><img src="plus.gif" title="<?php 
echo gettext("Add RAID");
?>
" border="0" alt="<?php 
echo gettext("Add RAID");
?>
" /></a>
						</td>
					</tr>
				</table>
				<div id="remarks">
					<?php 
html_remark("info", gettext("Info"), sprintf(gettext("%s is used to create %s volumes."), "GEOM Vinum", "RAID"));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
            break;
        case "list":
            disks_geom_cmd("vinum", "list", $object, true);
            break;
        case "remove":
            disks_geom_cmd("vinum", "rm", "-r {$object}", true);
            break;
        case "forceup":
            disks_geom_cmd("vinum", "setstate", "-f up {$object}", true);
            break;
        case "saveconfig":
            disks_geom_cmd("vinum", "saveconfig", "", true);
            break;
    }
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("warning", gettext("Warning"), gettext("1. Use these specials actions for debugging only!<br />2. There is no need of using this menu for starting a RAID volume (start automaticaly)."));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
Example #4
0
          </tr>
          <?php 
}
?>
          <tr>
            <td class="list" colspan="3"></td>
            <td class="list">
							<a href="services_afp_share_edit.php"><img src="plus.gif" title="<?php 
echo gettext("Add share");
?>
" border="0" alt="<?php 
echo gettext("Add share");
?>
" /></a>
						</td>
          </tr>
        </table>
        <div id="remarks">
        	<?php 
html_remark("note", gettext("Note"), gettext("All shares use the option 'usedots' thus making the filenames .Parent and anything beginning with .Apple illegal."));
?>
        </div>
        <?php 
include "formend.inc";
?>
      </form>
    </td>
  </tr>
</table>
<?php 
include "fend.inc";
	            <?php 
echo gettext("Daemon events");
?>
<br />
	          </td>
	        </tr>
	      </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
				</div>
				<div id="remarks">
					<?php 
html_remark("note", gettext("Note"), sprintf(gettext("Syslog sends UDP datagrams to port 514 on the specified remote syslog server. Be sure to set syslogd on the remote server to accept syslog messages from %s."), get_product_name()));
?>
				</div>
			<?php 
include "formend.inc";
?>
		</form>
		</td>
	</tr>
</table>
<script type="text/javascript">
<!--
enable_change(false);
//-->
</script>
<?php 
				</div>
				<?php 
if ($do_action) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    //ob_end_flush();
    ob_start();
    // Install package.
    packages_install($packagename);
    // Delete file.
    @unlink($packagename);
    $cmdoutput = ob_get_contents();
    ob_end_clean();
    echo htmlspecialchars($cmdoutput);
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("note", gettext("Note"), gettext("You can also install a package via SSH or console using the the pkg_add command.<br />Example: pkg_add -r packagename"));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
html_inputbox("desc", gettext("Description"), $pconfig['desc'], gettext("You may enter a description here for your reference."), false, 40);
?>
        </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 
echo $pconfig['uuid'];
?>
" />
			  </div>
			  <div id="remarks">
					<?php 
html_remark("note", gettext("Note"), sprintf(gettext("To get detailed informations about writing firewall rules check the FreeBSD <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/doc/en/books/handbook/firewalls-ipfw.html"));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
Example #8
0
          <?php 
html_inputbox("ftp_username", gettext("User"), $pconfig['ftp_username'], "", true, 20);
?>
			    <?php 
html_inputbox("ftp_password", gettext("Password"), $pconfig['ftp_password'], "", true, 20);
?>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
			  </div>
			  <div id="remarks">
			  	<?php 
html_remark("note", gettext("Note"), gettext("If the server is behind a proxy set these parameters to give local services access to the internet via proxy."));
?>
			  </div>
			  <?php 
include "formend.inc";
?>
			</form>
		</td>
  </tr>
</table>
<script type="text/javascript">
<!--
proxy_auth_change();
enable_change(false);
//-->
</script>
					<?php 
/*html_inputbox("aiowbehind", gettext("AIO write behind"), $pconfig['aiowbehind'], "", false, 60);*/
?>
					<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to [Global] section of %s."), "smb.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://us1.samba.org/samba/docs/man/manpages-3/smb.conf.5.html"), false, 65, 5, false, 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("To increase CIFS performance try the following:<div id='enumeration'><ul><li>Enable 'Large read/write' switch</li><li>Enable '<a href='%s'>Tuning</a>' switch</li><li>Increase <a href='%s'>MTU</a></li></ul></div>"), "system_advanced.php", "interfaces_lan.php"));
?>
				</div>
				<?php 
include "formend.inc";
?>
      </form>
    </td>
  </tr>
</table>
<script type="text/javascript">
<!--
enable_change(false);
authentication_change();
aio_change();
//-->
            <?php 
html_titleline(gettext("Extension Update"));
?>
			<?php 
html_text("ext_version_current", gettext("Installed version"), $config['downloady']['version']);
?>
			<?php 
html_text("ext_version_server", gettext("Latest version"), $server_version);
?>
			<?php 
html_separator();
?>
        </table>
        <div id="update_remarks">
            <?php 
html_remark("note_remove", gettext("Note"), sprintf(gettext("Removing %s integration from NAS4Free will leave the installation folder untouched - remove the files using Windows Explorer, FTP or some other tool of your choice. <br /><b>Please note: this page will no longer be available.</b> You'll have to re-run %s extension installation to get it back on your NAS4Free."), gettext("Downloady"), gettext("Downloady")));
?>
            <br />
            <input id="ext_update" name="ext_update" type="submit" class="formbtn" value="<?php 
echo gettext("Update Extension");
?>
" onclick="return confirm('<?php 
echo gettext("The selected operation will be completed. Please do not click any other buttons!");
?>
')" />
            <input id="ext_remove" name="ext_remove" type="submit" class="formbtn" value="<?php 
echo gettext("Remove Extension");
?>
" onclick="return confirm('<?php 
echo gettext("Do you really want to remove the extension from the system?");
?>
Example #11
0
    ?>
							<a href="system_loaderconf.php?act=del&amp;id=all" onclick="return confirm('<?php 
    echo gettext("Do you really want to delete all options?");
    ?>
')"><img src="x.gif" title="<?php 
    echo gettext("Delete all options");
    ?>
" border="0" alt="<?php 
    echo gettext("Delete all options");
    ?>
" /></a>
							<?php 
}
?>
						</td>
	        </tr>
	      </table>
	      <div id="remarks">
	      	<?php 
html_remark("note", gettext("Note"), gettext("These option(s) will be added to /boot/loader.conf.local. This allows you to specify parameters to be passed to kernel, and additional modules to be loaded."));
?>
	      </div>
	      <?php 
include "formend.inc";
?>
			</form>
	  </td>
  </tr>
</table>
<?php 
include "fend.inc";
Example #12
0
					<?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">
					<?php 
html_remark("note", gettext("Note"), gettext("Activate email report if you want to be notified if a failure or a new error has been detected, or if a S.M.A.R.T. command to a disk fails."));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<script type="text/javascript">
<!--
enable_change(false);
//-->
</script>
<?php 
Example #13
0
					<?php 
            }
            ?>
				<?php 
        } else {
            ?>
				<strong><?php 
            echo gettext("You must reboot the system before you can upgrade the firmware.");
            ?>
</strong>
				<?php 
        }
        ?>
				<div id="remarks">
					<?php 
        html_remark("warning", gettext("Warning"), sprintf(gettext("DO NOT abort the firmware upgrade process once it has started. Once it is completed, the server will automatically reboot, the current configuration will be maintained.<br />You need a minimum of %d MiB free RAM to perform the upgrade.<br />It is strongly recommended that you <a href='%s'>Backup</a> the server configuration before doing a upgrade."), 512, "system_backup.php"));
        ?>
				</div>
				<?php 
        include "formend.inc";
        ?>
			</form>
			<?php 
    }
}
?>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Traceroute");
?>
" />
				</div>
				<?php 
if ($do_traceroute) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    ob_end_flush();
    exec("/usr/sbin/traceroute " . ($resolve ? "" : "-n ") . "-w 2 -m " . escapeshellarg($ttl) . " " . escapeshellarg($host), $rawdata);
    echo htmlspecialchars(implode("\n", $rawdata));
    unset($rawdata);
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("note", gettext("Note"), gettext("Traceroute may take a while to complete. You may hit the Stop button on your browser at any time to see the progress of failed traceroutes."));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Execute");
?>
" />
				</div>
				<?php 
if ($do_action) {
    echo sprintf("<div id='cmdoutput'>%s</div>", gettext("Command output:"));
    echo '<pre class="cmdoutput">';
    ob_end_flush();
    /* Check filesystem */
    $result = disks_fsck($disk, $umount);
    /* Display result */
    echo 0 == $result ? gettext("Successful") : gettext("Failed");
    echo '</pre>';
}
?>
				<div id="remarks">
					<?php 
html_remark("note", gettext("Note"), gettext("You can't unmount a drive which is used by swap file, a iSCSI-target file or any other running process!"));
?>
				</div>
				<?php 
include "formend.inc";
?>
    	</form>
  	</td>
	</tr>
</table>
<?php 
include "fend.inc";
Example #16
0
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>"));
?>
				</div>
				</br>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
  </tr>
</table>
<?php 
include "fend.inc";
Example #17
0
    ?>
" /></a></td>
			  </tr>
			  <?php 
    $i++;
}
?>
			  <tr>
			    <td></td>
			  </tr>
			  <tr>
			    <td class="list" colspan="4"></td>
			    <td class="list"><a href="diag_arp.php?act=del"><img src="x.gif" title="<?php 
echo gettext("Remove all entries from ARP table");
?>
" border="0" alt="<?php 
echo gettext("Remove all entries from ARP table");
?>
" /></a></td>
			  </tr>
			</table>
			<div id="remarks">
				<?php 
html_remark("hint", gettext("Hint"), sprintf(gettext("IP addresses are resolved to hostnames if <a href='%s'>&quot;Resolve IP addresses to hostnames&quot;</a> is enabled."), "diag_log_settings.php"));
?>
			</div>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
Example #18
0
" border="0" alt="<?php 
    echo gettext("Delete command");
    ?>
" /></a>
          </td>
        </tr>
        <?php 
    $i++;
}
?>
        <tr>
          <td class="list" colspan="2"></td>
          <td class="list"><a href="system_rc_edit.php"><img src="plus.gif" title="<?php 
echo gettext("Add command");
?>
" border="0" alt="<?php 
echo gettext("Add command");
?>
" /></a></td>
        </tr>
      </table>
      <div id="remarks">
      	<?php 
html_remark("note", gettext("Note"), gettext("These commands will be executed pre or post system initialization (booting) or before system shutdown."));
?>
      </div>
    </td>
  </tr>
</table>
<?php 
include "fend.inc";
Example #19
0
							<br /><span class="vexpl"><?php 
echo gettext("Password of domain administrator account.");
?>
</span>
						</td>
			    </tr>
			  </table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" onclick="enable_change(true)" />
			  </div>
			  <div id="remarks">
			  	<?php 
html_remark("note", gettext("Note"), gettext("To use Active Directory the CIFS/SMB service will enabled, too. The following services will use AD authentication:<div id='enumeration'><ul><li>CIFS/SMB</li><li>SSH</li><li>FTP</li><li>AFP</li><li>System</li></ul></div>"));
?>
			  </div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
<script type="text/javascript">
<!--
enable_change(false);
//-->
</script>
<?php 
Example #20
0
				  </tr>
				  <?php 
} else {
    ?>
				  <tr>
					<td class="list" colspan="3" height="10"></td>
				  </tr>
				  <?php 
}
?>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save");
?>
" />
				</div>
				<div id="remarks">
					<?php 
html_remark("warning", gettext("Warning"), sprintf(gettext("After you click &quot;Save&quot;, you must reboot the server to make the changes take effect. You may also have to do one or more of the following steps before you can access your server again: <ul><li><span class='vexpl'>change the IP address of your server</span></li><li><span class='vexpl'>access the webGUI with the new IP address</span></li></ul>")));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
Example #21
0
html_checkbox("alertemail", gettext("Alert email"), isset($pconfig['alertemail']) ? true : false, gettext("Send email if error"));
?>
				
	<?php 
html_inputbox("alertemailto", gettext("Email to"), $pconfig['alertemailto'], gettext("Where email alert will be send."), true, 40);
?>
					
	<?php 
html_textarea("auxparam", gettext("Auxiliary parameters"), $pconfig['auxparam'], sprintf(gettext("These parameters are added to %s."), "hast.conf") . " " . sprintf(gettext("Please check the <a href='%s' target='_blank'>documentation</a>."), "http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/disks-hast.html"), false, 65, 5, false, false);
?>
	</table>
	<div id="submit">
	  <input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" />
	</div>
	<div id="remarks">
	  <?php 
html_remark("note", gettext("Note"), sprintf("<div id='enumeration'><ul><li>%s</li><li>%s</li><li>%s</li></ul></div>", gettext("When HAST is enabled, the local devices, the local services and the additional packages which do not support HAST volume cannot be used."), gettext("The HAST volumes can not be accessed until HAST node becomes Primary."), gettext("Dynamic IP (DHCP) can not be used for HAST resources.")));
?>
	</div>
	<?php 
include "formend.inc";
?>
      </form>
    </td>
  </tr>
</table>
<?php 
include "fend.inc";
Example #22
0
    ?>
							<a href="system_rcconf.php?act=del&amp;uuid=all" onclick="return confirm('<?php 
    echo gettext("Do you really want to delete all options?");
    ?>
')"><img src="x.gif" title="<?php 
    echo gettext("Delete all options");
    ?>
" border="0" alt="<?php 
    echo gettext("Delete all options");
    ?>
" /></a>
							<?php 
}
?>
						</td>
	        </tr>
	      </table>
	      <div id="remarks">
	      	<?php 
html_remark("note", gettext("Note"), gettext("These option(s) will be added to /etc/rc.conf. This allow you to overwrite options used by various generic startup scripts."));
?>
	      </div>
	      <?php 
include "formend.inc";
?>
			</form>
	  </td>
  </tr>
</table>
<?php 
include "fend.inc";
Example #23
0
')"><img src="x.gif" title="<?php 
    echo gettext("Delete all rules");
    ?>
" border="0" alt="<?php 
    echo gettext("Delete all rules");
    ?>
" /></a>
										<?php 
}
?>
									</td>
								</tr>
							</table>
							<div id="remarks">
								<?php 
html_remark("note", "", gettext("The module provides automatic bans that are triggered based on configurable criteria. A ban prevents the banned user, host, or class from logging into the server, it does not prevent the banned user, host, or class from connecting to the server."));
?>
							</div>
						</td>
					</tr>
				</table>
				<div id="submit">
					<input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" />
				</div>
				<?php 
include "formend.inc";
?>
			</form>
					<td class="listr"><?php 
    echo isset($dataset['canmount']) ? 'on' : 'off';
    ?>
</td>
					<td class="listr"><?php 
    echo empty($dataset['quota']) ? 'none' : $dataset['quota'];
    ?>
</td>
					<td class="listr"><?php 
    echo isset($dataset['xattr']) ? 'on' : 'off';
    ?>
</td>
					<td class="listr"><?php 
    echo isset($dataset['readonly']) ? 'on' : 'off';
    ?>
</td>
				</tr>
				<?php 
}
?>
			</table>
			<div id="remarks">
				<?php 
html_remark("note", gettext("Note"), gettext("This page reflects the configuration that has been created with the WebGUI."));
?>
			</div>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
?>
 /><?php 
echo gettext("UCD-SNMP-MIB");
?>
						</td>
					</tr>
			  </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("The associated MIB files can be found at %s."), "/usr/share/snmp/mibs"));
?>
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
<script type="text/javascript">
<!--
trapenable_change();
enable_change(false);
//-->
</script>
Example #26
0
" onclick="return confirm('<?php 
echo gettext("Do you really want to format this disk? All data will be lost!");
?>
')" />
				</div>
				<?php 
if (count($disks) > 0) {
    foreach ($disks as $key => $disk) {
        if ($do_format[$key]) {
            echo sprintf("<div id='cmdoutput'>%s</div>", sprintf(gettext("Command output") . " for disk %s :", $disk));
            echo '<pre class="cmdoutput">';
            disks_format($disk, $type, $notinitmbr, $minspace, $_volumelabels[$key], $aft4k);
            echo '</pre><br/>';
        }
    }
}
?>
				<div id="remarks">
					<?php 
html_remark("Warning", gettext("Warning"), sprintf(gettext("UFS and ZFS are the NATIVE filesystems of FreeBSD (the underlying OS of %s). Attempting to use other filesystems such as FAT, FAT32, EXT2, EXT3, EXT4 or NTFS can result in unpredictable results, file corruption, and loss of data!"), get_product_name()));
?>
				</div>
			</td>
		</tr>
	</table>
	<?php 
include "formend.inc";
?>
</form>
<?php 
include "fend.inc";
Example #27
0
					</tr>
					<?php 
}
?>
					<tr>
						<td class="list" colspan="4">&nbsp;</td>
						<td class="list">
							<a href="interfaces_vlan_edit.php"><img src="plus.gif" title="<?php 
echo gettext("Add interface");
?>
" border="0" alt="<?php 
echo gettext("Add interface");
?>
" /></a>
						</td>
					</tr>
				</table>
				<div id="remarks">
					<?php 
html_remark("note", gettext("Note"), gettext("Not all drivers/NICs support 802.1Q VLAN tagging properly. On cards that do not explicitly support it, VLAN tagging will still work, but the reduced MTU may cause problems."));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
	</tr>
</table>
<?php 
include "fend.inc";
					<?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";
?>
      </form>
    </td>
  </tr>
</table>
<script type="text/javascript">
<!--
enable_change();
uctlenable_change();
//-->
</script>
Example #29
0
?>
						</td>
					</tr>
					<?php 
html_checkbox("noddp", gettext("DDP"), $pconfig['noddp'] ? true : false, gettext("Disable AFP-over-Appletalk to prevent DDP connections."));
?>
			  </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("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
?>
				</div>
				<?php 
include "formend.inc";
?>
			</form>
		</td>
  </tr>
</table>
<script type="text/javascript">
<!--
enable_change(false);
//-->
</script>
<?php 
Example #30
0
	<?php 
html_textarea("lcdproc_param", gettext("Extra options"), !empty($pconfig['lcdproc_param']) ? $pconfig['lcdproc_param'] : "", "", false, 65, 10, false, false);
?>
	<?php 
html_textarea("lcdproc_auxparam", gettext("Auxiliary parameters"), !empty($pconfig['lcdproc_auxparam']) ? $pconfig['lcdproc_auxparam'] : "", "", false, 65, 5, false, false);
?>
	</table>
	<div id="submit">
	  <input name="Submit" type="submit" class="formbtn" value="<?php 
echo gettext("Save and Restart");
?>
" onclick="enable_change(true); lcdproc_enable_change(true);" />
	</div>
	<div id="remarks">
	  <?php 
html_remark("note", gettext("Note"), sprintf(gettext("To get more information how to configure LCDproc check the LCDproc <a href='%s' target='_blank'>documentation</a>."), "http://lcdproc.omnipotent.net"));
?>
	</div>
	<?php 
include "formend.inc";
?>
      </form>
    </td>
  </tr>
</table>
<script type="text/javascript">
<!--
enable_change(false);
lcdproc_enable_change(false);
//-->
</script>