svnno****@sourc*****
svnno****@sourc*****
2011年 6月 27日 (月) 18:39:25 JST
Revision: 917 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=917 Author: akid Date: 2011-06-27 18:39:25 +0900 (Mon, 27 Jun 2011) Log Message: ----------- p2/ for version 1.8.69 Modified Paths: -------------- p2/trunk/conf/conf_admin.inc.php p2/trunk/conf/conf_system.inc.php p2/trunk/conf/conf_user_style.inc.php p2/trunk/doc/ChangeLog.txt p2/trunk/iphone/ShowThreadK.php p2/trunk/iphone/index_print_k.inc.php p2/trunk/iphone/js/smartpopup.iPhone.js p2/trunk/iphone/read_footer_k.inc.php p2/trunk/iphone/read_header_k.inc.php p2/trunk/iphone/sb_header_k.inc.php p2/trunk/iui/read.css p2/trunk/js/smartpopup.js p2/trunk/lib/HostCheck.php p2/trunk/lib/Login.php p2/trunk/lib/P2Util.php p2/trunk/lib/ShowThreadK.php p2/trunk/lib/ShowThreadPc.php p2/trunk/lib/index_print_k.inc.php p2/trunk/lib/read_header.inc.php p2/trunk/lib/sb_footer.inc.php p2/trunk/lib/sb_header.inc.php p2/trunk/lib/sb_header_k.inc.php p2/trunk/lib/sb_print.inc.php p2/trunk/lib/sb_print_k.func.php p2/trunk/read.php p2/trunk/read_filter.php p2/trunk/read_filter_i.php p2/trunk/read_filter_k.php p2/trunk/setting.php p2/trunk/title.php Removed Paths: ------------- p2/trunk/iphone/conf_user_style.inc.php -------------- next part -------------- Modified: p2/trunk/conf/conf_admin.inc.php =================================================================== --- p2/trunk/conf/conf_admin.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/conf/conf_admin.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -89,7 +89,7 @@ $_conf['login_log_rec_num'] = 200; // (200) OCOÌL^ $_conf['last_login_log_show'] = 1; // (1) OñOCîñð\¦i·é:1, µÈ¢:0j -$_conf['cid_expire_day'] = 30; // (30) Cookie IDÌLøúÀú +$_conf['cid_expire_day'] = 60; // (60) Cookie IDÌLøúÀú $_conf['ngaborn_data_limit'] = 0; // (0) NG Ú[ñÉo^Å«éi0Èç§Àȵj Modified: p2/trunk/conf/conf_system.inc.php =================================================================== --- p2/trunk/conf/conf_system.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/conf/conf_system.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -3,7 +3,7 @@ // ±Ìt@CÍAÁÉR̳¢ÀèÏXµÈ¢Åº³¢B // include from conf.inc.php -$_conf['p2version'] = '1.8.68'; // rep2Ìo[W +$_conf['p2version'] = '1.8.69'; // rep2Ìo[W $_conf['p2name'] = 'rep2'; // rep2̼OB @@ -99,7 +99,7 @@ // 2010/06/09 cookieÉbwèðZbgµÄÝé if ($v = UA::getQueryValue()) { - P2Util::setCookie(UA::getQueryKey(), $v, 0); + P2Util::setCookie(UA::getQueryKey(), $v); } // output_add_rewrite_var() ÍÖ¾ªAoͪobt@³êÄÌ´¬xª¿é̪ï_BB Modified: p2/trunk/conf/conf_user_style.inc.php =================================================================== --- p2/trunk/conf/conf_user_style.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/conf/conf_user_style.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -6,7 +6,7 @@ ÝèÍ style/*_css.inc ÆA® ±Ìt@CàÅÌÝèÍA¨DÝɶÄÏXµÄ¾³¢ - iPhoneÌX\¦ÌÝèÍAiui/read.cssð¼ÚÒW + iPhoneÌCSSÝèÍAiui/iui.cssAiui/read.cssð¼ÚÒW */ // _setStyle() @@ -179,6 +179,12 @@ $STYLE['respop_b_color'] = "black"; // ("black") X|bvAbvÌ{[_[F $STYLE['respop_b_style'] = "solid"; // ("solid") X|bvAbvÌ{[_[`® +if (UA::isIPhoneGroup()) { + $STYLE['respop_color'] = "#FFFFFF"; // ("#000") X|bvAbvÌeLXgF + $STYLE['respop_bgcolor'] = ""; // ("#ffffcc") X|bvAbvÌwiF + $STYLE['respop_fontsize'] = '13px'; +} + $STYLE['info_pop_size'] = "600,430"; // ("600,400") îñ|bvAbvEBhEÌ嫳i¡,cj Modified: p2/trunk/doc/ChangeLog.txt =================================================================== --- p2/trunk/doc/ChangeLog.txt 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/doc/ChangeLog.txt 2011-06-27 09:39:25 UTC (rev 917) @@ -1,3 +1,13 @@ +2011/06/27 + * rep2 version 1.8.69 + + [C³] iPhonep\¦ðAndroidÅ©½Æ«AuXXv{^ÌdisabledóÔª¼§¾\¦ÉÈÁĢȩÁ½ÌðC³µ½B + [XV] spmodeXêÅù¾óÔÅÈ¢êÌV \¦Íu*v}[NƵANbN·é±ÆÅL^ðíÅ«éæ¤Éµ½B + [XV] iPhonep\¦Ìgbvy[WºÉu2chÌXURLð¼Úwèv·é½ßÌtH[ðÇÁµ½B + [XV] eífoCXÌOCpURLÌ\¦ðÇÁµ½B + [XV] gÑ̨CÉÂÒWÌ\¦ð}§µ½B + [XV] gÑÌIPAhXÑæðXVµ½B + 2011/3/29 * rep2 version 1.8.68 Modified: p2/trunk/iphone/ShowThreadK.php =================================================================== --- p2/trunk/iphone/ShowThreadK.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/ShowThreadK.php 2011-06-27 09:39:25 UTC (rev 917) @@ -161,7 +161,7 @@ $date_id = $resar[2]; $msg = $resar[3]; - // ftHg̼OÍANGE Ú[ñÆtB^õÌÎÛOÆ·é + // ftHg̼OÍANGE Ú[ñÆXõÌÎÛOÆ·é $nameForAborn = $name; if (strlen($this->BBS_NONAME_NAME) && $this->BBS_NONAME_NAME == $name) { if (!$_conf['k_bbs_noname_name']) { @@ -482,7 +482,7 @@ $date_id = isset($resar[2]) ? $resar[2] : ''; $msg = isset($resar[3]) ? $resar[3] : ''; - // ftHg̼OÍANGE Ú[ñÆtB^õÌÎÛOÆ·é + // ftHg̼OÍANGE Ú[ñÆXõÌÎÛOÆ·é $nameForAborn = $name; if (strlen($this->BBS_NONAME_NAME) && $this->BBS_NONAME_NAME == $name) { if (!$_conf['k_bbs_noname_name']) { @@ -507,6 +507,7 @@ $date_id = preg_replace('/(\d\d:\d\d):\d\d(\.\d\d)?/', '$1', $date_id); } + $no_trim_id_flag = false; // Ú[ñ`FbN if (false !== $this->checkAborns($nameForAborn, $mail, $date_id, $msg)) { Deleted: p2/trunk/iphone/conf_user_style.inc.php =================================================================== --- p2/trunk/iphone/conf_user_style.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/conf_user_style.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -1,164 +0,0 @@ -<?php -/* - rep2 - fUCp Ýèt@C - - Rg`ªÌ() àÍftHgl - ÝèÍ style/*_css.inc ÆA® - - ±Ìt@CÌÝèÍA¨DÝɶÄÏXµÄ¾³¢ -*/ - -//====================================================================== -// fUCJX^}CY -//====================================================================== - -$STYLE['a_underline_none'] = "2"; // ("2") Nɺüði¯é:0, ¯Ȣ:1, X^Cg꾯¯Ȣ:2j - -// tHg ====================================================== - -if (strstr($_SERVER['HTTP_USER_AGENT'], "Mac")) { - - // SafariÌ WebKitðgÁÄ¢éàÌÈç - if (strstr($_SERVER['HTTP_USER_AGENT'], "AppleWebKit")) { - $STYLE['fontfamily'] = "Hiragino Kaku Gothic Pro"; // ("Hiragino Kaku Gothic Pro") î{ÌtHg - $STYLE['fontfamily_bold'] = ""; // ("") î{{[hptHg - } else { - $STYLE['fontfamily'] = "qMmpS Pro W3"; // ("qMmpS Pro W3") î{ÌtHg - $STYLE['fontfamily_bold'] = "qMmpS Pro W6"; // ("qMmpS Pro W6") î{{[hptHgiÊɾɵ½¢êÍwèµÈ¢("")j - } - - // MacptHgTCY - $STYLE['fontsize'] = "12px"; // ("") î{tHgÌ嫳 - $STYLE['menu_fontsize'] = "11px"; // ("10pt") Âj [ÌtHgÌ嫳 - $STYLE['sb_fontsize'] = "11px"; // ("10pt") XêÌtHgÌ嫳 - $STYLE['read_fontsize'] = "12px"; // ("") Xbhàe\¦ÌtHgÌ嫳 - $STYLE['respop_fontsize'] = "11px"; // ("10pt") øpX|bvAbv\¦ÌtHgÌ嫳 - $STYLE['infowin_fontsize'] = "11px"; // ("10pt") îñEBhEÌtHgÌ嫳 - $STYLE['form_fontsize'] = "11px"; // ("10pt") input, option, select ÌtHgÌ嫳iCaminoðj - -} else { - - // MacÈOÌtHgTCY - $STYLE['fontsize'] = "12px"; // ("") î{tHgÌ嫳 - $STYLE['menu_fontsize'] = "12px"; // ("10pt") Âj [ÌtHgÌ嫳 - $STYLE['sb_fontsize'] = "12px"; // ("10pt") XêÌtHgÌ嫳 - $STYLE['read_fontsize'] = "13px"; // ("") Xbhàe\¦ÌtHgÌ嫳 - $STYLE['respop_fontsize'] = "12px"; // ("10pt") øpX|bvAbv\¦ÌtHgÌ嫳 - $STYLE['infowin_fontsize'] = "12px"; // ("10pt") îñEBhEÌtHgÌ嫳 - $STYLE['form_fontsize'] = "12px"; // ("10pt") input, option, select ÌtHgÌ嫳 -} - -//====================================================================== -// FÊÌÝè -//====================================================================== -// ³wè("")ÍuEUÌftHgFAܽÍî{wèÆÈèÜ·B -// DæxÍAÂÊy[Wwè ¨ î{wè ¨ gpuEUÌftHgwè Å·B - -// î{(style)======================= -$STYLE['bgcolor'] = "#ffffff"; // ("#ffffff") î{ wiF -$STYLE['textcolor'] = "#000"; // ("#000") î{ eLXgF -$STYLE['acolor'] = ""; // ("") î{ NF -$STYLE['acolor_v'] = ""; // ("") î{ KâÏÝNFB -$STYLE['acolor_h'] = "#09c"; // ("#09c") î{ }EXI[o[ÌNF - -$STYLE['fav_color'] = "#999"; // ("#999") ¨CÉ}[NÌF - -// j [(menu)==================== -$STYLE['menu_bgcolor'] = "#fff"; //("#fff") menu wiF -$STYLE['menu_background'] = ''; // ('') menu wiæ -$STYLE['menu_color'] = "#000"; //("#000") menu eLXgF -$STYLE['menu_cate_color'] = "#333"; // ("#333") menu JeS[ÌF - -$STYLE['menu_acolor_h'] = "#09c"; // ("#09c") menu }EXI[o[ÌNF - -$STYLE['menu_ita_color'] = ""; // ("") menu  NF -$STYLE['menu_ita_color_v'] = ""; // ("") menu  KâÏÝNF -$STYLE['menu_ita_color_h'] = "#09c"; // ("#09c") menu  }EXI[o[ÌNF - -$STYLE['menu_newthre_color'] = "hotpink"; // ("hotpink") menu VKXbhÌF -$STYLE['menu_newres_color'] = "#ff3300"; // ("#ff3300") menu V XÌF - -// Xê(subject)==================== -$STYLE['sb_bgcolor'] = "#fff"; // ("#fff") subject wiF -$STYLE['sb_color'] = "#000"; // ("#000") subject eLXgF - -$STYLE['sb_acolor'] = "#000"; // ("#000") subject NF -$STYLE['sb_acolor_v'] = "#000"; // ("#000") subject KâÏÝNF -$STYLE['sb_acolor_h'] = "#09c"; // ("#09c") subject }EXI[o[ÌNF - -$STYLE['sb_th_bgcolor'] = "#d6e7ff"; // ("#d6e7ff") subject e[uwb_wiF -$STYLE['sb_tbgcolor'] = "#fff"; // ("#fff") subject e[uàwiF0 -$STYLE['sb_tbgcolor1'] = "#eef"; // ("#eef") subject e[uàwiF1 - -$STYLE['sb_ttcolor'] = "#333"; // ("#333") subject e[uà eLXgF -$STYLE['sb_tacolor'] = "#000"; // ("#000") subject e[uà NF -$STYLE['sb_tacolor_h'] = "#09c"; // ("#09c")subject e[uà }EXI[o[ÌNF - -$STYLE['sb_order_color'] = "#111"; // ("#111") XêÌÔ NF - -$STYLE['thre_title_color'] = "#000"; // ("#000") subject X^Cg NF -$STYLE['thre_title_color_v'] = "#999"; // ("#999") subject X^Cg KâÏÝNF -$STYLE['thre_title_color_h'] = "#09c"; // ("#09c") subject X^Cg }EXI[o[ÌNF - -$STYLE['sb_tool_bgcolor'] = "#8cb5ff"; // ("#8cb5ff") subject c[o[ÌwiF -$STYLE['sb_tool_border_color'] = "#6393ef"; // ("#6393ef") subject c[o[Ì{[_[F -$STYLE['sb_tool_color'] = "#d6e7ff"; // ("#d6e7ff") subject c[o[à ¶F -$STYLE['sb_tool_acolor'] = "#d6e7ff"; // ("#d6e7ff") subject c[o[à NF -$STYLE['sb_tool_acolor_v'] = "#d6e7ff"; // ("#d6e7ff") subject c[o[à KâÏÝNF -$STYLE['sb_tool_acolor_h'] = "#fff"; // ("#fff") subject c[o[à }EXI[o[ÌNF -$STYLE['sb_tool_sepa_color'] = "#000"; // ("#000") subject c[o[à Zp[^¶F - -$STYLE['sb_now_sort_color'] = "#1144aa"; // ("#1144aa") subject »ÝÌ\[gF - -$STYLE['sb_thre_title_new_color'] = "red"; // ("red") subject VKX^CgÌF - -$STYLE['sb_tool_newres_color'] = "#ff3300"; // ("#ff3300") subject c[o[à VKXÌF -$STYLE['sb_newres_color'] = "#ff3300"; // ("#ff3300") subject V XÌF - -// Xàe(read)==================== -$STYLE['read_bgcolor'] = "#efefef"; // ("#efefef") Xbh\¦ÌwiF -$STYLE['read_color'] = "#000"; // ("#000") Xbh\¦ÌeLXgF - -$STYLE['read_acolor'] = ""; // ("") Xbh\¦ NF -$STYLE['read_acolor_v'] = ""; // ("") Xbh\¦ KâÏÝNF -$STYLE['read_acolor_h'] = "#09c"; // ("#09c") Xbh\¦ }EXI[o[ÌNF - -$STYLE['read_newres_color'] = "#ff3300"; // ("#ff3300") V XÔÌF - -$STYLE['read_thread_title_color'] = "#f40"; // ("#f40") Xbh^CgF -$STYLE['read_name_color'] = "#1144aa"; // ("#1144aa") eÒ̼OÌF -$STYLE['read_mail_color'] = ""; // ("") eÒÌmailÌF ex)"#a00000" -$STYLE['read_mail_sage_color'] = ""; // ("") sageÌÌeÒÌmailÌF ex)"#00b000" -$STYLE['read_ngword'] = "#bbbbbb"; // ("#bbbbbb") NG[hÌF - -// gÑp -$STYLE['read_k_thread_title_color'] = "#3366CC"; // ("#1144aa") Xbh^CgF -$STYLE['read_k_bgcolor'] = "#efefef"; // ("#efefef") Xbh\¦ÌwiF -$STYLE['read_k_color'] = "#000000"; // ("#222222") Xbh\¦ÌeLXgF - -// X«ÝtH[ -$STYLE['post_pop_size'] = "620,360"; // ("620,360") X«Ý|bvAbvEBhEÌ嫳i¡,cj -$STYLE['post_msg_rows'] = 10; // (10) X«ÝtH[AbZ[WtB[hÌs -$STYLE['post_msg_cols'] = 70; // (70) X«ÝtH[AbZ[WtB[hÌ - -// X|bvAbv -$STYLE['respop_color'] = "#000"; // ("#000") X|bvAbvÌeLXgF -$STYLE['respop_bgcolor'] = "#ffffcc"; // ("#ffffcc") X|bvAbvÌwiF -$STYLE['respop_background'] = ""; // ("") X|bvAbvÌwiæ -$STYLE['respop_b_width'] = "1px"; // ("1px") X|bvAbvÌ{[_[ -$STYLE['respop_b_color'] = "black"; // ("black") X|bvAbvÌ{[_[F -$STYLE['respop_b_style'] = "solid"; // ("solid") X|bvAbvÌ{[_[`® - -$STYLE['info_pop_size'] = "600,430"; // ("600,400") îñ|bvAbvEBhEÌ嫳i¡,cj - - -/* - * Local Variables: - * mode: php - * coding: cp932 - * tab-width: 4 - * c-basic-offset: 4 - * indent-tabs-mode: nil - * End: - */ -// vim: set syn=php fenc=cp932 ai et ts=4 sw=4 sts=4 fdm=marker: Modified: p2/trunk/iphone/index_print_k.inc.php =================================================================== --- p2/trunk/iphone/index_print_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/index_print_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -67,6 +67,14 @@ $body_at = P2View::getBodyAttrK(); $hr = P2View::getHrHtmlK(); + $urlform_onClick_ht = <<<EOP +var url_v = document.forms['urlform'].elements['url_text'].value; +if (url_v == '') { + alert('©½¢XbhÌURLðü͵ĺ³¢B áFhttp://hibari.2ch.net/test/read.cgi/software/1306160232/'); + return false; +} +EOP; + //========================================================= // gÑp HTMLoÍ //========================================================= @@ -104,8 +112,16 @@ } ?> -<li class="group">õ</li> +<li class="group">X^C/Âõ</li> <?php echo $search_form_htm; ?> + +<li class="group">2chÌXURLð¼Úwè</li> +<form id="urlform" method="GET" action="<?php eh($_conf['read_php']); ?>"> + <input id="url_text" type="text" value="" name="url" placeholder="http://hibari.2ch.net/test/read.cgi/software/1306160232/"> + <?php echo P2View::getInputHiddenKTag(); ?> + <input type="submit" name="btnG" value="\¦" onClick="<?php echo $urlform_onClick_ht; ?>"> +</form> + </ul> <br> </body> Modified: p2/trunk/iphone/js/smartpopup.iPhone.js =================================================================== --- p2/trunk/iphone/js/smartpopup.iPhone.js 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/js/smartpopup.iPhone.js 2011-06-27 09:39:25 UTC (rev 917) @@ -67,7 +67,7 @@ /* //tB^O if (aThread.spmOption['enable_fl_on_spm']) { - document.writeln("<a href=\"javascript:void(0);\"" + makeOnPopUp(thread_id+"_fl", true) + ">tB^\¦</a>"); + document.writeln("<a href=\"javascript:void(0);\"" + makeOnPopUp(thread_id+"_fl", true) + ">Xõ</a>"); } */ @@ -75,7 +75,7 @@ document.writeln('<span id="' + thread_id + '_iphone_res"></span>'); document.writeln('<span id="' + thread_id + '_iphone_quoteres"></span>'); - // ¯¶¼OðtB^\¦ + // ¯¶¼OðXõ document.writeln('<a id="' + thread_id + '_same_name" href="#" target="' + spmTarget + '">¯¶¼O</a>'); // tQÆ Modified: p2/trunk/iphone/read_footer_k.inc.php =================================================================== --- p2/trunk/iphone/read_footer_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/read_footer_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -67,13 +67,12 @@ $index_uri = UriUtil::buildQueryUri('index.php', array(UA::getQueryKey() => UA::getQueryValue())); - $goto_select_ht = _csrangeform(isset($GLOBALS['word']) ? $last_hit_resnum : $aThread->resrange['to'], $aThread) - . $goto_select_ht . '</form>'; + $goto_select_ht = _csrangeform(isset($GLOBALS['word']) ? $last_hit_resnum : $aThread->resrange['to'], $aThread); ?> <?php echo $toolbar_back_board_ht; ?> <div class="footform"> <a id="footer" name="footer"></a> -<?php echo $goto_select_ht; ?> +<?php echo $goto_select_ht, $goto_next_ht; ?> </div> <div id="footbar01"> <div class="footbar"> @@ -91,7 +90,7 @@ <div id="footbar02" class="dialog_other"> <filedset> <ul> - <li class="whiteButton" id="serchId" title="off" onclick="popUpFootbarFormIPhone(0); all.item('footbar02').style.visibility='hidden'">tB^õ</li> + <li class="whiteButton" id="serchId" title="off" onclick="popUpFootbarFormIPhone(0); all.item('footbar02').style.visibility='hidden'">Xõ</li> <?php echo $toolbar_right_ht; ?> <li class="grayButton" onclick="all.item('footbar02').style.visibility='hidden'">LZ</li> </ul> @@ -339,7 +338,7 @@ <label>Word:</label> <input id="word" name="word" type="text" value=""> <br> - <input type="submit" id="s2" name="s2" value="tB^\¦" onclick="popUpFootbarFormIPhone(0, 1)"><br><br> + <input type="submit" id="s2" name="s2" value="Xõ" onclick="popUpFootbarFormIPhone(0, 1)"><br><br> <input type="hidden" name="detect_hint" value=""> <input type="hidden" name="bbs" value="{$aThread->bbs}"> Modified: p2/trunk/iphone/read_header_k.inc.php =================================================================== --- p2/trunk/iphone/read_header_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/read_header_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -152,6 +152,7 @@ $after_rnum = $aThread->resrange['to'] + $rnum_range; +$goto_next_ht = ''; if (!$read_navi_next_isInvisible) { $url = UriUtil::buildQueryUri($_conf['read_php'], array_merge( @@ -166,15 +167,14 @@ ); // å«È>{^ - // disabledÌêAȺ©ÔðJ¯çêÈ¢ - $goto_select_ht .= sprintf('<form style="margin-left: 1px; display:inline;" action="%s">', hs($_conf['read_php'])); + $goto_next_ht = sprintf('<form style="margin-left: 1px; display:inline;" action="%s">', hs($_conf['read_php'])); if (!$read_navi_next_isInvisible) { - $goto_select_ht .= sprintf('<input type="hidden" name="host" value="%s">', hs($aThread->host)); - $goto_select_ht .= sprintf('<input type="hidden" name="bbs" value="%s">', hs($aThread->bbs)); - $goto_select_ht .= sprintf('<input type="hidden" name="key" value="%s">', hs($aThread->key)); - $goto_select_ht .= sprintf('<input type="hidden" name="offline" value="%s">', 1); - $goto_select_ht .= sprintf('<input type="hidden" name="nt" value="%s">', $newtime); - $goto_select_ht .= P2View::getInputHiddenKTag(); + $goto_next_ht .= sprintf('<input type="hidden" name="host" value="%s">', hs($aThread->host)); + $goto_next_ht .= sprintf('<input type="hidden" name="bbs" value="%s">', hs($aThread->bbs)); + $goto_next_ht .= sprintf('<input type="hidden" name="key" value="%s">', hs($aThread->key)); + $goto_next_ht .= sprintf('<input type="hidden" name="offline" value="%s">', 1); + $goto_next_ht .= sprintf('<input type="hidden" name="nt" value="%s">', $newtime); + $goto_next_ht .= P2View::getInputHiddenKTag(); } $st = "{$next_st}"; @@ -189,28 +189,31 @@ $next_page = $page + 1; $url .= '&page=' . $next_page; - $goto_select_ht .= sprintf('<input type="hidden" name="ls" value="%s">', hs($aThread->ls)); - $goto_select_ht .= sprintf('<input type="hidden" name="page" value="%s">', hs($next_page)); + $goto_next_ht .= sprintf('<input type="hidden" name="ls" value="%s">', hs($aThread->ls)); + $goto_next_ht .= sprintf('<input type="hidden" name="page" value="%s">', hs($next_page)); } else { $als = "{$aThread->resrange['to']}-{$after_rnum}n" . $read_navi_next_anchor; $url .= '&ls=' . $als; - $goto_select_ht .= sprintf('<input type="hidden" name="ls" value="%s">', hs($als)); + $goto_next_ht .= sprintf('<input type="hidden" name="ls" value="%s">', hs($als)); } $read_navi_next_ht = P2View::tagA($url, hs($st)); $read_navi_next_btm_ht = P2View::tagA($url, hs($st), array($_conf['accesskey_for_k'] => $_conf['k_accesskey']['next'])); + +} else { + $goto_next_ht = sprintf('<form style="margin-left: 1px; display:inline;" action="%s">', hs($_conf['read_php'])); } - -$goto_select_ht .= sprintf( +$goto_next_ht .= sprintf( '<input id="large_next" type="submit" value="%s"%s />', $read_navi_next_isInvisible ? hs($next_st) . $rnum_range : hs($st) . $rnum_range, $read_navi_next_isInvisible ? ' disabled' : '' ); -//$goto_select_ht .= '</form>'; +$goto_next_ht .= '</form>'; + //---------------------------------------------- // $read_footer_navi_new_ht ±«ðÇÞ V XÌ\¦ list($read_footer_navi_new_ht, $read_footer_navi_new_btm_ht) = _getReadFooterNaviNewHtmls($aThread, $shinchaku_st); @@ -228,8 +231,8 @@ EOP; } -// {{{ õ - +// {{{ XõN i¨I[o[C|bvAbvÌûðpµÄ¢éj +/* $read_navi_filter_ht = $read_navi_filter_btm_ht = P2View::tagA( UriUtil::buildQueryUri('read_filter_i.php', array( @@ -242,10 +245,10 @@ ), hs($find_st) ); - +*/ // }}} -// õÌÁÊÈ +// XõÌÁÊÈ if ($_filter_hits !== NULL) { require_once P2_LIB_DIR . '/read_filter_k.funcs.php'; resetReadNaviHeaderK(); @@ -373,10 +376,6 @@ // smartpopup.iPhone.js needs post_form.js's popUpFootbarFormIPhone(). ?><script type="text/javascript" src="iphone/js/smartpopup.iPhone.js?v=20070308"></script><?php - // tHgTCY conf_user_style.inc.php ð¢¶éÆPCàÏíéÌű±Å«·¦ - $STYLE['respop_color'] = "#FFFFFF"; // ("#000") X|bvAbvÌeLXgF - $STYLE['respop_bgcolor'] = ""; // ("#ffffcc") X|bvAbvÌwiF - $STYLE['respop_fontsize'] = '13px'; $aThread->showSmartPopUpMenuJs(); } @@ -466,7 +465,7 @@ * * @return string */ -function _csrangeform($default = '', &$aThread) +function _csrangeform($default = '', $aThread) { global $_conf; @@ -479,14 +478,10 @@ $required_params = array('host', 'bbs', 'key'); foreach ($required_params as $k) { - if (!empty($_REQUEST[$k])) { - $form .= sprintf( - '<input type="hidden" name="%s" value="%s">', - htmlspecialchars($k, ENT_QUOTES), htmlspecialchars($_REQUEST[$k], ENT_QUOTES) - ); - } else { - return ''; - } + $form .= sprintf( + '<input type="hidden" name="%s" value="%s">', + htmlspecialchars($k, ENT_QUOTES), htmlspecialchars($aThread->$k, ENT_QUOTES) + ); } $form .= '<input type="hidden" name="rescount" value="' . hs($aThread->rescount) . '">'; @@ -515,7 +510,7 @@ */ $form .= '</select>'; - $form .= '</form>'; + //$form .= '</form>'; return $form; } Modified: p2/trunk/iphone/sb_header_k.inc.php =================================================================== --- p2/trunk/iphone/sb_header_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iphone/sb_header_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -86,7 +86,7 @@ {$_conf['k_input_ht']} EOP; -// tB^õ +// Xõ if ($_conf['enable_exfilter'] == 2) { $selected_method = array('and' => '', 'or' => '', 'just' => '', 'regex' => '', 'similar' => ''); $selected_method[($sb_filter['method'])] = ' selected'; Modified: p2/trunk/iui/read.css =================================================================== --- p2/trunk/iui/read.css 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/iui/read.css 2011-06-27 09:39:25 UTC (rev 917) @@ -150,6 +150,10 @@ -webkit-border-image: url(toolButton.png) 0 5 0 5; border-width: 0 5px; } +/* 2011/06/27 iPhoneÅÍdisabledÅæªÈéªAAndroidÅÍÏíçÈ©Á½Ìž¦IÉwè·é */ +#large_next:disabled{ + opacity:0.4; +} .footform form { /*margin-bottom: 3px;*/ margin: 0px; @@ -371,7 +375,7 @@ } /* -tB^\¦ÆX«Ý|bvAbv +XõÆX«Ý|bvAbv http://pc11.2ch.net/test/read.cgi/iPhone/1225958706/202 */ body > .dialog_filter, body > .dialog_write { Modified: p2/trunk/js/smartpopup.js =================================================================== --- p2/trunk/js/smartpopup.js 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/js/smartpopup.js 2011-06-27 09:39:25 UTC (rev 917) @@ -61,13 +61,13 @@ } /* - //tB^O + // Xõ if (aThread.spmOption['enable_fl_on_spm']) { - document.writeln("<a href=\"javascript:void(0);\"" + makeOnPopUp(thread_id+"_fl", true) + ">tB^\¦</a>"); + document.writeln("<a href=\"javascript:void(0);\"" + makeOnPopUp(thread_id+"_fl", true) + ">Xõ</a>"); } */ - // ¯¶¼OðtB^\¦ + // ¯¶¼OðXõ document.writeln('<a id="' + thread_id + '_same_name" href="#" target="' + spmTarget + '">¯¶¼O</a>'); // tQÆ Modified: p2/trunk/lib/HostCheck.php =================================================================== --- p2/trunk/lib/HostCheck.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/HostCheck.php 2011-06-27 09:39:25 UTC (rev 917) @@ -449,21 +449,8 @@ $regHost = '/^proxy[0-9a-f]\d\d\.docomo\.ne\.jp$/'; - // @update 2010/12/08 + // @updated 2011/05/31 $bands = array( - '210.153.84.0/24', - '210.136.161.0/24', - '210.153.86.0/24', - '124.146.174.0/24', - '124.146.175.0/24', - '202.229.176.0/24', - '202.229.177.0/24', - '202.229.178.0/24', - '202.229.179.0/24', - '111.89.188.0/24', - '111.89.189.0/24', - '111.89.190.0/24', - '111.89.191.0/24', '210.153.84.0/24', '210.136.161.0/24', '210.153.86.0/24', @@ -472,18 +459,15 @@ '202.229.176.0/24', '202.229.177.0/24', '202.229.178.0/24', - '202.229.179.0/24', - '111.89.188.0/24', - '111.89.189.0/24', - '111.89.190.0/24', - '111.89.191.0/24', - '210.153.87.0/24' + + '210.153.87.0/24' // WEBANZXituEUj ); return HostCheck::isAddrInBand($addr, $bands, $regHost); } /** * IPÍ au? + * 2010/6/6 PCSVÌÑæàÊröJ³êÄ¢éªAPCSVÅÍHTTP_X_UP_SUBNOªM³êıȢ絢B * * @link http://www.au.kddi.com/ezfactory/tec/spec/ezsava_ip.html * @return boolean @@ -496,12 +480,18 @@ $addr = $_SERVER['REMOTE_ADDR']; } - //$regHost = '/^wb\d\dproxy\d\d\.ezweb\.ne\.jp$/'; + //$regHost = '/^wb\d+proxy\d\d\.ezweb\.ne\.jp$/'; $regHost = '/\.ezweb\.ne\.jp$/'; - // @updated 2010/12/08 + // @updated 2011/05/31 $bands = array( - '210.230.128.224/28', + // EZPCSV + '111.107.116.0/26', + '111.107.116.64/26', + '111.107.116.192/28', + + // EZ + '210.230.128.224/28', '121.111.227.160/27', '61.117.1.0/28', '219.108.158.0/27', @@ -543,6 +533,22 @@ '111.86.147.160/27', '111.86.147.192/27', '111.86.147.224/27' + + /* PCSV + '222.15.68.192/26', + '59.135.39.128/27', + '118.152.214.160/27', + '118.152.214.128/27', + '222.1.136.96/27', + '222.1.136.64/27', + '59.128.128.0/20', + '111.86.140.40/30', + '111.86.140.44/30', + '111.86.140.48/30', + '111.86.140.52/30', + '111.86.140.56/30', + '111.86.140.60/30', + */ ); return HostCheck::isAddrInBand($addr, $bands, $regHost); } @@ -598,11 +604,11 @@ // ml7ts005v11c.pcsitebrowser.ne.jp $regHost = '/\.(pcsitebrowser)\.ne\.jp$/'; - // 2010N416ú»Ý + // 2011/05/01 $bands = array( // PCTCguEU '123.108.237.224/27', - '202.253.96.0/28', + '202.253.96.0/27', ); return HostCheck::isAddrInBand($addr, $bands, $regHost); } @@ -624,40 +630,29 @@ //$regHost = '/\.panda-world\.ne\.jp$/'; // ö®\f[^ÅÍÈ¢ - // @updated 2010/10/31 + // @updated 2011/05/28 $bands = array( - '126.192.0.0/10', - '126.196.0.0/16', - '126.197.0.0/16', - '126.198.0.0/16', - '126.199.0.0/16', - '126.200.0.0/16', - '126.201.0.0/16', - '126.202.0.0/16', - '126.203.0.0/16', - '126.204.0.0/16', - '126.205.0.0/16', - '126.206.0.0/16', - '126.207.0.0/16', - '126.208.0.0/16', - '126.209.0.0/16', - '126.210.0.0/16', - '126.211.0.0/16', - '126.212.0.0/16', - '126.213.0.0/16', - '126.214.0.0/16', - '126.215.0.0/16', - '126.216.0.0/16', - '126.217.0.0/16', - '126.218.0.0/16', - '126.219.0.0/16', - '126.220.0.0/16', - '126.221.0.0/16', - '126.222.0.0/16', - '126.223.0.0/16', - '126.240.0.0/12', - '126.230.0.0/15', - '126.232.0.0/13' + '126.142.0.0/16', + '126.143.0.0/16', + '126.144.0.0/16', + '126.145.0.0/16', + '126.146.0.0/16', + '126.147.0.0/16', + '126.148.0.0/16', + '126.149.0.0/16', + '126.150.0.0/16', + '126.151.0.0/16', + '126.152.0.0/16', + '126.154.0.0/15', + '126.156.0.0/14', + '126.160.0.0/12', + '126.176.0.0/12', + '126.195.0.0/16', + '126.196.0.0/14', + '126.200.0.0/13', + '126.208.0.0/13', + '126.216.0.0/13', + '126.224.0.0/11' ); return HostCheck::isAddrInBand($addr, $bands, $regHost); } Modified: p2/trunk/lib/Login.php =================================================================== --- p2/trunk/lib/Login.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/Login.php 2011-06-27 09:39:25 UTC (rev 917) @@ -796,7 +796,7 @@ if (!is_null($ignore_cip)) { if ($ignore_cip) { - P2Util::setCookie('ignore_cip', '1', $time); + P2Util::setCookie('ignore_cip', '1', time() + 60*60*24*365); // ±±ÍúÀª·Äà\íÈ¢ $_COOKIE['ignore_cip'] = '1'; } else { P2Util::unsetCookie('ignore_cip'); @@ -908,8 +908,6 @@ */ function checkUserPwWithCid($cid) { - global $_conf; - if (is_null($this->user_u) || is_null($this->pass_x) || is_null($cid)) { return false; } Modified: p2/trunk/lib/P2Util.php =================================================================== --- p2/trunk/lib/P2Util.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/P2Util.php 2011-06-27 09:39:25 UTC (rev 917) @@ -289,20 +289,26 @@ * setcookie() ÅÍAauÅKvÈmax ageªÝè³êÈ¢ÌÅA±¿çðp·é * * @access public + * @params string $value * @return boolean */ function setCookie($key, $value = '', $expires = null, $path = '', $domain = null, $secure = false, $httponly = true) { + if (headers_sent()) { + return false; + } + if (is_null($domain)) { $domain = P2Util::getCookieDomain(); } - is_null($expires) and $expires = time() + 60 * 60 * 24 * 365; + $time = time(); - if (headers_sent()) { - return false; + if (is_null($expires)) { + $expires = $time + 60 * 60 * 24 * 365; + } elseif ($expires < $time) { + trigger_error(sprintf('$expires is too early (%s)', $expires), E_USER_WARNING); } - // Mac IEÍA®ìsÇðN±·çµ¢ÁÛ¢ÌÅAhttponlyÌÎÛ©çO·Bi»à»àÎàµÄ¢È¢j // MAC IE5.1 Mozilla/4.0 (compatible; MSIE 5.16; Mac_PowerPC) @@ -312,22 +318,23 @@ // setcookie($key, $value, $expires, $path, $domain, $secure = false, $httponly = true); /* - if (is_array($name)) { - list($k, $v) = each($name); - $name = $k . '[' . $v . ']'; + if (is_array($value)) { + list($k, $v) = each($value); + $keys["$key[$k]"] = $v; } */ - if ($expires) { - $maxage = $expires - time(); + $maxage = null; + if ($expires > $time) { + $maxage = $expires - $time; } header( 'Set-Cookie: '. P2Util::encodeCookieName($key) . '=' . rawurlencode($value) - . (empty($domain) ? '' : '; Domain=' . $domain) - . (empty($expires) ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s', $expires) . ' GMT') - . (empty($maxage) ? '' : '; Max-Age=' . $maxage) - . (empty($path) ? '' : '; Path=' . $path) - . (!$secure ? '' : '; Secure') + . (!$domain ? '' : '; Domain=' . $domain) + . (!$expires ? '' : '; expires=' . gmdate('D, d-M-Y H:i:s', $expires) . ' GMT') + . (!$maxage ? '' : '; Max-Age=' . $maxage) + . (!$path ? '' : '; Path=' . $path) + . (!$secure ? '' : '; Secure') . (!$httponly ? '' : '; HttpOnly'), $replace = false ); @@ -336,7 +343,7 @@ } /** - * NbL[ðÁ·éBÏ $_COOKIE àB + * NbL[ðÁ·éBÏ $_COOKIE à unset() ·éB * * @access public * @param string $key key, k1[k2] @@ -365,7 +372,7 @@ //var_dump($cakey); } - // ÎÛCookielªzñÅ êÎÄAðs¤ + // ÎÛ$_COOKIElªzñÅ êÎÄAðs¤ $cArray = null; if ($cakey) { eval("isset(\$_COOKIE{$cakey}) && is_array(\$_COOKIE{$cakey}) and \$cArray = \$_COOKIE{$cakey};"); @@ -848,7 +855,7 @@ /** * fBNgÉ«Ý ÀªÈ¯êÎÓð\¦Zbg·é * - * @access public + * @access private * @return void P2Util::pushInfoHtml() */ function checkDirWritable($aDir) @@ -893,12 +900,15 @@ */ function checkDirsWritable($dirs) { - $checked_dirs = array(); + static $checked_dirs_ = array(); + foreach ($dirs as $dir) { - if (!in_array($dir, $checked_dirs)) { - P2Util::checkDirWritable($dir); - $checked_dirs[] = $dir; + // `FbNÏÝÍXLbv·é + if (array_key_exists($dir, $checked_dirs_)) { + continue; } + P2Util::checkDirWritable($dir); + $checked_dirs_[$dir] = true; } } Modified: p2/trunk/lib/ShowThreadK.php =================================================================== --- p2/trunk/lib/ShowThreadK.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/ShowThreadK.php 2011-06-27 09:39:25 UTC (rev 917) @@ -152,7 +152,7 @@ $date_id = $resar[2]; $msg = $resar[3]; - // ftHg̼OÍANGE Ú[ñÆtB^õÌÎÛOÆ·é + // ftHg̼OÍANGE Ú[ñÆXõÌÎÛOÆ·é $nameForAborn = $name; if (strlen($this->BBS_NONAME_NAME) && $this->BBS_NONAME_NAME == $name) { if (!$_conf['k_bbs_noname_name']) { Modified: p2/trunk/lib/ShowThreadPc.php =================================================================== --- p2/trunk/lib/ShowThreadPc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/ShowThreadPc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -118,7 +118,7 @@ $date_id = $resar[2]; $msg = $resar[3]; - // ftHg̼OÍANGE Ú[ñÆtB^õÌÎÛOÆ·é + // ftHg̼OÍANGE Ú[ñÆXõÌÎÛOÆ·é $nameForAborn = $name; if (strlen($this->BBS_NONAME_NAME) && $this->BBS_NONAME_NAME == $name) { $nameForAborn = ''; Modified: p2/trunk/lib/index_print_k.inc.php =================================================================== --- p2/trunk/lib/index_print_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/index_print_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -32,6 +32,11 @@ 'user' => $_login->user_u ) ); + $p2_login_url_iphone = UriUtil::buildQueryUri($p2_login_url, + array( + UA::getQueryKey() => UA::getIPhoneGroupQuery() + ) + ); // OñÌOCîñ if ($_conf['login_log_rec'] && $_conf['last_login_log_show']) { @@ -113,7 +118,7 @@ <?php echo $search_form_htm; ?> <?php echo $hr; ?> -<form id="urlform" method="GET" action="<?php eh($_conf['read_php']); ?>" target="read"> +<form id="urlform" method="GET" action="<?php eh($_conf['read_php']); ?>"> 2ch̽ÚURLð¼Úwè <input id="url_text" type="text" value="" name="url"> <?php echo P2View::getInputHiddenKTag(); ?> @@ -129,6 +134,8 @@ <a href="<?php eh($p2_login_url_k); ?>"><?php eh($p2_login_url_k); ?></a><br> p2Û¸Þ²ÝpURLiPCj<br> <a href="<?php eh($p2_login_url_pc); ?>"><?php eh($p2_login_url_pc); ?></a> +<br>p2Û¸Þ²ÝpURLiiPhonej<br> +<a href="<?php eh($p2_login_url_iphone); ?>"><?php eh($p2_login_url_iphone); ?></a> </div> <?php echo $hr; ?> Modified: p2/trunk/lib/read_header.inc.php =================================================================== --- p2/trunk/lib/read_header.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/read_header.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -583,7 +583,7 @@ <option value="off"{$selected_match['off']}>ÜÜÈ¢</option> </select> Xð - <input type="submit" name="submit_filter" value="tB^\¦"> + <input type="submit" name="submit_filter" value="õ"> </form>\n EOP; } Modified: p2/trunk/lib/sb_footer.inc.php =================================================================== --- p2/trunk/lib/sb_footer.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/sb_footer.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -64,9 +64,9 @@ // if (!$aThreadList->spmode || $aThreadList->spmode=="fav" || $aThreadList->spmode=="recent" || $aThreadList->spmode=="res_hist") { $onClick_ht = <<<EOP -var url_v=document.forms["urlform"].elements["url_text"].value; -if (url_v=="" || url_v=="{$ini_url_text}") { - alert("©½¢XbhÌURLðü͵ĺ³¢B áFhttp://pc.2ch.net/test/read.cgi/mac/1034199997/"); +var url_v = document.forms['urlform'].elements['url_text'].value; +if (url_v == '' || url_v == '{$ini_url_text}') { + alert('©½¢XbhÌURLðü͵ĺ³¢B áFhttp://pc.2ch.net/test/read.cgi/mac/1034199997/'); return false; } EOP; @@ -75,7 +75,7 @@ <form id="urlform" method="GET" action="{$_conf['read_php']}" target="read"> 2chÌXURLð¼Úwè <input id="url_text" type="text" value="{$ini_url_text}" name="url" size="62" onFocus="this.select()"> - <input type="submit" name="btnG" value="\¦" onClick='{$onClick_ht}'> + <input type="submit" name="btnG" value="\¦" onClick="{$onClick_ht}"> </form>\n EOP; Modified: p2/trunk/lib/sb_header.inc.php =================================================================== --- p2/trunk/lib/sb_header.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/sb_header.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -96,7 +96,7 @@ } // }}} -// {{{ tB^õ tH[HTMLðZbg +// {{{ Xõ tH[HTMLðZbg if ($_conf['enable_exfilter'] == 2) { Modified: p2/trunk/lib/sb_header_k.inc.php =================================================================== --- p2/trunk/lib/sb_header_k.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/sb_header_k.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -84,7 +84,7 @@ {$_conf['k_input_ht']} EOP; -// tB^õtH[HTML +// XõtH[HTML if ($_conf['enable_exfilter'] == 2) { $selected_method = array('and' => '', 'or' => '', 'just' => '', 'regex' => '', 'similar' => ''); $selected_method[($sb_filter['method'])] = ' selected'; Modified: p2/trunk/lib/sb_print.inc.php =================================================================== --- p2/trunk/lib/sb_print.inc.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/sb_print.inc.php 2011-06-27 09:39:25 UTC (rev 917) @@ -145,10 +145,9 @@ //===================================================== //spmodeª êÎNG[ÇÁ + $spmode_q = ''; if ($aThreadList->spmode) { $spmode_q = "&spmode={$aThreadList->spmode}"; - } else { - $spmode_q = ''; } $sid_q = (defined('SID') && strlen(SID)) ? '&' . hs(SID) : ''; @@ -201,7 +200,7 @@ $onclick_at = " onClick=\"return !deleLog('host={$aThread->host}{$bbs_q}{$key_q}{$sid_q}', {$STYLE['info_pop_size']}, 'subject', this);\""; $title_at = ' title="NbN·éÆOí"'; - $unum_ht_c = "<a class=\"un\" href=\"{$_conf['subject_php']}?host={$aThread->host}{$bbs_q}{$key_q}{$spmode_q}&dele=1\" target=\"_self\"{$onclick_at}{$title_at}>{$aThread->unum}</a>"; + $unum_ht_c = "<a class=\"un\" href=\"{$_conf['subject_php']}?host={$aThread->host}{$bbs_q}{$key_q}{$spmode_q}&norefresh=1&dele=1\" target=\"_self\"{$onclick_at}{$title_at}>{$aThread->unum}</a>"; $anum = $aThread->rescount - $aThread->unum + 1 - $_conf['respointer']; if ($anum > $aThread->rescount) { @@ -227,7 +226,7 @@ array_merge( $thread_qs, array( - 'spmode' => $aThreadList->spmode, 'dele' => '1', + 'spmode' => $aThreadList->spmode, 'norefresh' => '1', 'dele' => '1', UA::getQueryKey() => UA::getQueryValue() ) ) @@ -248,9 +247,15 @@ // subject.txtÉÈ¢ if (!$aThread->isonline) { // JavaScriptÅÌmF_CAO è - $unum_ht_c = "<a class=\"un_n\" href=\"{$_conf['subject_php']}?host={$aThread->host}{$bbs_q}{$key_q}{$spmode_q}&dele=true\" target=\"_self\" onClick=\"if (!window.confirm('OðíµÜ·©H')) {return false;} return !deleLog('host={$aThread->host}{$bbs_q}{$key_q}{$sid_q}', {$STYLE['info_pop_size']}, 'subject', this)\"{$title_at}>-</a>"; + $unum_ht_c = "<a class=\"un_n\" href=\"{$_conf['subject_php']}?host={$aThread->host}{$bbs_q}{$key_q}{$spmode_q}&norefresh=1&dele=1\" target=\"_self\" onClick=\"if (!window.confirm('OðíµÜ·©H')) {return false;} return !deleLog('host={$aThread->host}{$bbs_q}{$key_q}{$sid_q}', {$STYLE['info_pop_size']}, 'subject', this)\"{$title_at}>-</a>"; } - + + // ù¾óÔÅÈ¢ê + } else { + if ($aThreadList->spmode) { + $onclick_at = " onClick=\"return !deleLog('host={$aThread->host}{$bbs_q}{$key_q}{$sid_q}', {$STYLE['info_pop_size']}, 'subject', this);\""; + $unum_ht_c = "<a class=\"un_n\" href=\"{$_conf['subject_php']}?host={$aThread->host}{$bbs_q}{$key_q}{$spmode_q}&norefresh=1&dele=1\" target=\"_self\"{$onclick_at} title=\"OȵBNbN·éÆL^í\">*</a>"; + } } $unum_ht = "<td{$class_tu}>" . $unum_ht_c . "</td>"; Modified: p2/trunk/lib/sb_print_k.func.php =================================================================== --- p2/trunk/lib/sb_print_k.func.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/lib/sb_print_k.func.php 2011-06-27 09:39:25 UTC (rev 917) @@ -318,6 +318,10 @@ ), $sid_qs) ); $setFavUri_hs = hs($setFavUri); + + $ttitle_en = base64_encode($aThread->ttitle); + $ttitle_urlen = rawurlencode($ttitle_en); + $ttitle_en_q = "&ttitle_en=" . $ttitle_urlen; } //==================================================================================== Modified: p2/trunk/read.php =================================================================== --- p2/trunk/read.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/read.php 2011-06-27 09:39:25 UTC (rev 917) @@ -84,7 +84,7 @@ if (isset($_POST['method'])) { $GLOBALS['res_filter']['method'] = $_POST['method']; } if (isset($_GET['method'])) { $GLOBALS['res_filter']['method'] = $_GET['method']; } -// $GLOBALS['word'] ÈÇÌõêÌæèµ¢ªÇ³³ÈÌÍAÅ«êήµ½¢Æ±ë... +// $GLOBALS['word'] ÈÇÌõêÌæèµ¢ÍAÅ«êήµ½¢Æ±ë... $GLOBALS['word'] = geti($_POST['word'], geti($_GET['word'])); if (!strlen($GLOBALS['word']) && geti($_GET['popup_filter'])) { $GLOBALS['word'] = _getFilterWordResNum( Modified: p2/trunk/read_filter.php =================================================================== --- p2/trunk/read_filter.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/read_filter.php 2011-06-27 09:39:25 UTC (rev 917) @@ -1,6 +1,9 @@ <?php +// 2010/08/05 p~B +// ±ÌXNvgÍgí¸ÉAread.phpÅ»ÌÜÜ·éæ¤Éµ½Bøpopup_filterŻʷéB + + // p2 - Xbh\¦bp[ -// 2010/08/05 ±ÌXNvgÍgí¸ÉAread.phpÅ»ÌÜÜ·éæ¤Éµ½Bpopup_filterÅ»ÊB //define('P2_READ_FILTER_WRAPPER', 1); // ±ÌèÍgíÈ¢ Modified: p2/trunk/read_filter_i.php =================================================================== --- p2/trunk/read_filter_i.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/read_filter_i.php 2011-06-27 09:39:25 UTC (rev 917) @@ -1,11 +1,11 @@ <?php -/* vim: set fileencoding=cp932 ai et ts=4 sw=4 sts=0 fdm=marker: */ -/* mi: charset=Shift_JIS */ +// 2010/08/05 p~B +// ±ÌXNvgÍgí¸ÉAread.phpÅ»ÌÜÜ·éæ¤Éµ½Bøpopup_filterÅ»ÊB +// üÍtH[æÊÍAI[o[C|bvAbvÌûðpµÄ¢éB + // p2 - gÑÅXtB^O -// 2010/08/05 ±ÌXNvgÍgí¸ÉAread.phpÅ»ÌÜÜ·éæ¤Éµ½Bpopup_filterÅ»ÊB - require_once './conf/conf.inc.php'; require_once P2_LIB_DIR . '/Thread.php'; require_once P2_LIB_DIR . '/ThreadRead.php'; Modified: p2/trunk/read_filter_k.php =================================================================== --- p2/trunk/read_filter_k.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/read_filter_k.php 2011-06-27 09:39:25 UTC (rev 917) @@ -1,8 +1,7 @@ <?php -/* vim: set fileencoding=cp932 ai et ts=4 sw=4 sts=0 fdm=marker: */ /* mi: charset=Shift_JIS */ -// p2 - gÑÅXtB^O +// p2 - gÑp Xàõ CvbgtH[æÊ require_once './conf/conf.inc.php'; Modified: p2/trunk/setting.php =================================================================== --- p2/trunk/setting.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/setting.php 2011-06-27 09:39:25 UTC (rev 917) @@ -44,6 +44,11 @@ 'user' => $_login->user_u ) ); +$p2_login_url_i = UriUtil::buildQueryUri($p2_login_url, + array( + UA::getQueryKey() => UA::getIPhoneGroupQuery() + ) +); $body_onload = ''; if (UA::isPC()) { @@ -103,10 +108,10 @@ if (UA::isIPhoneGroup()) { ?> <p> -<!-- p2OCpURLigÑj<br> -<a href="<?php eh($p2_login_url_k); ?>"><?php eh($p2_login_url_k); ?></a><br> --> -p2OCpURLiPCj<br> -<a href="<?php eh($p2_login_url_pc); ?>"><?php eh($p2_login_url_pc); ?></a> +rep2OCpURL<br> +PC <a href="<?php eh($p2_login_url_pc); ?>"><?php eh($p2_login_url_pc); ?></a><br> +gÑ <a href="<?php eh($p2_login_url_k); ?>"><?php eh($p2_login_url_k); ?></a><br> +iPhone <a href="<?php eh($p2_login_url_i); ?>"><?php eh($p2_login_url_i); ?></a> </p> <?php } ?> Modified: p2/trunk/title.php =================================================================== --- p2/trunk/title.php 2011-03-28 23:15:36 UTC (rev 916) +++ p2/trunk/title.php 2011-06-27 09:39:25 UTC (rev 917) @@ -12,23 +12,9 @@ $p2web_url_r = P2Util::throughIme($_conf['p2web_url']); -// {{{ f[^Û¶fBNgÌp[~bVÌÓð«N·é +// f[^Û¶fBNgÌp[~bVÌÓð«N·éiP2Util::printInfoHtml()j +P2Util::checkDirsWritable(array($_conf['pref_dir'], $_conf['dat_dir'], $_conf['idx_dir'])); -P2Util::checkDirWritable($_conf['dat_dir']); -$checked_dirs[] = $_conf['dat_dir']; // `FbNÏÝÌfBNgði[·ézñÉ - -// ܾ`FbNµÄ¢È¯êÎ -if (!in_array($_conf['idx_dir'], $checked_dirs)) { - P2Util::checkDirWritable($_conf['idx_dir']); - $checked_dirs[] = $_conf['idx_dir']; -} -if (!in_array($_conf['pref_dir'], $checked_dirs)) { - P2Util::checkDirWritable($_conf['pref_dir']); - $checked_dirs[] = $_conf['pref_dir']; -} - -// }}} - //========================================================= // O //========================================================= @@ -45,17 +31,16 @@ // vgÝè //========================================================= // ÅVÅ`FbN +$newversion_found_html = ''; if ($_conf['updatan_haahaa']) { $newversion_found_html = _checkUpdatan(); -} else { - $newversion_found_html = ''; } // OC[Uîñ -$htm['auth_user'] = "<p>OC[U: {$_login->user_u} - " . date("Y/m/d (D) G:i") . '</p>' . "\n"; +$htm['auth_user'] = "<p>OC[U: {$_login->user_u} - " . date('Y/m/d (D) G:i') . '</p>' . "\n"; -// igÑjOCpURL -$ktai_uri_atag = P2View::tagA( +// gÑpOCURL +$p2_login_uri_k_atag = P2View::tagA( UriUtil::buildQueryUri(rtrim(dirname(UriUtil::getMyUri()), '/') . '/', array( 'user' => $_login->user_u, @@ -66,8 +51,8 @@ array('target' => '_blank') ); -// iPhonepURL -$iphone_uri_atag = P2View::tagA( +// iPhonepOCURL +$p2_login_uri_iphone_atag = P2View::tagA( UriUtil::buildQueryUri(rtrim(dirname(UriUtil::getMyUri()), '/') . '/', array( UA::getQueryKey() => UA::getIPhoneGroupQuery() @@ -77,6 +62,15 @@ array('target' => '_blank') ); +// PCpOCURL +$p2_login_uri_pc_atag = P2View::tagA( + UriUtil::buildQueryUri(rtrim(dirname(UriUtil::getMyUri()), '/') . '/', + array( + UA::getQueryKey() => UA::getPCQuery() + ) + ) +); + // OñÌOCîñ if ($_conf['login_log_rec'] && $_conf['last_login_log_show']) { if (false !== $log = P2Util::getLastAccessLog($_conf['login_log_file'])) { @@ -137,8 +131,10 @@ <?php echo $htm['auth_user']; ?> <p> - gÑOCpURL <?php echo $ktai_uri_atag; ?><br> - iPhoneOCpURL <?php echo $iphone_uri_atag; ?> + rep2OCpURL<br> + PC <?php echo $p2_login_uri_pc_atag; ?><br> + gÑ <?php echo $p2_login_uri_k_atag; ?><br> + iPhone <?php echo $p2_login_uri_iphone_atag; ?> </p> <?php echo $htm['last_login']; ?> </div>