#author("2024-09-02T06:52:50+00:00","default:iseki","iseki")
** ログイン,パスワード変更などの場合のみ HTTPS を使用する方法 [#x936ff34]

*** mainfile.php を修正 [#o19b57c1]
-  ''XOOPS_SSL_URL'' 変数を追加
 例) define('XOOPS_SSL_URL', 'https://www.nsl.tuis.ac.jp/xoops');

*** include/functions.php の xoops_refcheck() 関数を以下のように修正する (REFERER エラー対策) [#za98fe26]
 158,164c158
 <     if (strpos($ref, XOOPS_URL) !== 0 ) {
 ---
 >     // Fumi.Iseki
 >     $ref = preg_replace("/^https:/i", "http:", $ref);
 >     $url = preg_replace("/^https:/i", "http:", XOOPS_URL);
 > 
 >     //if (strpos($ref, XOOPS_URL) !== 0 ) {
 >     if (strpos($ref, $url) !== 0 ) {

*** User module のテンプレートを編集する[#z95aa9cb]
- ALTSYS がインストールされている場合.
-- 管理画面 -> SLTSYS -> テンプレート管理 -> User module を選択
- ALTSYS がインストールされていないか使用しない場合
-- 管理画面 -> Legacy Renderer -> テンプレート管理 -> User module を選択

- ''user_default.html''
 -<form action="<{$xoops_url}>/user.php" method="post">
 +<form action="<{$smarty.const.XOOPS_SSL_URL}>/user.php" method="post">

- ''user_block_login.html''
 -<form action="<{$xoops_url}>/user.php" method="post" style="margin-top: 0px;">
 +<form action="<{$smarty.const.XOOPS_SSL_URL}>/user.php" method="post" style="margin-top: 0px;">

- ''user_edituser.html''
 -<form action="#" method="post">
 +<form action="<{$smarty.const.XOOPS_SSL_URL}>/edituser.php" method="post">

- ''user_register_form.html''
 -<form action="#" method="post">
 +<form action="<{$smarty.const.XOOPS_SSL_URL}>/register.php" method="post">


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS