diff options
| author | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-31 15:45:49 +0000 |
|---|---|---|
| committer | Meik Sievertsen <acydburn@phpbb.com> | 2004-01-31 15:45:49 +0000 |
| commit | ae978d219a6e8bd67638a4142046fa6d9d12e6bf (patch) | |
| tree | ae93c7461bc21ac6b66178b2b584d04f35383c7a /phpBB/adm/admin_email.php | |
| parent | 918ae64f4b604c5a1db9c0133ab61f11da18c594 (diff) | |
| download | forums-ae978d219a6e8bd67638a4142046fa6d9d12e6bf.tar forums-ae978d219a6e8bd67638a4142046fa6d9d12e6bf.tar.gz forums-ae978d219a6e8bd67638a4142046fa6d9d12e6bf.tar.bz2 forums-ae978d219a6e8bd67638a4142046fa6d9d12e6bf.tar.xz forums-ae978d219a6e8bd67638a4142046fa6d9d12e6bf.zip | |
more authentication methods to choose between (SMTP). Added pop-before-smtp too.
git-svn-id: file:///svn/phpbb/trunk@4771 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/adm/admin_email.php')
| -rw-r--r-- | phpBB/adm/admin_email.php | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/phpBB/adm/admin_email.php b/phpBB/adm/admin_email.php index 716b2b7830..0b7f6ce07c 100644 --- a/phpBB/adm/admin_email.php +++ b/phpBB/adm/admin_email.php @@ -20,7 +20,7 @@ if (!empty($setmodules)) define('IN_PHPBB', 1); // Include files -$phpbb_root_path = '../'; +$phpbb_root_path = './../'; $phpEx = substr(strrchr(__FILE__, '.'), 1); require('pagestart.' . $phpEx); @@ -81,11 +81,16 @@ if (isset($_POST['submit'])) $email_list = array(); do { - $email_list[$row['user_lang']][$i]['method'] = $row['user_notify_type']; - $email_list[$row['user_lang']][$i]['email'] = $row['user_email']; - $email_list[$row['user_lang']][$i]['name'] = $row['username']; - $email_list[$row['user_lang']][$i]['jabber'] = $row['user_jabber']; - $i++; + if (($row['user_notify'] == NOTIFY_EMAIL && $row['user_email']) || + ($row['user_notify'] == NOTIFY_IM && $row['user_jabber']) || + ($row['user_notify'] == NOTIFY_BOTH && $row['user_email'] && $row['user_jabber'])) + { + $email_list[$row['user_lang']][$i]['method'] = $row['user_notify_type']; + $email_list[$row['user_lang']][$i]['email'] = $row['user_email']; + $email_list[$row['user_lang']][$i]['name'] = $row['username']; + $email_list[$row['user_lang']][$i]['jabber'] = $row['user_jabber']; + $i++; + } } while ($row = $db->sql_fetchrow($result)); $db->sql_freeresult($result); @@ -175,7 +180,7 @@ adm_page_header($user->lang['MASS_EMAIL']); <p><?php echo $user->lang['MASS_EMAIL_EXPLAIN']; ?></p> -<form method="post" action="<?php echo "admin_email.$phpEx.$SID"; ?>" name="email"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center"> +<form method="post" action="<?php echo "admin_email.$phpEx$SID"; ?>" name="email"><table class="bg" cellspacing="1" cellpadding="4" border="0" align="center"> <tr> <th colspan="2"><?php echo $user->lang['COMPOSE']; ?></th> </tr> |
