aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions_messenger.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2004-11-06 14:22:04 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2004-11-06 14:22:04 +0000
commit541a04972584cb95b349fe182e164c9629d5f360 (patch)
treeb1088ab098cbda085ac2e47b68f156f1294c7a77 /phpBB/includes/functions_messenger.php
parent836771cfb872215c9fa43c91f532382006ad25bf (diff)
downloadforums-541a04972584cb95b349fe182e164c9629d5f360.tar
forums-541a04972584cb95b349fe182e164c9629d5f360.tar.gz
forums-541a04972584cb95b349fe182e164c9629d5f360.tar.bz2
forums-541a04972584cb95b349fe182e164c9629d5f360.tar.xz
forums-541a04972584cb95b349fe182e164c9629d5f360.zip
- a bunch of updates, most of them bbcode related
git-svn-id: file:///svn/phpbb/trunk@5023 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/functions_messenger.php')
-rw-r--r--phpBB/includes/functions_messenger.php15
1 files changed, 10 insertions, 5 deletions
diff --git a/phpBB/includes/functions_messenger.php b/phpBB/includes/functions_messenger.php
index cd3c9c2533..20acf11bf5 100644
--- a/phpBB/includes/functions_messenger.php
+++ b/phpBB/includes/functions_messenger.php
@@ -13,13 +13,12 @@
class messenger
{
- var $msg, $subject, $extra_headers, $encoding;
- var $to_address, $cc_address, $bcc_address, $reply_to, $from;
- var $queue, $jabber;
+ var $vars, $msg, $extra_headers, $replyto, $from, $subject, $necoding;
+ var $addresses = array();
var $mail_priority = MAIL_NORMAL_PRIORITY;
- var $tpl_msg = array();
var $use_queue = true;
+ var $tpl_msg = array();
function messenger($use_queue = true)
{
@@ -33,13 +32,14 @@ class messenger
}
$this->use_queue = $use_queue;
+ $this->subject = '';
}
// Resets all the data (address, template file, etc etc) to default
function reset()
{
$this->addresses = array();
- $this->vars = $this->msg = $this->extra_headers = $this->replyto = $this->from = '';
+ $this->vars = $this->msg = $this->extra_headers = $this->replyto = $this->from = $this->encoding = '';
$this->mail_priority = MAIL_NORMAL_PRIORITY;
}
@@ -261,6 +261,11 @@ class messenger
// Build to, cc and bcc strings
foreach ($this->addresses as $type => $address_ary)
{
+ if ($type == 'im')
+ {
+ continue;
+ }
+
foreach ($address_ary as $which_ary)
{
$$type .= (($$type != '') ? ', ' : '') . (($which_ary['name'] != '') ? '"' . mail_encode($which_ary['name'], $this->encoding) . '" <' . $which_ary['email'] . '>' : $which_ary['email']);