예제 #1
0
	document.iform.all_days1.disabled = endis;
	document.iform.all_days2.disabled = endis;
	document.iform.all_months1.disabled = endis;
	document.iform.all_months2.disabled = endis;
	document.iform.all_weekdays1.disabled = endis;
	document.iform.all_weekdays2.disabled = endis;
	document.iform.sendnow.disabled = endis;
}
//-->
</script>
<form action="status_report.php" method="post" name="iform" id="iform">
	<table width="100%" border="0" cellpadding="0" cellspacing="0">
	  <tr>
	    <td class="tabcont">
	    	<?php 
if (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);
}
?>
				<?php 
if ($failmsg) {
예제 #2
0
"><span><?php 
echo gettext("S.M.A.R.T.");
?>
</span></a></li>
				<li class="tabinact"><a href="disks_manage_iscsi.php"><span><?php 
echo gettext("iSCSI Initiator");
?>
</span></a></li>
      </ul>
    </td>
  </tr>
  <tr>
    <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 
    // Validate old password.
    if ($_POST['password_old'] !== $a_user[$cnid]['password']) {
        $input_errors[] = gettext("The old password is not correct.");
    }
    // Validate new password.
    if ($_POST['password_new'] !== $_POST['password_confirm']) {
        $input_errors[] = gettext("The confimed password does not match. Please ensure the passwords match exactly.");
    }
    if (empty($input_errors)) {
        $a_user[$cnid]['password'] = $_POST['password_new'];
        write_config();
        updatenotify_set("userdb_user", UPDATENOTIFY_MODE_MODIFIED, $a_user[$cnid]['uuid']);
        // Write syslog entry and send an email to the administrator
        $message = sprintf("The user %s has changed his password via user portal.", Session::getUserName());
        write_log($message);
        if (0 == @email_validate_settings()) {
            $subject = sprintf(gettext("Notification email from host: %s"), system_get_hostname());
            @email_send($config['system']['email']['from'], $subject, $message, $error);
        }
        $savemsg = gettext("The administrator has been notified to apply your changes.");
    }
}
include "fbegin.inc";
?>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
	<tr>
		<td class="tabcont">
			<form action="<?php 
echo $_SERVER['SCRIPT_NAME'];
?>
" method="post" name="iform" id="iform">
예제 #4
0
			showElementById('shutdowntimer_tr','show');
			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