|
From: Michael B. <mb...@us...> - 2001-08-29 08:05:43
|
Update of /cvsroot/phpbt/phpbt
In directory usw-pr-cvs1:/tmp/cvs-serv11899
Modified Files:
bug.php include.php newaccount.php
Log Message:
Two new Russian language files
Introduced a new value in $STRING - lang_charset, which specifies MIME charset
for the language file, and modified all mail-sending statements to include
appropriate mail headers. Charset is probably mandatory for language files
now.
Index: bug.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/bug.php,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- bug.php 2001/08/25 18:39:11 1.30
+++ bug.php 2001/08/29 08:05:39 1.31
@@ -158,8 +158,8 @@
));
mail($toemail,"[Bug {$buginfo['bug_id']}] Changed - ".
($cf['title'] ? $cf['title'] : $buginfo['title']), $t->parse('main','emailout'),
- sprintf("From: %s\nReply-To: %s\nErrors-To: %s", ADMINEMAIL, ADMINEMAIL,
- ADMINEMAIL));
+ sprintf("From: %s\nReply-To: %s\nErrors-To: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n", ADMINEMAIL, ADMINEMAIL,
+ ADMINEMAIL, $STRING['lang_charset']));
}
function update_bug($bugid = 0) {
Index: include.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/include.php,v
retrieving revision 1.43
retrieving revision 1.44
diff -u -r1.43 -r1.44
--- include.php 2001/08/28 04:13:59 1.43
+++ include.php 2001/08/29 08:05:39 1.44
@@ -455,7 +455,7 @@
$q->query("update auth_user set password = '$mpassword' where login = '$username'");
}
mail($email, $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
- $password), 'From: '.ADMINEMAIL);
+ $password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMINEMAIL, $STRING['lang_charset']));
$t->set_var(array(
'loginerrorcolor' => '#0000ff',
'loginerror' => 'Your password has been emailed to you<br>'
Index: newaccount.php
===================================================================
RCS file: /cvsroot/phpbt/phpbt/newaccount.php,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -r1.13 -r1.14
--- newaccount.php 2001/08/28 04:15:15 1.13
+++ newaccount.php 2001/08/29 08:05:39 1.14
@@ -50,7 +50,7 @@
$q->query("insert into auth_user (user_id, login, first_name, last_name, email, password, active, created_date, last_modified_date) values ($user_id, '$login', '$firstname', '$lastname', '$email', '$mpassword', 1, $now, $now)");
$q->query("insert into user_group (user_id, group_id) select $user_id, group_id from auth_group where group_name = 'user'");
mail($email, $STRING['newacctsubject'], sprintf($STRING['newacctmessage'],
- $password), 'From: '.ADMINEMAIL);
+ $password), sprintf("From: %s\nContent-Type: text/plain; charset=%s\nContent-Transfer-Encoding: 8bit\n",ADMINEMAIL, $STRING['lang_charset']));
$t->set_file('content','newaccountsuccess.html');
}
|