diff -urN p2ex-050128-0647.orig/p2/conf/conf_user_ex.php p2ex-050128-0647.handle/p2/conf/conf_user_ex.php
--- p2ex-050128-0647.orig/p2/conf/conf_user_ex.php 2005-01-28 06:47:22.000000000 +0900
+++ p2ex-050128-0647.handle/p2/conf/conf_user_ex.php 2005-01-28 18:14:01.000000000 +0900
@@ -228,6 +228,27 @@
// }}}
/* ---------------------------------------------------------------------- */
+// {{{ handle
+
+/**
+ * コテハン/トリップ記入支援
+ *
+ * 名前欄に記入できる定型文を追加できる。
+ */
+
+// 支援機能を有効にする(off:0, on:1)
+$_exconf['handle']['*'] = 0; // (0)
+
+//コテハン&トリップのリスト設定(必要に応じて追加、変更、削除して下さい)
+// 書式:$_exconf['handle']['リストに表示する名前'] = "定型文";
+// HTMLの特殊文字を実体参照で記述しなくてもよい。(出力時に自動で変換)
+$_exconf['handle']['名無しさんですよ'] = "名無しさんですよ#abcdefg";
+$_exconf['handle']['非通知さんですよ'] = "非通知さんですよ#hijklmn";
+$_exconf['handle']['ぬるぽさんですよ'] = "ぬるぽさんですよ#opqrstu";
+$_exconf['handle']['デフォルト名無し'] = ""; // 板標準(名前欄を空欄にする)
+
+// }}}
+/* ---------------------------------------------------------------------- */
// {{{ editor
/**
diff -urN p2ex-050128-0647.orig/p2/js/post_form.js p2ex-050128-0647.handle/p2/js/post_form.js
--- p2ex-050128-0647.orig/p2/js/post_form.js 2005-01-28 06:47:22.000000000 +0900
+++ p2ex-050128-0647.handle/p2/js/post_form.js 2005-01-28 18:14:01.000000000 +0900
@@ -1,6 +1,12 @@
/* vim: set fileencoding=cp932 autoindent noexpandtab ts=4 sw=4 sts=0: */
/* mi: charset=Shift_JIS */
+function inputHandle(obj) {
+ handle=document.getElementById('FROM');
+ handle.value=obj.options[obj.selectedIndex].value;
+ obj.options[0].selected=true;
+ handle.focus();
+}
function setFocus(ID){
document.getElementById(ID).focus();
}
diff -urN p2ex-050128-0647.orig/p2/lib/expack/handle.inc.php p2ex-050128-0647.handle/p2/lib/expack/handle.inc.php
--- p2ex-050128-0647.orig/p2/lib/expack/handle.inc.php 1970-01-01 09:00:00.000000000 +0900
+++ p2ex-050128-0647.handle/p2/lib/expack/handle.inc.php 2005-01-28 18:14:01.000000000 +0900
@@ -0,0 +1,21 @@
+\n
+ \n
+EOSS;
+foreach (array_map('htmlspecialchars', $_exconf['handle']) as $handle_key => $handle_value) {
+ if($handle_key != "*"){
+ $handle_ht .=<<{$handle_key}\n
+EOO;
+ }
+}
+$handle_ht .=<<\n
+
\n
+EOSE;
+
+?>
diff -urN p2ex-050128-0647.orig/p2/lib/read_footer.inc.php p2ex-050128-0647.handle/p2/lib/read_footer.inc.php
--- p2ex-050128-0647.orig/p2/lib/read_footer.inc.php 2005-01-28 06:47:23.000000000 +0900
+++ p2ex-050128-0647.handle/p2/lib/read_footer.inc.php 2005-01-28 18:14:01.000000000 +0900
@@ -40,6 +40,10 @@
EOP;
+ // handle記入支援
+ if ($_exconf['handle']['*']) {
+ @include(P2EX_LIBRARY_DIR . '/handle.inc.php');
+ }
//2chで●ログイン中なら
if (P2Util::isHost2chs($aThread->host) and file_exists($_conf['sid2ch_php'])) {
$isMaruChar = "●";
@@ -79,6 +83,7 @@
{$ttitle_ht}