示例#1
0
echo $lang_Error_NonNumericHours;
?>
\n"
			}
		}

		if (err) {
			alert(msg);
		} else {
			<?php 
$mailConfig = new EmailConfiguration();
$mailType = $mailConfig->getMailType();
$mailConfigError = false;
$mailConfigErrorMsg = '';
if ($mailType == 'sendmail') {
    $sendmailPath = $mailConfig->getSendmailPath();
    $sendmailPath = substr($sendmailPath, 0, strpos($sendmailPath, ' '));
    if (is_file($sendmailPath)) {
        if (!is_executable($sendmailPath)) {
            $mailConfigError = true;
            $mailConfigErrorMsg = $lang_Error_EmailConfigError_SendmailNotExecutable;
        }
    } elseif (is_link($sendmailPath)) {
        $sendmailPath = readlink($sendmailPath);
        if (is_executable($sendmailPath)) {
            $mailConfigError = true;
            $mailConfigErrorMsg = $lang_Error_EmailConfigError_SendmailNotExecutable;
        }
    } else {
        $mailConfigErrorMsg = $lang_Error_EmailConfigError_SendmailNotFound;
        $mailConfigError = true;
 private function __setDefaultValues(EmailConfiguration $emailConfiguration)
 {
     $this->setDefaults(array('txtMailAddress' => $emailConfiguration->getSentAs(), 'cmbMailSendingMethod' => $emailConfiguration->getMailType(), 'txtSendmailPath' => $emailConfiguration->getSendmailPath(), 'txtSmtpHost' => $emailConfiguration->getSmtpHost(), 'txtSmtpPort' => $emailConfiguration->getSmtpPort(), 'optAuth' => $emailConfiguration->getSmtpAuthType(), 'txtSmtpUser' => $emailConfiguration->getSmtpUsername(), 'txtSmtpPass' => $emailConfiguration->getSmtpPassword(), 'optSecurity' => $emailConfiguration->getSmtpSecurityType(), 'txtTestEmail' => ''));
 }