From 09e8bdfd18f81e432c5f392e398b8c8088168721 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Tue, 13 Dec 2011 19:20:26 +0400 Subject: simplify default global config, expand sanity_check messages --- include/functions.php | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) (limited to 'include/functions.php') diff --git a/include/functions.php b/include/functions.php index 2118858ca..ec31a1f16 100644 --- a/include/functions.php +++ b/include/functions.php @@ -2639,9 +2639,7 @@ require_once 'lib/phpmailer/class.phpmailer.php'; - if (!DIGEST_ENABLE) return false; - - $user_limit = DIGEST_EMAIL_LIMIT; + $user_limit = 15; // amount of users to process (e.g. emails to send out) $days = 1; print "Sending digests, batch of max $user_limit users, days = $days, headline limit = $limit\n\n"; @@ -2677,16 +2675,16 @@ $mail->CharSet = "UTF-8"; - $mail->From = DIGEST_FROM_ADDRESS; - $mail->FromName = DIGEST_FROM_NAME; + $mail->From = SMTP_FROM_ADDRESS; + $mail->FromName = SMTP_FROM_NAME; $mail->AddAddress($line["email"], $line["login"]); - if (DIGEST_SMTP_HOST) { - $mail->Host = DIGEST_SMTP_HOST; + if (SMTP_HOST) { + $mail->Host = SMTP_HOST; $mail->Mailer = "smtp"; - $mail->SMTPAuth = DIGEST_SMTP_LOGIN != ''; - $mail->Username = DIGEST_SMTP_LOGIN; - $mail->Password = DIGEST_SMTP_PASSWORD; + $mail->SMTPAuth = SMTP_LOGIN != ''; + $mail->Username = SMTP_LOGIN; + $mail->Password = SMTP_PASSWORD; } $mail->IsHTML(true); @@ -3288,12 +3286,10 @@ onclick=\"editArticleNote($id)\" alt='PubNote' title='".__('Edit article note')."'>"; - if (DIGEST_ENABLE) { - $rv['content'] .= "Zoom"; - } + $rv['content'] .= "Zoom"; if (ENABLE_TWEET_BUTTON) { $rv['content'] .= "