From d1fd694282e3ebaf2046e3aee6a0d5dd92cb6659 Mon Sep 17 00:00:00 2001 From: "Paul S. Owen" Date: Tue, 13 Nov 2001 16:09:10 +0000 Subject: Added global PM disable + modded emailer to allow lang select + re-added back box limits my dumbness removed recently git-svn-id: file:///svn/phpbb/trunk@1305 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/privmsg.php | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'phpBB/privmsg.php') diff --git a/phpBB/privmsg.php b/phpBB/privmsg.php index 17f2636bdb..1b0ff74c66 100644 --- a/phpBB/privmsg.php +++ b/phpBB/privmsg.php @@ -26,6 +26,14 @@ include($phpbb_root_path . 'common.'.$phpEx); include($phpbb_root_path . 'includes/post.'.$phpEx); include($phpbb_root_path . 'includes/bbcode.'.$phpEx); +// +// Is PM disabled? +// +if( !empty($board_config['privmsg_disable']) ) +{ + message_die(GENERAL_MESSAGE, 'PM_disabled'); +} + // // Var definitions // @@ -817,7 +825,7 @@ else if( $submit || $refresh || $mode != "" ) { $to_username = $HTTP_POST_VARS['username']; - $sql = "SELECT user_id, user_notify_pm, user_email + $sql = "SELECT user_id, user_notify_pm, user_email, user_lang FROM " . USERS_TABLE . " WHERE username = '" . $to_username . "' AND user_id <> " . ANONYMOUS; @@ -977,7 +985,10 @@ else if( $submit || $refresh || $mode != "" ) include($phpbb_root_path . 'includes/emailer.'.$phpEx); $emailer = new emailer($board_config['smtp_delivery']); - $emailer->use_template("privmsg_notify"); + // + // Attempt to use language setting for recipient + // + $emailer->use_template("privmsg_notify", $to_userdata['user_lang']); $emailer->extra_headers($email_headers); $emailer->email_address($to_userdata['user_email']); -- cgit v1.2.1