* @author Valery Fremaux
* @package Brainstorm 
* @date 20/12/2007
*/
/********************************** Save operator config ********************************/
if ($action == 'saveconfig') {
    $operator = required_param('operator', PARAM_ALPHA);
    $errors = array();
    /// make some controls
    $xminrange = required_param('config_xminrange', PARAM_RAW);
    $xmaxrange = required_param('config_xmaxrange', PARAM_RAW);
    if ($xminrange >= $xmaxrange) {
        $error->message = get_string('invertedrange', 'brainstorm');
        $error->on = 'xrange';
        $errors[] = $error;
    }
    /// make some controls
    $yminrange = required_param('config_yminrange', PARAM_RAW);
    $ymaxrange = required_param('config_ymaxrange', PARAM_RAW);
    if ($yminrange >= $ymaxrange) {
        unset($error);
        $error->message = get_string('invertedrange', 'brainstorm');
        $error->on = 'yrange';
        $errors[] = $error;
    }
    if (empty($errors)) {
        brainstorm_save_operatorconfig($brainstorm->id, $operator);
    } else {
        print_error_box($errors);
    }
}
Ejemplo n.º 2
0
    print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.php"));
}
?>
    		<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if ($failmsg) {
    print_error_box($failmsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Email Report"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<tr>
						<td width="22%" valign="top" class="vncellreq"><?php 
echo gettext("To email");
?>
</td>
						<td width="78%" class="vtable">
							<input name="to" type="text" class="formfld" id="to" size="40" value="<?php 
echo htmlspecialchars($pconfig['to']);
?>
Ejemplo n.º 3
0
echo gettext("Tools");
?>
</span></a></li>
				<li class="tabinact"><a href="disks_raid_gvinum_info.php"><span><?php 
echo gettext("Information");
?>
</span></a></li>
			</ul>
		</td>
	</tr>
	<tr>
		<td class="tabcont">
			<form action="disks_raid_gvinum.php" method="post">
				<?php 
if ($errormsg) {
    print_error_box($errormsg);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if (updatenotify_exists_mode("raid_gvinum", UPDATENOTIFY_MODE_DIRTY)) {
    print_warning_box(gettext("Warning: You are going to delete a RAID volume. All data will get lost and can not be recovered."));
}
?>
				<?php 
if (updatenotify_exists("raid_gvinum")) {
    print_config_change_box();
Ejemplo n.º 4
0
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td class="tabcont">
				<?php 
if ($input_errors) {
    print_input_errors($input_errors);
}
?>
				<?php 
if ($savemsg) {
    print_info_box($savemsg);
}
?>
				<?php 
if (!isset($config['system']['zeroconf'])) {
    print_error_box(sprintf(gettext("You have to activate <a href='%s'>Zeroconf/Bonjour</a> to advertise this service to clients."), "system_advanced.php"));
}
?>
				<table width="100%" border="0" cellpadding="6" cellspacing="0">
					<?php 
html_titleline_checkbox("enable", gettext("Digital Audio Access Protocol"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");
?>
					<?php 
html_inputbox("servername", gettext("Server name"), $pconfig['servername'], gettext("This is both the name of the server as advertised via Zeroconf/Bonjour/Rendezvous, and the name of the database exported via DAAP."), true, 20);
?>
					<?php 
html_inputbox("port", gettext("Port"), $pconfig['port'], gettext("Port to listen on. Default iTunes port is 3689."), true, 5);
?>
					<?php 
html_filechooser("dbdir", gettext("Database directory"), $pconfig['dbdir'], gettext("Location where the content database file will be stored."), $g['media_path'], true, 60);
?>
Ejemplo n.º 5
0
</span></a></li>
			</ul>
		</td>
	</tr>
	<tr>
		<td class="tabcont">
			<?php 
if (!empty($message_box_text)) {
    print_core_box($message_box_type, $message_box_text);
}
?>
			<?php 
if (isset($import) && $import === false) {
    ?>
			<?php 
    print_error_box(gettext('Nothing to synchronize'));
    ?>
			<?php 
}
?>
			<form action="<?php 
echo $_SERVER['PHP_SELF'];
?>
" method="post">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<?php 
html_titleline(gettext('Pools') . ' (' . count($zfs['pools']['pool']) . ')', 9);
?>
					<tr>
						<td width="1%" class="listhdrlr">&nbsp;</td>
						<td width="15%" class="listhdrr"><?php 
Ejemplo n.º 6
0
    <td class="tabcont">
      <form action="disks_manage_smart.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($pconfig['enable']) && !empty($pconfig['email_enable']) && 0 !== email_validate_settings()) {
    print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.php"));
}
?>
				<?php 
$smart = false;
foreach ($config['disks']['disk'] as $device) {
    if (isset($device['smart'])) {
        $smart = true;
    }
}
if (false === $smart) {
    print_error_box(gettext("Make sure you have activated S.M.A.R.T. for your devices."));
}
?>
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($savemsg)) {
    print_info_box($savemsg);
}
?>
				<?php 
if (updatenotify_exists("smartssd")) {
    print_config_change_box();
Ejemplo n.º 7
0
?>
			<?php 
if (isset($fwinfo) && $fwinfo) {
    html_titleline(gettext("Online version check"));
    echo "<tr id='fwinfo'><td class='vtable' colspan='2'>";
    echo "{$fwinfo}";
    echo "</td></tr>\n";
    html_separator();
}
?>
			</table>
			<?php 
if (!in_array($g['platform'], $fwupplatforms)) {
    ?>
			<?php 
    print_error_box(gettext("Firmware uploading is not supported on this platform."));
    ?>
			<?php 
} elseif (!empty($sig_warning) && empty($input_errors)) {
    ?>
			<form action="system_firmware.php" method="post">
			<?php 
    $sig_warning = "<strong>" . $sig_warning . "</strong><br />" . gettext("This means that the image you uploaded is not an official/supported image and may lead to unexpected behavior or security compromises. Only install images that come from sources that you trust, and make sure that the image has not been tampered with.<br /><br />Do you want to install this image anyway (on your own risk)?");
    print_info_box($sig_warning);
    ?>
			<input name="sig_override" type="submit" class="formbtn" id="sig_override" value=" Yes ">
			<input name="sig_no" type="submit" class="formbtn" id="sig_no" value=" No ">
			<?php 
    include "formend.inc";
    ?>
			</form>
Ejemplo n.º 8
0
  <tr>
    <td class="tabcont">
			<form action="system_cron_edit.php" method="post" name="iform" id="iform">
				<?php 
if (!empty($input_errors)) {
    print_input_errors($input_errors);
}
?>
				<?php 
if (!empty($execmsg)) {
    print_info_box($execmsg);
}
?>
				<?php 
if (!empty($execfailmsg)) {
    print_error_box($execfailmsg);
}
?>
			  <table width="100%" border="0" cellpadding="6" cellspacing="0">
          <?php 
html_titleline_checkbox("enable", gettext("Cron job"), $pconfig['enable'] ? true : false, gettext("Enable"));
?>
					<?php 
html_inputbox("command", gettext("Command"), $pconfig['command'], gettext("Specifies the command to be run."), true, 60);
?>
					<?php 
$a_user = array();
foreach (system_get_user_list() as $userk => $userv) {
    $a_user[$userk] = htmlspecialchars($userk);
}
?>
Ejemplo n.º 9
0
		<?php 
echo display_menu("info");
?>
		<?php 
echo display_menu("irc");
?>
		<?php 
echo display_menu("donate");
?>
	</ul>
	<div style="clear:both"></div>
</div>
        <br /><br /><br /><br /><br /><br /><br /><br />
		<?php 
if (!empty($input_errors)) {
    print_error_box($input_errors);
}
?>
        <br /><br /><br /><br /><br /><br /><br /><br /><br />
        <div id="loginpage">
            <table height="100%" width="100%" cellspacing="0" cellpadding="0" border="0">
				<tbody>
					<tr>
						<td align="center">
							<form name="iform" id="iform" action="login.php" method="post">
								<table>
									<tbody>
										<tr>
											<td align="center">
												<div class="shadow">
													<div id="loginboxheader"><b><?php 
Ejemplo n.º 10
0
			break;

		default:
			showElementById('shutdowntimer_tr','hide');
			break;
	}
}
//-->
</script>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="tabcont">
    	<form action="services_ups.php" method="post" name="iform" id="iform">
				<?php 
if ($pconfig['enable'] && $pconfig['email_enable'] && 0 !== email_validate_settings()) {
    print_error_box(sprintf(gettext("Make sure you have already configured your <a href='%s'>Email</a> settings."), "system_email.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("Uninterruptible Power Supply"), $pconfig['enable'] ? true : false, gettext("Enable"), "enable_change(false)");