Skip to content

Commit

Permalink
ポップアップから書き込み成功した後にスレを再読み込みしない設定を追加
Browse files Browse the repository at this point in the history
  • Loading branch information
2ch774 committed Mar 20, 2015
1 parent ea38f48 commit d9900c1
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion conf/conf.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// バージョン情報
$_conf = array(
'p2name' => 'rep2-expack_allinone', // rep2の名前
'p2version' => '150317.1200', // rep2のバージョン
'p2version' => '150320.1020', // rep2のバージョン
);

$_conf['p2ua'] = "{$_conf['p2name']}/{$_conf['p2version']}";
Expand Down
4 changes: 4 additions & 0 deletions conf/conf_user_def.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,10 @@
$conf_user_def['res_write_rec'] = 1; // (1)
$conf_user_rad['res_write_rec'] = array('1' => 'する', '0' => 'しない');

// ポップアップから書き込み成功したらスレを再読み込みする(する:1, しない:0)
$conf_user_def['res_popup_reload'] = 1; // (1)
$conf_user_rad['res_popup_reload'] = array('1' => 'する', '0' => 'しない');

// 外部URLジャンプする際に通すゲート
// 「直接」でもCookieが使えない端末では gate.php を通す
$conf_user_def['through_ime'] = "exm"; // ("exm")
Expand Down
11 changes: 11 additions & 0 deletions doc/README-774.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,17 @@ rep2-expack test https://github.com/orzisun/p2-php
�{��p2�Ɠ������AX11���C�Z���X�ł��B

��ChangeLog
150320.1020
�E�|�b�v�A�b�v���珑�����ݐ���������ɃX�����ēǂݍ��݂��Ȃ��ݒ��lj�
�E�������[�h����̏������݂�Cookie�m�F�����������ꍇ�������[�h�ɖ߂�Ȃ��s����C��
�E�����e�i���X�������コ���邽��live_ShowThreadPc.php��live_ShowThread.php�̑����
live_ShowThreadLive.php�Ɩ{�̂�ShowThread.php���g�p����悤�ɕύX
�E�������ۑ�(expack.editor.savedraft)�������ȂƂ��Ɏ������[�h���珑�����߂Ȃ��s����C��
�E�X���^�C������Warning���o��s����C��

150317.1200
�E���̑����X

150316.1120
�E3�y�C���\���̔z�u��ύX�ł���ݒ��lj�
�EBe�̃A�C�R����\���ł���悤�ɂ���
Expand Down
1 change: 1 addition & 0 deletions rep2/edit_conf_user.php
Original file line number Diff line number Diff line change
Expand Up @@ -416,6 +416,7 @@
array('rct_rec_num', '最近読んだスレの記録数'),
array('res_hist_rec_num', '書き込み履歴の記録数'),
array('res_write_rec', '書き込み内容ログを記録'),
array('res_popup_reload', 'ポップアップから書き込み成功したらスレを再読み込みする'),
array('through_ime', '外部URLジャンプする際に通すゲート<br>「直接」でもCookieが使えない端末では gate.php を通す'),
array('through_ime_http_only', ' HTTPSでアクセスしているときは外部URLゲートを通さない<br>(最近のWebブラウザの多くは https → http の遷移でRefererを送出しませんが、<br>「HTTPSでは直」にする場合は、お使いのブラウザの仕様を確認してください)'),
array('ime_manual_ext', 'ゲートで自動転送しない拡張子(カンマ区切りで、拡張子の前のピリオドは不要)'),
Expand Down
1 change: 0 additions & 1 deletion rep2/info.php
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,6 @@

echo "<p>\n";
echo "<b><a class=\"thre_title\" href=\"{$_conf['read_php']}?{$common_q}{$_conf['k_at_a']}\"{$target_read_at}>",(isset($title_msg) ? $hd['ttitle_name'] : $aThread->ttitle_hd),"</a></b>\n";echo "</p>\n";
echo "</p>\n";

// 携帯なら冒頭で表示
if ($_conf['ktai']) {
Expand Down
7 changes: 7 additions & 0 deletions rep2/post.php
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,14 @@ function showPostMsg($isDone, $result_msg, $reload)
$popup_ht = <<<EOJS
<script type="text/javascript">
//<![CDATA[
EOJS;
if ($_conf['res_popup_reload']) {
$popup_ht .= <<<EOJS
opener.location.href = "{$location_noenc}";
EOJS;
}
$popup_ht .= <<<EOJS
var delay= 3*1000;
setTimeout("window.close()", delay);
//]]>
Expand Down

0 comments on commit d9900c1

Please sign in to comment.