From: cake_67 Date: Wed, 7 Oct 2009 12:24:11 +0000 (+0000) Subject: trpgchat ver2.6.1 X-Git-Url: http://git.sourceforge.jp/view?a=commitdiff_plain;h=df535683a55c7572b32e46397528eb71959fc52e;p=trpgtools-onweb%2FAjaxChat.git trpgchat ver2.6.1 git-svn-id: svn+ssh://svn.sourceforge.jp/svnroot/trpgtools-onweb/src/trunk/AjaxChatForTRPG@50 46fa8b77-3530-0410-9d82-d95c44d28aba --- diff --git a/admin.php b/admin.php index c83f485..212bb84 100644 --- a/admin.php +++ b/admin.php @@ -1,6 +1,6 @@ - - - - - -'; - print ''."\n"; - print ''."\n"; - print "\n"; - if (CF_INPUT) { - print "\n"; - print '\n"; - - print ''; - - print '\n"; - } - print "\n"; -} -print ''."\n"; -//=======ここまで:オンラインTRPG欄 - -// タグボタン -if (ALLOW_TAG) { - print '\n"; - print '\n"; -} -?> -'; -} - -// カード機能 -if (USE_CARD) { - $onlick = "openNewWindow('card.php', 'card', true, 400, 500, true);"; - print ''; -} - -// FreeMap連動 -if (FREEMAP_URL) { - $onlick = "openNewWindow('".FREEMAP_URL."', 'map', false, '', '', true);"; - print ''; -} - -// 過去ログ表示 -if (!(DELETE_LAST_PASTLOG && !PUBLIC_PASTLOG)) { - print ''; - - print '\n"; -} - -if (COOKEI_EXPIRE && COOKIE) { - print '\n"; -} -// 携帯使用 -if (USE_MOBILE) { - print ''."\n"; -} -print " - - - '."\n"; - print ""; - // SW - if (SW) { - print '
'; - print ""; - show_icon(SW_ICON, "", "", "", "SW", "SWレーティング振り欄をON/OFFします", "toggleColumn('cr_sw');"); - print 'レーティング'; - print ' + '; - print ''; - print ' C:'; - print ''; - print ''; - show_icon(DICE_ICON, "", "", "", "レーティング", "右で指定したレーティングを入力します。", "insertSWRating(this.form, columnId);"); - print ''; - print '
'."\n"; - } - - // 一定値以上の出目カウント - if (PICKUP) { - print ''; - show_icon(PICKUP_ICON, "", "", "", "↑↓", "指定値以上/以下の出目のみを数えます", "toggleColumn('cr_pickup');"); - print '
'."\n"; - print ''; - print 'd'; - print ' '; - print '+'; - print ''; - print ' '; - print ''; - print ' MAXのみ:'; - print ' C:'; - print ''; - print ''; - print ' 振り足す:'; - - print ' C=MAX:'; - show_icon(DICE_ICON, "", "", "dice", "ダイス入力", "右&上で指定したダイスを入力します。", "insertPickupDice(columnId);"); - print ''; - print '
'."\n"; - } - - print ''."\n"; -} -?> - - - -'."\n"; - print ''."\n"; - for ($i=1;$i<=5;$i++) { - $dice_key = "dice_".$i; - print '
'."\n"; - print ''."\n"; - print "\n"; - show_icon(DICE_ICON, "", "", "", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);"); - print "\n"; - print ''; - print '
'."\n"; - } - print ""; - show_icon(DICE_SHORTCUT_SHOW_ICON, $img2, "", "dice_shortcut_icon", "↓", "ダイスショートカット欄2行目をON/OFFします", 'toggleColumn(\'dice_shortcut_2\')'); - print "\n"; - print ''."\n"; - for ($i=6;$i<=10;$i++) { - $dice_key = "dice_".$i; - print '
'."\n"; - print ''."\n"; - print ''; - show_icon(DICE_ICON, "", "", "dice", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);"); - print "\n"; - print ''; - print '
'."\n"; - } - print ' '."\n"; - print ''."\n"; -} -?> - - -= 1) { - for ($i=0; $i<=PC_NUM; $i++) { - $pc_name_key = "pc_name_".$i; - $pc_color_key = "pc_color_".$i; - $pc_color_select_key = "pc_color_select_".$i; - $pc_status_key = "pc_status_".$i; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - -if (USER_WHISPER) { - print "\n"; - print "\n"; -} - - print '\n"; - print '\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print '\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - print ''."\n"; - } +// 操作欄 +if (UPPER_USER_PANEL) { + include './index_inc_userpanel.php'; } ?> - - - - - - - - - - - - - -'; - print show_icon(FREEMAP_ICON, "", "", "freemap", "MAP", "マップとコマを使う", 'openUrl(\''.FREEMAP_URL.'\', \'map\'); return false;'); - print ''; -} - -// 過去ログ表示 -if (!(DELETE_LAST_PASTLOG && !PUBLIC_PASTLOG)) { - print ''; - - if (!UNPUBLIC_LAST_PASTLOG) { - print '"; - } -} - -if (COOKEI_EXPIRE && COOKIE) { - print "\n"; -} - -// 携帯使用 -if (USE_MOBILE) { - print ''; -} - -?> - - - -
お名前パスワード
'; - print show_icon(PASTLOG_SHOW_ICON, "", "", "pastlog_show", "ログ", "過去ログを見る", 'openUrl(\'./pastlog_index.php\', \'pastlog\'); return false;'); - print ''; - print show_icon(PASTLOG_DL_ICON, "", "", "pastlog_output", "DL", "過去ログをHTMLでダウンロード", "pastlogHtmlOutput(); return false;"); - print ""; - show_icon(COOKIE_LOAD_ICON, "", "", "", "CD", "チャットの設定をファイルから読み込みます", "toggleColumn('load_cookie'); return false;")."\n"; - print "'; - print show_icon(MOBILE_ICON, "", "", "mobile", "携帯", "携帯用URLを紹介", 'openUrl(\'./info-mobile.php\', \'\'); return false;'); - print '
+ + + + +'; + print ''."\n"; + print ''."\n"; + print "\n"; + if (CF_INPUT) { + print "\n"; + print '\n"; + + print ''; + + print '\n"; + } + print "\n"; +} +print ''."\n"; +//=======ここまで:オンラインTRPG欄 + +// タグボタン +if (ALLOW_TAG) { + print '\n"; + print '\n"; +} +?> +'; +} + +// カード機能 +if (USE_CARD) { + $onlick = "openNewWindow('card.php', 'card', true, 400, 500, true);"; + print ''; +} + +// FreeMap連動 +if (FREEMAP_URL) { + $onlick = "openNewWindow('".FREEMAP_URL."', 'map', false, '', '', true);"; + print ''; +} + +// 過去ログ表示 +if (!DELETE_LAST_PASTLOG || PUBLIC_PASTLOG) { + print ''; +} +if (!DELETE_LAST_PASTLOG) { + print '\n"; +} + +if (COOKEI_EXPIRE && COOKIE) { + print '\n"; +} +// 携帯使用 +if (USE_MOBILE) { + print ''."\n"; +} +print " + + + +'."\n"; + print ""; + // SW + if (SW) { + print '
'; + print ""; + show_icon(SW_ICON, "", "", "", "SW", "SWレーティング振り欄をON/OFFします", "toggleColumn('cr_sw');"); + print 'レーティング'; + print ' + '; + print ''; + print ' C:'; + print ''; + print ''; + show_icon(DICE_ICON, "", "", "", "レーティング", "右で指定したレーティングを入力します。", "insertSWRating(this.form, columnId);"); + print ''; + print '
'."\n"; + } + + // 一定値以上の出目カウント + if (PICKUP) { + print ''; + show_icon(PICKUP_ICON, "", "", "", "↑↓", "指定値以上/以下の出目のみを数えます", "toggleColumn('cr_pickup');"); + print '
'."\n"; + print ''; + print 'd'; + print ' '; + print '+'; + print ''; + print ' '; + print ''; + print ' MAXのみ:'; + print ' C:'; + print ''; + print ''; + print ' 振り足す:'; + + print ' C=MAX:'; + show_icon(DICE_ICON, "", "", "dice", "ダイス入力", "右&上で指定したダイスを入力します。", "insertPickupDice(columnId);"); + print ''; + print '
'."\n"; + } + + print ''."\n"; +} +?> + + + +'."\n"; + print ''."\n"; + for ($i=1;$i<=5;$i++) { + $dice_key = "dice_".$i; + print '
'."\n"; + print ''."\n"; + print "\n"; + show_icon(DICE_ICON, "", "", "", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);"); + print "\n"; + print ''; + print '
'."\n"; + } + print ""; + show_icon(DICE_SHORTCUT_SHOW_ICON, $img2, "", "dice_shortcut_icon", "↓", "ダイスショートカット欄2行目をON/OFFします", 'toggleColumn(\'dice_shortcut_2\')'); + print "\n"; + print ''."\n"; + for ($i=6;$i<=10;$i++) { + $dice_key = "dice_".$i; + print '
'."\n"; + print ''."\n"; + print ''; + show_icon(DICE_ICON, "", "", "dice", "D", "右欄に設定のダイスを入力します", "insert(document.getElementById(columnId), 'dice_$i', $('#dice_$i').attr('value'), 0);"); + print "\n"; + print ''; + print '
'."\n"; + } + print ' '."\n"; + print ''."\n"; +} +?> + + += 1) { + for ($i=0; $i<=PC_NUM; $i++) { + $pc_name_key = "pc_name_".$i; + $pc_color_key = "pc_color_".$i; + $pc_color_select_key = "pc_color_select_".$i; + $pc_status_key = "pc_status_".$i; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + +if (USER_WHISPER) { + print "\n"; + print "\n"; +} + + print '\n"; + print '\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print '\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + print ''."\n"; + } +} + ?> + + + + + + + + + + + + + + +'; + print show_icon(FREEMAP_ICON, "", "", "freemap", "MAP", "マップとコマを使う", 'openUrl(\''.FREEMAP_URL.'\', \'map\'); return false;'); + print ''; +} + +// 過去ログ表示 +if (!(DELETE_LAST_PASTLOG && !PUBLIC_PASTLOG)) { + print ''; + + if (!DELETE_LAST_PASTLOG) { + print '"; + } +} + +if (COOKEI_EXPIRE && COOKIE) { + print "\n"; +} + +// 携帯使用 +if (USE_MOBILE) { + print ''; +} + +?> + + + +
お名前パスワード
'; + print show_icon(PASTLOG_SHOW_ICON, "", "", "pastlog_show", "ログ", "過去ログを見る", 'openUrl(\'./pastlog_index.php\', \'pastlog\'); return false;'); + print ''; + print show_icon(PASTLOG_DL_ICON, "", "", "pastlog_output", "DL", "過去ログをHTMLでダウンロード", "pastlogHtmlOutput(); return false;"); + print ""; + show_icon(COOKIE_LOAD_ICON, "", "", "", "CD", "チャットの設定をファイルから読み込みます", "toggleColumn('load_cookie'); return false;")."\n"; + print "'; + print show_icon(MOBILE_ICON, "", "", "mobile", "携帯", "携帯用URLを紹介", 'openUrl(\'./info-mobile.php\', \'\'); return false;'); + print '
diff --git a/info-mobile.php b/info-mobile.php index 04da416..418a25b 100644 --- a/info-mobile.php +++ b/info-mobile.php @@ -1,6 +1,6 @@ + + + +TRPGのためのAjaxチャット + + + +TRPGのためのAjaxChat配布サイトはこちら。 + + + diff --git a/lib/card/sample/card_config.png b/lib/card/sample/card_config.png new file mode 100644 index 0000000..a4e797c Binary files /dev/null and b/lib/card/sample/card_config.png differ diff --git a/lib/card/sample/sample.ini b/lib/card/sample/sample.ini new file mode 100644 index 0000000..2fd394c --- /dev/null +++ b/lib/card/sample/sample.ini @@ -0,0 +1,30 @@ +[config] // 変更不可。 +name = "サンプルカード" // カード名 +filename = "sample.ini" // カード設定ファイル名 +bg_image = "" // カード裏面画像。空欄の場合管理画面設定 +bg_color = "" // カード表面の背景色。空欄の場合管理画面設定 +text_color = "" // カード表面のテキスト色。空欄の場合管理画面設定 +text_prefix = ""// textの前に固定表示する文言 +text_postfix = "" // textの後に固定表示する文言 +is_head = false // 「逆位置」:true=あり false=なし +order = 200 // 「カード変更」欄の表示順。大きいほど下 +password = "" // カード使用パスワード。空欄で「誰でも使用可」(パスワード機能はver2.7以降対応予定) + +[card_1] // カードID。カード1枚1枚に、別のIDをつけてください。 +name_short = "1" //表向きカードで表示するカード名。空欄不可 +name_long = "1 最初のカード" //カード詳細のタイトル表示。空欄不可 +text = "このカードの詳細説明。
HTMLタグ有効" // カード詳細で表示する説明 +image_s = "" // 表向きカードで表示する画像 +image_b = "" // カード詳細で表示する画像 +text_color = "ff0000" // name_shortの色設定。空欄でtext_colorと同じ + +[card_2] +name_short = "2" +name_long = "2 2番目のカード" +text = "2枚目" +image_s = "" +image_b = "" +text_color = "" + +(以下、カード枚数分繰り返し) +・・・・・・・・ \ No newline at end of file diff --git a/lib/card/tarot.ini b/lib/card/tarot.ini new file mode 100644 index 0000000..32641c8 --- /dev/null +++ b/lib/card/tarot.ini @@ -0,0 +1,165 @@ +[config] +name = "タロット" +filename = "tarot.ini" +bg_image = "./image/card/tarot/hex_indigo.jpg" +bg_color = "" +text_color = "" +text_prefix = "" +text_postfix = "

