Nucleus(JP)フォーラム

NucleusCMS日本語版ユーザーのためのサポートフォーラムです。疑問が生じたらまずは記事検索をご利用ください。

ログインしていません。

#1 2009-09-09 17:42:56

きゃしゃ
メンバー
From: 北河内
登録日: 2007-12-15
投稿: 351

Re: NP_SecurityEnforcer

NucleusCMS v3.50-RC-2 日本語版同梱のNP_SecurityEnforcerを言語調整したものです。


Attachments:
zip NP_SecurityEnforcer_1_0JP.zip, Size: , Downloads: 314

オフライン

#2 2009-09-14 23:35:08

ftruscot
メンバー
登録日: 2009-01-21
投稿: 28

Re: NP_SecurityEnforcer

I've looked over the differences and I should be able to use your changes in the published version when it comes out this coming weekend. Thanks.

オフライン

#3 2009-09-15 05:27:57

ftruscot
メンバー
登録日: 2009-01-21
投稿: 28

Re: NP_SecurityEnforcer

I've added your changes into the version that will ship with 3.50, so likely do not need special Japanese version.

オフライン

#4 2010-03-24 23:06:21

きゃしゃ
メンバー
From: 北河内
登録日: 2007-12-15
投稿: 351

Re: NP_SecurityEnforcer

Nucleus CMS 3.51 (HQバージョン)添付のNP_SecurityEnforcer 1.01を調整したものです。
・日本語訳を再考
・プラグインオプションを言語設定連動に
・changemembersettingsでpasswordがnullならスルー
//本家版SVNではコアで対応されているのでこの機能はコアに任せるべきかも
・memberaddでパスワード強度がNP_SecurityEnforcerの設定に合致しない場合警告を表示
新規アカウントを強制削除するとユーザーIDに欠番が連発するので警告だけにしました。


Attachments:
zip SecurityEnfocer101JP.zip, Size: , Downloads: 309

オフライン

#5 2010-03-25 00:50:22

ftruscot
メンバー
登録日: 2009-01-21
投稿: 28

Re: NP_SecurityEnforcer

The changemembersettings bug has been fixed in the core (PrePasswordSet event not called if password isn't being changed), but it's a good idea to check it in the plugin, too. I'll add that to svn.

I see you want to give more specific messages, and that's fine, I can add that, too.

My issue with your PostRegister event is that it won't stop an admin from setting an "invalid" password. It will only notify him that it happened since PostRegister is called after the member is already created. It will not hurt for the admin to get a nice warning, though.

Finally, it took me a while to figure out what you were doing with the PrePluginOptionsEdit event, but I see it is to keep the db up-to-date with the language file for option descriptions. I don't mind adding that either.

オフライン

#6 2010-03-25 23:05:42

きゃしゃ
メンバー
From: 北河内
登録日: 2007-12-15
投稿: 351

Re: NP_SecurityEnforcer

>>ftruscot

Thanks for your quick responce and commiting.
Sorry my broken English and Japanese characters.

Please check up language-files and function install(),too.

ftruscot さんの発言:

Finally, it took me a while to figure out what you were doing with the PrePluginOptionsEdit event, but I see it is to keep the db up-to-date with the language file for option descriptions. I don't mind adding that either.

That codes are written by shizuki && NKJG.
Please read this thred.
<!-- l --><a class="postlink-local" href="http://japan.nucleuscms.org/bb/viewtopic.php?p=24397#24397">viewtopic.php?p=24397#24397</a><!-- l -->
http://japan.nucleuscms.org/wiki/plugin ... nopushonno
Nucleus CMS supports multi-users and multi-languages,but plugin's options are written to database with fixed language when installation time.
So,createOption with quoted constants,we can parse to selected language in event_PrePluginOptionsEdit.

うん、この文章がシンタックスエラーなのは自信ある :oops:

オフライン

#7 2010-03-26 02:56:03

ftruscot
メンバー
登録日: 2009-01-21
投稿: 28

Re: NP_SecurityEnforcer

Thanks for the reminder about the language files. I found no significant changes in the index.php file.

Your english is infinitely better than my japanese. You can write in Japanese if you want. Between code and google translate I can usually understand enough.

I had never noticed how the plugins store that option text, description in the db.

オフライン

Board footer