X-Git-Url: http://git.sourceforge.jp/view?p=nucleus-jp%2Fnucleus-jp-ancient.git;a=blobdiff_plain;f=utf8%2Fnucleus%2Flibs%2FMEMBER.php;h=73abc9a2857d602fbebf49f326de7b57f3619a0b;hp=9f08ba9879e1c21ef93c6f5aa2bbe679cc2bbf5a;hb=4b16861085a5a9bc281f4782b9e1547f5ad15e2d;hpb=b39642e85c1657c65bcc256109865b0bff158145 diff --git a/utf8/nucleus/libs/MEMBER.php b/utf8/nucleus/libs/MEMBER.php index 9f08ba9..73abc9a 100755 --- a/utf8/nucleus/libs/MEMBER.php +++ b/utf8/nucleus/libs/MEMBER.php @@ -158,7 +158,7 @@ class MEMBER { */ function canAlterComment($commentid) { if ($this->isAdmin()) return 1; - + $query = 'SELECT citem as itemid, iblog as blogid, cmember as cauthor, iauthor' . ' FROM '.sql_table('comment') .', '.sql_table('item').', '.sql_table('blog') . ' WHERE citem=inumber and iblog=bnumber and cnumber=' . intval($commentid); @@ -300,13 +300,16 @@ class MEMBER { */ function sendPassword($password) { global $CONF; - - $message = "Someone, possibly you, requested a new password for your account at '" . $CONF['SiteName'] . "' (". $CONF['IndexURL']. ") to be sent out to you.\n Here is your new login information: \n\n"; + + $message = "誰か(おそらくはあなた)が'" . $CONF['SiteName'] . "' (". $CONF['IndexURL']. ") \nにおけるアカウントと新規パスワードの送信を要求しました。\nあなたの新規ログイン情報は以下のとおりです。: \n\n"; $message .= "\tLogin: " . $this->getDisplayName(); $message .= "\n\tPassword: " . $password; $message .= getMailFooter(); - - @mail($this->getEmail(),'Your password',$message,"From: " . $CONF['AdminEmail']); + + $title = 'パスワード情報'; + mb_language('ja'); + mb_internal_encoding(_CHARSET); + @mb_send_mail($this->getEmail(), $title, $message, "From: ". $CONF['AdminEmail']); ACTIONLOG::add(INFO, _ACTIONLOG_PWDREMINDERSENT . $this->getDisplayName()); } @@ -480,7 +483,7 @@ class MEMBER { $r = sql_query('select * FROM '.sql_table('member')." WHERE mnumber='".intval($id)."'"); return (mysql_num_rows($r) != 0); } - + // checks if a username is protected. If so, it can not be used on anonymous comments function isNameProtected($name) {