※ 解釈は一例です" +is_head = true +order = 110 +password = "" + +[tarot_0] +name_short = "愚者" +name_long = "0 愚者 THE FOOL" +text = "正位置…自由 大胆 型にはまらない 天才
逆位置…軽率 わがまま 無謀 落ちこぼれ " +image_s = "./image/card/tarot/Waite/small/0.jpg" +image_b = "./image/card/tarot/Waite/large/0.jpg" + +[tarot_1] +name_short = "魔術師" +name_long = "Ⅰ 魔術師 THE MAGICIAN" +text = "正位置…物事の始まり 起源 創造
逆位置…混迷 消極性" +image_s = "./image/card/tarot/Waite/small/1.jpg" +image_b = "./image/card/tarot/Waite/large/1.jpg" + +[tarot_2] +name_short = "女教皇" +name_long = " Ⅱ 女教皇 THE HIGHPRIESTESS" +text = "正位置…知性 平常心 洞察力 独身女性
逆位置…激情 無神経 我が儘 ヒステリー" +image_s = "./image/card/tarot/Waite/small/2.jpg" +image_b = "./image/card/tarot/Waite/large/2.jpg" + +[tarot_3] +name_short = "女帝" +name_long = "Ⅲ 女帝 THE EMPRESS" +text = "正位置…繁栄 豊穣 母権 家庭の形成
逆位置…挫折 軽率 虚栄心 怠惰" +image_s = "./image/card/tarot/Waite/small/3.jpg" +image_b = "./image/card/tarot/Waite/large/3.jpg" + +[tarot_4] +name_short = "皇帝" +name_long = "Ⅳ 皇帝 THE EMPEROR" +text = "正位置…支配 安定 成就・達成 責任感の強さ
逆位置…未熟 横暴 傲岸不遜 無責任" +image_s = "./image/card/tarot/Waite/small/4.jpg" +image_b = "./image/card/tarot/Waite/large/4.jpg" + +[tarot_5] +name_short = "教皇" +name_long = "Ⅴ 教皇 THE HIEROPHANT" +text = "正位置…慈悲 連帯・協調 法令・規律の遵守
逆位置…守旧性(アンシャン・レジーム) 束縛 躊躇 お節介" +image_s = "./image/card/tarot/Waite/small/5.jpg" +image_b = "./image/card/tarot/Waite/large/5.jpg" + +[tarot_6] +name_short = "恋人" +name_long = "Ⅵ 恋人たち THE LOVERS" +text = "正位置…合一 恋愛・性愛 趣味への没頭 試練の克服
逆位置…誘惑 不道徳 結婚生活の破綻" +image_s = "./image/card/tarot/Waite/small/6.jpg" +image_b = "./image/card/tarot/Waite/large/6.jpg" + +[tarot_7] +name_short = "戦車" +name_long = "Ⅶ 戦車 THE CHARIOT" +text = "正位置…勝利 征服 援軍 独立・解放
逆位置…暴走 不注意 好戦的" +image_s = "./image/card/tarot/Waite/small/7.jpg" +image_b = "./image/card/tarot/Waite/large/7.jpg" + +[tarot_8] +name_short = "力" +name_long = "Ⅷ 力 THE STRENGTH" +text = "正位置…力量の大きさ 強固な意志 不撓不屈 持久戦
逆位置…甘え 引っ込み思案 権勢を振るう" +image_s = "./image/card/tarot/Waite/small/8.jpg" +image_b = "./image/card/tarot/Waite/large/8.jpg" + +[tarot_9] +name_short = "隠者" +name_long = " 隠者 THE HERMIT" +text = "正位置…経験則 高尚な助言 秘匿 単独行動
逆位置…閉鎖性 陰湿 邪推" +image_s = "./image/card/tarot/Waite/small/9.jpg" +image_b = "./image/card/tarot/Waite/large/9.jpg" + +[tarot_10] +name_short = "運命" +name_long = "Ⅹ 運命の輪 WHEEL OF FORTUNE" +text = "正位置…転換点 幸運の到来 定められた運命
逆位置…情勢の急激な悪化 アクシデントの到来" +image_s = "./image/card/tarot/Waite/small/10.jpg" +image_b = "./image/card/tarot/Waite/large/10.jpg" + +[tarot_11] +name_short = "正義" +name_long = "ⅩⅠ 正義 JUSTICE" +text = "正位置…公正・公平 善行 両立
逆位置…不正 偏向 不均衡 被告の立場に置かれる" +image_s = "./image/card/tarot/Waite/small/11.jpg" +image_b = "./image/card/tarot/Waite/large/11.jpg" + +[tarot_12] +name_short = "吊" +name_long = "ⅩⅡ 吊された男 THE HAMGED MAN" +text = "正位置…修行 忍耐 奉仕 妥協
逆位置…徒労 痩せ我慢 欲望に負ける" +image_s = "./image/card/tarot/Waite/small/12.jpg" +image_b = "./image/card/tarot/Waite/large/12.jpg" + +[tarot_13] +name_short = "死" +name_long = "ⅩⅢ 死 DEATH" +text = "正位置…終末 破滅 離散 死の予兆
逆位置…再スタート 挫折から立ち直る" +image_s = "./image/card/tarot/Waite/small/13.jpg" +image_b = "./image/card/tarot/Waite/large/13.jpg" + +[tarot_14] +name_short = "節制" +name_long = "ⅩⅣ 節制 TEMPERANCE" +text = "正位置の意味…調和 自制 節度 献身
逆位置…浪費 消耗 生活の乱れ" +image_s = "./image/card/tarot/Waite/small/14.jpg" +image_b = "./image/card/tarot/Waite/large/14.jpg" + +[tarot_15] +name_short = "悪魔" +name_long = "ⅩⅤ 悪魔 THE DEVIL" +text = "正位置…裏切り 拘束 堕落
逆位置…回復 覚醒 新たな出会い" +image_s = "./image/card/tarot/Waite/small/15.jpg" +image_b = "./image/card/tarot/Waite/large/15.jpg" + +[tarot_16] +name_short = "塔" +name_long = "ⅩⅥ 塔 THE TOWER" +text = "正位置…崩壊 災害 悲劇
逆位置…緊迫 突然のアクシデント 誤解" +image_s = "./image/card/tarot/Waite/small/16.jpg" +image_b = "./image/card/tarot/Waite/large/16.jpg" + +[tarot_17] +name_short = "星" +name_long = "ⅩⅦ 星 THE STAR" +text = "正位置…希望 ひらめき 願いが叶う
逆位置…失望 無気力 高望み" +image_s = "./image/card/tarot/Waite/small/17.jpg" +image_b = "./image/card/tarot/Waite/large/17.jpg" + +[tarot_18] +name_short = "月" +name_long = "ⅩⅧ 月 THE MOON" +text = "正位置…不安定 幻惑 現実逃避 親友の裏切り
逆位置…軽微なミス 過去が蒸し返される 徐々に好転" +image_s = "./image/card/tarot/Waite/small/18.jpg" +image_b = "./image/card/tarot/Waite/large/18.jpg" + +[tarot_19] +name_short = "太陽" +name_long = "ⅩⅨ 太陽 THE SUN" +text = "正位置…成功 誕生 祝福 約束された将来
逆位置…不調 落胆 衰退" +image_s = "./image/card/tarot/Waite/small/19.jpg" +image_b = "./image/card/tarot/Waite/large/19.jpg" + +[tarot_20] +name_short = "審判" +name_long = "ⅩⅩ 審判 JUGDMENT" +text = "正位置…復活 結果 発展
逆位置…悔恨 行き詰まり バッドニュース" +image_s = "./image/card/tarot/Waite/small/20.jpg" +image_b = "./image/card/tarot/Waite/large/20.jpg" + +[tarot_21] +name_short = "世界" +name_long = "ⅩⅩⅠ 世界 THE WORLD" +text = "正位置…完全 総合 成就
逆位置…未完成 臨界点 調和の崩壊" +image_s = "./image/card/tarot/Waite/small/21.jpg" +image_b = "./image/card/tarot/Waite/large/21.jpg" diff --git a/lib/card/trump.ini b/lib/card/trump.ini new file mode 100644 index 0000000..4f28b75 --- /dev/null +++ b/lib/card/trump.ini @@ -0,0 +1,246 @@ +[config] +name = "トランプ" +filename = "trump.ini" +order = 100 + +[spade_A] +name_short = "♠A" +name_long = "スペードのエース" + +[spade_2] +name_short = "♠2" +name_long = "スペードの2" + +[spade_3] +name_short = "♠3" +name_long = "スペードの3" + +[spade_4] +name_short = "♠4" +name_long = "スペードの4" + +[spade_5] +name_short = "♠5" +name_long = "スペードの5" + +[spade_6] +name_short = "♠6" +name_long = "スペードの6" + +[spade_7] +name_short = "♠7" +name_long = "スペードの7" + +[spade_8] +name_short = "♠8" +name_long = "スペードの8" + +[spade_9] +name_short = "♠9" +name_long = "スペードの9" + +[spade_10] +name_short = "♠10" +name_long = "スペードの10" + +[spade_11] +name_short = "♠J" +name_long = "スペードのJ" + +[spade_12] +name_short = "♠Q" +name_long = "スペードのQ" + +[spade_13] +name_short = "♠K" +name_long = "スペードのK" + +[club_A] +name_short = "♣A" +name_long = "クラブのエース" + +[club_2] +name_short = "♣2" +name_long = "クラブの2" + +[club_3] +name_short = "♣3" +name_long = "クラブの3" + +[club_4] +name_short = "♣4" +name_long = "クラブの4" + +[club_5] +name_short = "♣5" +name_long = "クラブの5" + +[club_6] +name_short = "♣6" +name_long = "クラブの6" + +[club_7] +name_short = "♣7" +name_long = "クラブの7" + +[club_8] +name_short = "♣8" +name_long = "クラブの8" + +[club_9] +name_short = "♣9" +name_long = "クラブの9" + +[club_10] +name_short = "♣10" +name_long = "クラブの10" + +[club_11] +name_short = "♣J" +name_long = "クラブのJ" + +[club_12] +name_short = "♣Q" +name_long = "クラブのQ" + +[club_13] +name_short = "♣K" +name_long = "クラブのK" + +[heart_A] +name_short = "♥A" +name_long = "ハートのエース" +text_color = "ff0000" + +[heart_2] +name_short = "♥2" +name_long = "ハートの2" +text_color = "ff0000" + +[heart_3] +name_short = "♥3" +name_long = "ハートの3" +text_color = "ff0000" + +[heart_4] +name_short = "♥4" +name_long = "ハートの4" +text_color = "ff0000" + +[heart_5] +name_short = "♥5" +name_long = "ハートの5" +text_color = "ff0000" + +[heart_6] +name_short = "♥6" +name_long = "ハートの6" +text_color = "ff0000" + +[heart_7] +name_short = "♥7" +name_long = "ハートの7" +text_color = "ff0000" + +[heart_8] +name_short = "♥8" +name_long = "ハートの8" +text_color = "ff0000" + +[heart_9] +name_short = "♥9" +name_long = "ハートの9" +text_color = "ff0000" + +[heart_10] +name_short = "♥10" +name_long = "ハートの10" +text_color = "ff0000" + +[heart_11] +name_short = "♥J" +name_long = "ハートのJ" +text_color = "ff0000" + +[heart_12] +name_short = "♥Q" +name_long = "ハートのQ" +text_color = "ff0000" + +[heart_13] +name_short = "♥K" +name_long = "ハートのK" +text_color = "ff0000" + +[diamond_A] +name_short = "♦A" +name_long = "ダイヤのエース" +text_color = "ff0000" + +[diamond_2] +name_short = "♦2" +name_long = "ダイヤの2" +text_color = "ff0000" + +[diamond_3] +name_short = "♦3" +name_long = "ダイヤの3" +text_color = "ff0000" + +[diamond_4] +name_short = "♦4" +name_long = "ダイヤの4" +text_color = "ff0000" + +[diamond_5] +name_short = "♦5" +name_long = "ダイヤの5" +text_color = "ff0000" + +[diamond_6] +name_short = "♦6" +name_long = "ダイヤの6" +text_color = "ff0000" + +[diamond_7] +name_short = "♦7" +name_long = "ダイヤの7" +text_color = "ff0000" + +[diamond_8] +name_short = "♦8" +name_long = "ダイヤの8" +text_color = "ff0000" + +[diamond_9] +name_short = "♦9" +name_long = "ダイヤの9" +text_color = "ff0000" + +[diamond_10] +name_short = "♦10" +name_long = "ダイヤの10" +text_color = "ff0000" + +[diamond_11] +name_short = "♦J" +name_long = "ダイヤのJ" +text_color = "ff0000" + +[diamond_12] +name_short = "♦Q" +name_long = "ダイヤのQ" +text_color = "ff0000" + +[diamond_13] +name_short = "♦K" +name_long = "ダイヤのK" +text_color = "ff0000" + +[Joker_1] +name_short = "Joker" +name_long = "ジョーカー(1)" + +[Joker_2] +name_short = "Joker" +name_long = "ジョーカー(2)" diff --git a/lib/card/trump_noJoker.ini b/lib/card/trump_noJoker.ini new file mode 100644 index 0000000..825b284 --- /dev/null +++ b/lib/card/trump_noJoker.ini @@ -0,0 +1,238 @@ +[config] +name = "トランプ(ジョーカーなし)" +filename = "trump_noJoker.ini" +order = 101 + +[spade_A] +name_short = "♠A" +name_long = "スペードのエース" + +[spade_2] +name_short = "♠2" +name_long = "スペードの2" + +[spade_3] +name_short = "♠3" +name_long = "スペードの3" + +[spade_4] +name_short = "♠4" +name_long = "スペードの4" + +[spade_5] +name_short = "♠5" +name_long = "スペードの5" + +[spade_6] +name_short = "♠6" +name_long = "スペードの6" + +[spade_7] +name_short = "♠7" +name_long = "スペードの7" + +[spade_8] +name_short = "♠8" +name_long = "スペードの8" + +[spade_9] +name_short = "♠9" +name_long = "スペードの9" + +[spade_10] +name_short = "♠10" +name_long = "スペードの10" + +[spade_11] +name_short = "♠J" +name_long = "スペードのJ" + +[spade_12] +name_short = "♠Q" +name_long = "スペードのQ" + +[spade_13] +name_short = "♠K" +name_long = "スペードのK" + +[club_A] +name_short = "♣A" +name_long = "クラブのエース" + +[club_2] +name_short = "♣2" +name_long = "クラブの2" + +[club_3] +name_short = "♣3" +name_long = "クラブの3" + +[club_4] +name_short = "♣4" +name_long = "クラブの4" + +[club_5] +name_short = "♣5" +name_long = "クラブの5" + +[club_6] +name_short = "♣6" +name_long = "クラブの6" + +[club_7] +name_short = "♣7" +name_long = "クラブの7" + +[club_8] +name_short = "♣8" +name_long = "クラブの8" + +[club_9] +name_short = "♣9" +name_long = "クラブの9" + +[club_10] +name_short = "♣10" +name_long = "クラブの10" + +[club_11] +name_short = "♣J" +name_long = "クラブのJ" + +[club_12] +name_short = "♣Q" +name_long = "クラブのQ" + +[club_13] +name_short = "♣K" +name_long = "クラブのK" + +[heart_A] +name_short = "♥A" +name_long = "ハートのエース" +text_color = "ff0000" + +[heart_2] +name_short = "♥2" +name_long = "ハートの2" +text_color = "ff0000" + +[heart_3] +name_short = "♥3" +name_long = "ハートの3" +text_color = "ff0000" + +[heart_4] +name_short = "♥4" +name_long = "ハートの4" +text_color = "ff0000" + +[heart_5] +name_short = "♥5" +name_long = "ハートの5" +text_color = "ff0000" + +[heart_6] +name_short = "♥6" +name_long = "ハートの6" +text_color = "ff0000" + +[heart_7] +name_short = "♥7" +name_long = "ハートの7" +text_color = "ff0000" + +[heart_8] +name_short = "♥8" +name_long = "ハートの8" +text_color = "ff0000" + +[heart_9] +name_short = "♥9" +name_long = "ハートの9" +text_color = "ff0000" + +[heart_10] +name_short = "♥10" +name_long = "ハートの10" +text_color = "ff0000" + +[heart_11] +name_short = "♥J" +name_long = "ハートのJ" +text_color = "ff0000" + +[heart_12] +name_short = "♥Q" +name_long = "ハートのQ" +text_color = "ff0000" + +[heart_13] +name_short = "♥K" +name_long = "ハートのK" +text_color = "ff0000" + +[diamond_A] +name_short = "♦A" +name_long = "ダイヤのエース" +text_color = "ff0000" + +[diamond_2] +name_short = "♦2" +name_long = "ダイヤの2" +text_color = "ff0000" + +[diamond_3] +name_short = "♦3" +name_long = "ダイヤの3" +text_color = "ff0000" + +[diamond_4] +name_short = "♦4" +name_long = "ダイヤの4" +text_color = "ff0000" + +[diamond_5] +name_short = "♦5" +name_long = "ダイヤの5" +text_color = "ff0000" + +[diamond_6] +name_short = "♦6" +name_long = "ダイヤの6" +text_color = "ff0000" + +[diamond_7] +name_short = "♦7" +name_long = "ダイヤの7" +text_color = "ff0000" + +[diamond_8] +name_short = "♦8" +name_long = "ダイヤの8" +text_color = "ff0000" + +[diamond_9] +name_short = "♦9" +name_long = "ダイヤの9" +text_color = "ff0000" + +[diamond_10] +name_short = "♦10" +name_long = "ダイヤの10" +text_color = "ff0000" + +[diamond_11] +name_short = "♦J" +name_long = "ダイヤのJ" +text_color = "ff0000" + +[diamond_12] +name_short = "♦Q" +name_long = "ダイヤのQ" +text_color = "ff0000" + +[diamond_13] +name_short = "♦K" +name_long = "ダイヤのK" +text_color = "ff0000" diff --git a/lib/config.php b/lib/config.php index e06c567..73e8d48 100644 --- a/lib/config.php +++ b/lib/config.php @@ -1,6 +1,6 @@ '; var showDatetime = ''; var showDatetimeYear = ''; var showDatetimeSecond = ''; -var showMobileIcon = ''; +var showMobileCom = ''; +var mobileIcon = ''; var statusColor = ''; var logfile = ''; -var mobileMark = ''; +var logfile = ''; +var flowDesc = ''; var userSeSrc = ''; var systemSeSrc = ''; @@ -35,12 +37,13 @@ userSeObj.src = userSeSrc; systemSeObj.src = systemSeSrc; var useSe = false; +var userSeSrc = ''; +var systemSeSrc = ''; - // ログイン・ログオフ function login() { - getLog(false); + getLog(false, false); //現在ログの取得 getLog(true); - Timer = setInterval('getLog(true)', getdata_off); - showMember(true); + Timer = setInterval('getLog(true, true)', getdata_off); $("#main_console").after(''); - showMember(false); // ウィンドウサイズに合わせる diff --git a/lib/js/main.js b/lib/js/main.js index 64385ef..f440f29 100644 --- a/lib/js/main.js +++ b/lib/js/main.js @@ -1,5 +1,5 @@ /* - Ajax Chat for TRPG ver.2.6 + Ajax Chat for TRPG ver.2.6.1 (c)2007-2009 Cake All Rights Reserved. Mail : cake_67@users.sourceforge.jp Home : http://trpgtools-onweb.sourceforge.jp/ @@ -9,46 +9,56 @@ *****************/ // ログ取得 -function getLog(isUpdate){ +function getLog(isUpdate, cacheFlg){ var log = logfile+'?e='+dateD; $.ajax({ type: "get", ifModified: true, +// cache: cacheFlg, + cache: false, url: log, success: function(data){ // 最新行番号の取得 - if (!isNaN(document.getElementById('id'))) { - last_id = 0; - } else { - last_id = document.getElementById('id').firstChild.nodeValue; + var last_id = 0; + var nowData = $('.row').get(); + if (nowData) { + if (flowDesc) { + var latestData = nowData.shift(); + } else { + var latestData = nowData.pop(); + } + if (latestData != undefined) { + last_id = latestData.id; + } } + // ログの成形 var recent = data.split('\n'); var text = new Array(); + var seFlg = false; + var systemSeSetting = false; + var userSetting = false; + if (useSe && isUpdate) { + var seSetting = $("#seSetting").attr("checked"); + if (seSetting) { + systemSeSetting = $("#systemSeSetting").attr("checked"); + userSetting = $("#userSetting").attr("checked"); + } + } for(var i=0;iで分割して配列に + // 各行を<>で分割して配列に var unit = recent[i].split('<>'); - // データがなければ終了 + // データがなければ終了 // last_idで終点判断 if(unit[0] && last_id < unit[0]){ - text[i] = setLogData(unit); - } else { - break; - } - } - var text_rev = text.reverse(); + text[i] = setLogData(unit); - var seFlg = false; - // 発言音 - if (useSe && isUpdate && !seFlg) { - var seSetting = $("#seSetting").attr("checked"); - if (seSetting) { - var systemSeSetting = $("#systemSeSetting").attr("checked"); - var userSetting = $("#userSetting").attr("checked"); - if (systemSeSrc && systemSeSetting && unit[2] == systemName) { + // SE + if (!seFlg) { + if (systemSeSrc && systemSeSetting && unit[2] == systemName) { document.getElementById('se').src = systemSeObj.src; seFlg = true; } else if (userSeSrc && userSetting && unit[2] != systemName && unit[1] != window.parent.document.getElementById("name_on").value) { @@ -56,19 +66,62 @@ function getLog(isUpdate){ seFlg = true; } } + + } else { + break; } - for(var i=0;i maxNum) { - document.getElementById("chatwindow").removeChild(document.getElementById("chatwindow").lastChild); + outputLog(text, deleteLastPastLog, isUpdate); + + // 在室表示 + showMember(true); + + if (!flowDesc) { + if ($("#isScrollBottom").attr("checked")) { + var windowBottomOffset = $('#isScrollBottom').offset().top; + $('html,body').animate({scrollTop: windowBottomOffset}, 100); } } + } }); - // 在室表示 - showMember(true); +} + +// ログ出力 +function outputLog(text, deleteLastLogFlg, isUpdate) { + if (!text.length) { + return false; + } + + text = text.reverse(); + for(var i=0;i maxNum) { + if (flowDesc) { + var delLine = rows.pop(); + } else { + var delLine = rows[0]; + } + var id = "#"+delLine.id; + $(id).remove(); + } + + } + } } // 在室表示 @@ -122,26 +175,18 @@ function clearLog(){ $.ajax({ type: "get", ifModified: false, + cache: false, url: log, success: function(data){ var recent = data.split('\n'); var text = new Array(); for(var i=0;i'); - if (deleteLastPastLog && i >= maxNum) { - break; - } - if (unit[0] && unit[2] && unit[4]) { - text[i] = setLogData(unit); - } - } - var text_rev = text.reverse(); - for(var i=0;i'; //データの成形 var name = unit[1]; var pc = unit[2]; @@ -184,10 +227,14 @@ function setLogData(unit) { datetime = datetime+':'+sec; } var whisper = 'n'; - if(unit[9] || unit[10]) { - var whisper = 'y'; - if ($(window.parent.document.getElementById("my_hash")).attr("value") == unit[8]) whisper = 'to'; - if ($(window.parent.document.getElementById("my_hash")).attr("value") == unit[10]) var whisper = 'from' + if (unit[9] || unit[10]) { + whisper = 'y'; + if (unit[8] && $(window.parent.document.getElementById("my_hash")).attr("value") == unit[8]) { + whisper = 'to'; + } + if (unit[10] && $(window.parent.document.getElementById("my_hash")).attr("value") == unit[10]) { + whisper = 'from' + } } var whisperFrom = unit[9]; if(unit[11] == '1' && unit[12]) { @@ -205,12 +252,12 @@ function setLogData(unit) { // 行の成形 if (unit[0]!='0' && whisper!='y') { - row = '
'; + row = '
'; var pcname = '【'+pc+'】'; - if (isMobile=='1'&&showMobileIcon=='1') { - pcname += mobileMark; + if (isMobile == '1'&& showMobileCom == '1') { + pcname += '(M)'; } - row += last_id_tag+''+pcname+':'; + row += ''+pcname+':'; if (whisper=='to' || whisper=='from') { row += '('; if (whisper=='to') row += whisperFrom+'さんへ'; @@ -233,14 +280,14 @@ function setLogData(unit) { } // 改行 - row += '
'; row += '
' : NULL ; - $host .= (MASTERPASS && $hash == MASTERPASS) ? $unit[7].' -->' : NULL ; - $whisper_from_pass = $unit[8]; - $whisper_to_name = $unit[9]; - $whisper_to_pass = $unit[10]; + $host = (MASTERPASS && $hash == MASTERPASS) ? '' : NULL ; + $whisper_from_pass = $unit[8]; + $whisper_to_name = $unit[9]; + $whisper_to_pass = $unit[10]; - $w = 'n'; - if ($unit[9] || $unit[10]) { - $w = 'y'; - if ($hash == MASTERPASS) { - $w = 'to'; - } elseif ($hash == $unit[8]) { - $w = 'to'; - } elseif ($hash == $unit[10]) { - $w = 'from'; - } + $w = 'n'; + if ($unit[9] || $unit[10]) { + $w = 'y'; + if ($hash == MASTERPASS) { + $w = 'to'; + } elseif ($unit[8] && $hash == $unit[8]) { + $w = 'to'; + } elseif ($unit[10] && $hash == $unit[10]) { + $w = 'from'; } } $status = ""; diff --git a/lib/member_check.php b/lib/member_check.php index 5c52484..9a6d5fb 100644 --- a/lib/member_check.php +++ b/lib/member_check.php @@ -1,6 +1,6 @@ ['.$pc.']'; if (SHOW_MOBILE_COM && $isMobile == 1) { $row .= '(M)'; @@ -117,12 +119,12 @@ function mobile_read_log($lines_num=10, $read_systemlog=false) * 携帯表示チェック * 表示OK:true */ -function is_show_mobile_body() +function is_show_mobile_body($mode) { $referer = $_SERVER['HTTP_REFERER']; $url = get_self_url(); $pos = strpos($referer, $url); - if ($pos === 0) { + if ($pos === 0 && $mode != 'logout') { return true; } else { return false; diff --git a/lib/pastlog.php b/lib/pastlog.php index b277a22..fddd633 100644 --- a/lib/pastlog.php +++ b/lib/pastlog.php @@ -1,6 +1,6 @@ - + + + + +もっと前のログを見る + + + + + + +
+ +常に最新の行を表示 + +もっと前のログを見る +
-もっと前のログを見る
'; -?> +