configurable "Template resource"

about on-off & order of priority,on site.ini(site_default.ini)

* Theme:          under themes/(theme)/templates/(file template)
* ThemeD3:        under themes/(theme)/templates/(trust based template)
* ThemeDefault:   under themes/(theme prefix)_default/templates/(file template)
* ThemeDefaultD3: under themes/(theme prefix)_default/templates/(trust based template)
* DbTplSet:       DB template of the selected tplset

Default setting is
[Smarty]
ResourceDiscoveryOrder=Theme,ThemeD3,ThemeDefault,ThemeDefaultD3,DbTplSet
fix send mail with safe mode (phpmailer patch)

ref 1.   http://www.xugj.org/modules/QandA/index.php?topic_id=2200
ref 2-1. http://core.trac.wordpress.org/ticket/20970
ref 2-2. http://core.trac.wordpress.org/attachment/ticket/20970/20970.patch
candidate for change is limited only to safemode
[user] fix csv data import function

user モジュールの一括登録のバグ修正

- UTF-8 日本語環境で Shift-JIS に存在しない文字が処理できない問題の修正
- ユーザーデータに改行が含まれる場合に正常にインポートできない問題を修正

日本語環境下では、UTF-8(BOM付)にて CSV ファイルを出力するようにした。
改行問題は、 fgetcsv() を使い処理を行うようにした。
fix compatibility of criteria "IN", "NOT IN"

ref.
https://github.com/XoopsX/legacy/commit/32edb985ac4d334edd044123049dab230fb7809c#commitcomment-2591321
Merge pull request #37 from nao-pon/template_resource

configurable "Template resource"
Merge pull request #48 from nao-pon/xoopscube_mailer_patch

fix send mail with safe mode (phpmailer patch)
Merge pull request #61 from nao-pon/fix_user_csv

[user] fix csv data import function
Merge pull request #62 from nao-pon/re.#_3492904

Fix Bug #3492904 - Error Message after Profile edit
Merge pull request #71 from nao-pon/fix_criteria

fix compatibility of criteria "IN", "NOT IN"
Merge branch 'xoopscube' into CorePack