svnno****@sourc*****
svnno****@sourc*****
2013年 6月 24日 (月) 22:57:48 JST
Revision: 962 http://sourceforge.jp/projects/p2-php/scm/svn/commits/962 Author: akid Date: 2013-06-24 22:57:47 +0900 (Mon, 24 Jun 2013) Log Message: ----------- p2/ for version 1.8.91 Modified Paths: -------------- p2/trunk/conf/conf_system.inc.php p2/trunk/conf/conf_user_def.inc.php p2/trunk/doc/ChangeLog.txt p2/trunk/edit_conf_user.php p2/trunk/iphone/js/iphone.js p2/trunk/iphone/read_header_k.inc.php p2/trunk/iui/read.css p2/trunk/iui/smartphone.css p2/trunk/js/post_form.js p2/trunk/lib/edit_conf_user.funcs.php p2/trunk/lib/getPostFormHtml.func.php p2/trunk/lib/getPostFormIPhoneHtml.func.php p2/trunk/lib/getPostFormPopupIPhoneHtml.func.php p2/trunk/lib/read_header.inc.php p2/trunk/lib/sb_print_k.func.php p2/trunk/lib/setFav.func.php p2/trunk/post.php p2/trunk/post_form.php p2/trunk/post_form_i.php -------------- next part -------------- Modified: p2/trunk/conf/conf_system.inc.php =================================================================== --- p2/trunk/conf/conf_system.inc.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/conf/conf_system.inc.php 2013-06-24 13:57:47 UTC (rev 962) @@ -3,7 +3,7 @@ // \x82\xB1\x82̃t\x83@\x83C\x83\x8B\x82́A\x93\xC1\x82ɗ\x9D\x97R\x82̖\xB3\x82\xA2\x8C\xC0\x82\xE8\x95ύX\x82\xB5\x82Ȃ\xA2\x82ʼn\xBA\x82\xB3\x82\xA2\x81B // include from conf.inc.php -$_conf['p2version'] = '1.8.90'; // rep2\x82̃o\x81[\x83W\x83\x87\x83\x93 +$_conf['p2version'] = '1.8.91'; // rep2\x82̃o\x81[\x83W\x83\x87\x83\x93 $_conf['p2name'] = 'rep2'; // rep2\x82̖\xBC\x91O\x81B Modified: p2/trunk/conf/conf_user_def.inc.php =================================================================== --- p2/trunk/conf/conf_user_def.inc.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/conf/conf_user_def.inc.php 2013-06-24 13:57:47 UTC (rev 962) @@ -303,7 +303,7 @@ $conf_user_rules['k_post_msg_rows'] = array('emptyToDef', 'notIntExceptMinusToDef'); // \x83X\x83}\x83z\x89{\x97\x97\x8E\x9E\x81A\x8F\x91\x82\xAB\x8D\x9E\x82݃t\x83H\x81[\x83\x80\x82̍s\x90\x94 -$conf_user_def['i_post_msg_rows'] = '7'; // ('7') +$conf_user_def['i_post_msg_rows'] = '6'; // ('6') $conf_user_rules['i_post_msg_rows'] = array('emptyToDef', 'notIntExceptMinusToDef'); // }}} @@ -354,10 +354,6 @@ '' => '\x92\xBC\x90\xDA', 'p2' => 'p2 ime(\x8E\xA9\x93\xAE\x93]\x91\x97)', 'p2m' => 'p2 ime(\x8E蓮\x93]\x91\x97)', 'p2pm' => 'p2 ime(p\x82̂ݎ蓮\x93]\x91\x97)', '2ch' => '2ch ime' ); -// \x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L\x82ɎQ\x89\xC1\x81i\x82\xB7\x82\xE9, \x82\xB5\x82Ȃ\xA2\x81j -$conf_user_def['join_favrank'] = 0; // (0) -$conf_user_sel['join_favrank'] = array('1' => '\x82\xB7\x82\xE9', '0' => '\x82\xB5\x82Ȃ\xA2'); - // \x94\x81\x83j\x83\x85\x81[\x82ɐV\x92\x85\x90\x94\x82\xF0\x95\\x8E\xA6\x81i\x82\xB7\x82\xE9, \x82\xB5\x82Ȃ\xA2, \x82\xA8\x8BC\x82ɔ̂݁j $conf_user_def['enable_menu_new'] = 1; // (1) $conf_user_sel['enable_menu_new'] = array('1' => '\x82\xB7\x82\xE9', '0' => '\x82\xB5\x82Ȃ\xA2', '2' => '\x82\xA8\x8BC\x82ɔ̂\xDD'); Modified: p2/trunk/doc/ChangeLog.txt =================================================================== --- p2/trunk/doc/ChangeLog.txt 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/doc/ChangeLog.txt 2013-06-24 13:57:47 UTC (rev 962) @@ -1,4 +1,10 @@ 2013/06/14 + * rep2 version 1.8.91 + + [\x8FC\x90\xB3] \x8F\x91\x82\xAB\x8D\x9E\x82\xE3\x82ɁA\x91O\x89\xAB\x8D\x9E\x82\x81\x83b\x83Z\x81[\x83W\x82\xAA\x8F\x91\x82\xAB\x8D\x9E\x82ݗ\x93\x82ɂ\xBB\x82̂܂c\x82\xC1\x82Ă\xB5\x82܂\xA4\x82\xB1\x82Ƃ\xAA\x82\xA0\x82\xC1\x82\xBD\x82̂\xF0\x8FC\x90\xB3\x82\xB5\x82\xBD\x81B + \x91\xBC\x81A\x94\x{1D2C90}\xAE\x81B + +2013/06/14 * rep2 version 1.8.90 [\x8FC\x90\xB3] PHP\x82̃V\x83\x87\x81[\x83g\x83^\x83O\x82\xAA\x96\xB3\x8C\xF8\x82Ȋ\xAB\x82ŁA\x93\xAE\x8D\xEC\x82ɃG\x83\x89\x81[\x82\xAA\x82\xA0\x82\xC1\x82\xBD\x82̂\xF0\x8FC\x90\xB3\x82\xB5\x82\xBD\x81B Modified: p2/trunk/edit_conf_user.php =================================================================== --- p2/trunk/edit_conf_user.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/edit_conf_user.php 2013-06-24 13:57:47 UTC (rev 962) @@ -322,7 +322,6 @@ echo getEditConfHtml('through_ime_k', '\x8Cg\x91щ{\x97\x97\x8E\x9E\x81A\x8AO\x95\x94URL\x83N\x83b\x83V\x83\x87\x83\x93\x82𗘗p\x81i\x81\xA6\x97\x98\x97p\x82𐄏\xA7\x81j');//.\x81i\x81\xA6Cookie\x96\xB3\x8C\xF8\x8E\x9E\x82́A\x83Z\x83L\x83\x85\x83\x8A\x83e\x83B\x8F\xE3\x82̗\x9D\x97R\x82\xA9\x82炱\x82̐ݒ\xE8\x92l\x82Ɋւ\xED\x82炸\x83N\x83b\x83V\x83\x87\x83\x93\x82\xAA\x97\x98\x97p\x82\xB3\x82\xEA\x82܂\xB7\x81j'); echo getEditConfHtml('k_jig_host', '\x8Cg\x91щ{\x97\x97\x8E\x9E\x81A\x8AO\x95\x94URL\x83N\x83b\x83V\x83\x87\x83\x93\x82\xC5jig\x83u\x83\x89\x83E\x83UWEB\x82𗘗p\x82\xB7\x82\xE9<br> (\x83z\x83X\x83g\x96\xBC\x81B\x81uhttp://<font color="red">XXXXXX</font>.jig.jp/fweb/?_jig_=\x81v\x82\xCC <font color="red">XXXXXX</font> \x95\x94\x95\xAA)'); -//echo getEditConfHtml('join_favrank', '<a href="http://akid.s17.xrea.com/favrank/favrank.html" target="_blank">\x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L</a>\x82ɎQ\x89\xC1'); echo getEditConfHtml('enable_menu_new', '\x94\x81\x83j\x83\x85\x81[\x82ɐV\x92\x85\x90\x94\x82\xF0\x95\\x8E\xA6'); echo getEditConfHtml('menu_refresh_time', '\x94\x81\x83j\x83\x85\x81[\x95\x94\x95\xAA\x82̎\xA9\x93\xAE\x8DX\x90V\x8AԊu (\x95\xAA\x8Ew\x92\xE8\x81B0\x82Ȃ玩\x93\xAE\x8DX\x90V\x82\xB5\x82Ȃ\xA2\x81B)'); echo getEditConfHtml('mobile.match_color', '\x8Cg\x91щ{\x97\x97\x8E\x9E\x81A\x83t\x83B\x83\x8B\x83^\x83\x8A\x83\x93\x83O\x82Ń}\x83b\x83`\x82\xB5\x82\xBD\x83L\x81[\x83\x8F\x81[\x83h\x82̐F'); @@ -471,9 +470,9 @@ $excepts = array(); - // \x81i\x95\\x8E\xA6\x82\xB5\x82Ȃ\xA2\x8Fꍇ\x82\xE0hidden\x92l\x82͕K\x97v\x81j + // \x81i\x95\\x8E\xA6\x82\xB5\x82Ȃ\xA2\x8Fꍇ\x82\xE0\x81A\x90ݒ\xE8\x83f\x81[\x83^\x82\xF0\x88ێ\x9D\x82\xB7\x82邽\x82߂\xC9hidden\x92l\x82͕K\x97v\x81j - // \x83X\x83}\x83z\x81A\x8Cg\x91тł͕ҏW\x95\\x8E\xA6\x82\xB5\x82Ȃ\xA2\x8D\x80\x96\xDA + // \x83X\x83}\x83z\x82ƌg\x91тŕҏW\x95\\x8E\xA6\x82\xB5\x82Ȃ\xA2\x8D\x80\x96\xDA if (UA::isIPhoneGroup() || UA::isK()) { $excepts = array_merge($excepts, array( 'sb_colored_newthreti', Modified: p2/trunk/iphone/js/iphone.js =================================================================== --- p2/trunk/iphone/js/iphone.js 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/iphone/js/iphone.js 2013-06-24 13:57:47 UTC (rev 962) @@ -258,8 +258,9 @@ // \x8F\x91\x82\xAB\x8D\x9E\x82݃t\x83H\x81[\x83\x80\x82Ȃ\xE7\x89\xE6\x96ʂ\xF0\x83X\x83N\x83\x8D\x81[\x83\x8B if (arrayIdx == 1) { - var writeFormObj = document.getElementById('writeForm'); - scrollBy(0, writeFormObj.clientHeight); + //var writeFormObj = document.getElementById('writeForm'); + //scrollBy(0, writeFormObj.clientHeight); + anchorJump('writeForm'); } return true; Modified: p2/trunk/iphone/read_header_k.inc.php =================================================================== --- p2/trunk/iphone/read_header_k.inc.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/iphone/read_header_k.inc.php 2013-06-24 13:57:47 UTC (rev 962) @@ -244,7 +244,7 @@ <script type="text/javascript" src="js/basic.js?2012"></script> <script type="text/javascript" src="iphone/js/respopup.iPhone.js?v=20090429"></script> <script type="text/javascript" src="iphone/js/setfavjs.js?v=20090428"></script> - <script type="text/javascript" src="js/post_form.js?v=20130609"></script> + <script type="text/javascript" src="js/post_form.js?v=20130624"></script> <script type="text/javascript" src="js/delelog.js?v=20130611"></script> <script type="text/javascript" src="iphone/js/iphone.js?2013060918"></script> <script type="text/javascript"> Modified: p2/trunk/iui/read.css =================================================================== --- p2/trunk/iui/read.css 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/iui/read.css 2013-06-24 13:57:47 UTC (rev 962) @@ -201,7 +201,7 @@ } /* \x83\x8C\x83X\x94ԍ\x86 */ -span.trnum {margin-right:2px; +span.trnum {margin-right:2px; margin-left:1px; color: #333; font-size:16px; } Modified: p2/trunk/iui/smartphone.css =================================================================== --- p2/trunk/iui/smartphone.css 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/iui/smartphone.css 2013-06-24 13:57:47 UTC (rev 962) @@ -236,8 +236,8 @@ .footbar > ul > li.build:hover {background-position: -422px -50px;} /* \x90V\x92\x85\x82܂Ƃߓǂ\xDD */ -.footbar > ul > li.matome {background-position: -474px 0;} -.footbar > ul > li.matome:hover {background-position: -474px -50px;} +.footbar > ul > li.matome {background-position: -475px 0;} +.footbar > ul > li.matome:hover {background-position: -475px -50px;} /* \x83t\x83b\x83^\x83c\x81[\x83\x8B \x82\xBB\x82̑\xBC\x82̃\x81\x83j\x83\x85\x81[\x83|\x83b\x83v\x83A\x83b\x83v */ #footbarEtc { Modified: p2/trunk/js/post_form.js =================================================================== --- p2/trunk/js/post_form.js 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/js/post_form.js 2013-06-24 13:57:47 UTC (rev 962) @@ -2,7 +2,7 @@ // \x83N\x83b\x83L\x81[\x82\xA9\x82珑\x82\xAB\x82\xA9\x82\xAF\x82̃t\x83H\x81[\x83\x80\x93\xE0\x97e\x82\x88\x82\xB7\x82\xE9 // @return void -function hukkatuPostForm(host, bbs, key) { +function hukkatuPostFormByCookie(host, bbs, key) { var chost = getCookie('post_host'); var cbbs = getCookie('post_bbs'); var ckey = getCookie('post_key'); @@ -34,7 +34,7 @@ } // @return void -function setCookie(cn, val, sec) { +function _setCookie(cn, val, sec) { // \x83N\x83b\x83L\x81[\x82̗L\x8C\xF8\x8E\x9E\x8A\xD4 if (sec == undefined) { @@ -128,10 +128,10 @@ if (!data['message']) { return null } - setCookie('post_msg', data['message']); - setCookie('post_host', data['host']); - setCookie('post_bbs', data['bbs']); - setCookie('post_key', data['key']); + _setCookie('post_msg', data['message']); + _setCookie('post_host', data['host']); + _setCookie('post_bbs', data['bbs']); + _setCookie('post_key', data['key']); //blinkStatusPostForm('save cokkie'); return true; } Modified: p2/trunk/lib/edit_conf_user.funcs.php =================================================================== --- p2/trunk/lib/edit_conf_user.funcs.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/edit_conf_user.funcs.php 2013-06-24 13:57:47 UTC (rev 962) @@ -1,11 +1,11 @@ <?php //============================================================= -// edit_conf_user.php, edit_conf_user_i.php \x82ł̂ݗ\x98\x97p\x82\xB7\x82\xE9\x8A\x94 +// edit_conf_user.php \x82ŗ\x98\x97p\x82\xB5\x82Ă\xA2\x82\xE9\x8A\x94 //============================================================= /** * \x83t\x83H\x83\x8B\x83g\x92l $conf_user_def \x82ƕύX\x92l $_POST['conf_edit'] \x82̗\xBC\x95\x{30AA476}\x8D݂\xB5\x82Ă\xA2\x82āA - * \x83f\x83t\x83H\x83\x8B\x83g\x92l\x82ƕύX\x92l\x82\xAA\x88قȂ\xE9\x8Fꍇ\x82̂ݐݒ\xE8\x95ۑ\xB6\x91ΏۂƂȂ\xE9\x81i\x82\xBB\x82̑\xBC\x82̃f\x81[\x83^\x82͕ۑ\xB6\x82\xB3\x82ꂸ\x81A\x94j\x8A\xFC\x82\xB3\x82\xEA\x82\xE9\x81j + * \x83f\x83t\x83H\x83\x8B\x83g\x92l\x82ƕύX\x92l\x82\xAA\x88قȂ\xE9\x8Fꍇ\x82̂ݐݒ\xE8\x95ۑ\xB6\x91ΏۂƂȂ\xE9\x81i\x82\xBB\x82̑\xBC\x82̃f\x81[\x83^\x82͕ۑ\xB6\x82\xB3\x82ꂸ\x81A\x94j\x8A\xFC\x82\xB3\x82\xEA\x82邱\x82Ƃɒ\x8D\x88Ӂj * * @return array */ Modified: p2/trunk/lib/getPostFormHtml.func.php =================================================================== --- p2/trunk/lib/getPostFormHtml.func.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/getPostFormHtml.func.php 2013-06-24 13:57:47 UTC (rev 962) @@ -76,7 +76,7 @@ <!-- var messageObj = document.getElementById('MESSAGE'); if (!messageObj.value) { - hukkatuPostForm('{$host}', '{$bbs}', '{$key}'); + hukkatuPostFormByCookie('{$host}', '{$bbs}', '{$key}'); } --> </script>\n Modified: p2/trunk/lib/getPostFormIPhoneHtml.func.php =================================================================== --- p2/trunk/lib/getPostFormIPhoneHtml.func.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/getPostFormIPhoneHtml.func.php 2013-06-24 13:57:47 UTC (rev 962) @@ -85,7 +85,7 @@ <!-- var messageObj = document.getElementById('MESSAGE'); if (!messageObj.value) { - hukkatuPostForm('{$host}', '{$bbs}', '{$key}'); + hukkatuPostFormByCookie('{$host}', '{$bbs}', '{$key}'); } --> </script>\n Modified: p2/trunk/lib/getPostFormPopupIPhoneHtml.func.php =================================================================== --- p2/trunk/lib/getPostFormPopupIPhoneHtml.func.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/getPostFormPopupIPhoneHtml.func.php 2013-06-24 13:57:47 UTC (rev 962) @@ -90,7 +90,7 @@ <!-- var messageObj = document.getElementById('MESSAGE'); if (!messageObj.value) { - hukkatuPostForm('{$host}', '{$bbs}', '{$key}'); + hukkatuPostFormByCookie('{$host}', '{$bbs}', '{$key}'); } --> </script>\n Modified: p2/trunk/lib/read_header.inc.php =================================================================== --- p2/trunk/lib/read_header.inc.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/read_header.inc.php 2013-06-24 13:57:47 UTC (rev 962) @@ -295,7 +295,7 @@ $onload_script = ''; if ($_conf['bottom_res_form']) { - ?><script type="text/javascript" src="js/post_form.js?v=201209"></script><?php + ?><script type="text/javascript" src="js/post_form.js?v=20130624"></script><?php $onload_script .= "checkSage();"; } if (empty($_GET['onlyone'])) { Modified: p2/trunk/lib/sb_print_k.func.php =================================================================== --- p2/trunk/lib/sb_print_k.func.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/sb_print_k.func.php 2013-06-24 13:57:47 UTC (rev 962) @@ -16,13 +16,13 @@ if (!$aThreadList->threads) { if ($sb_view == 'shinchaku') { if (UA::isIPhoneGroup()) { - ?><p>\x83X\x83\x8C\x82ɐV\x92\x85\x82Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php + ?><p style="padding-left:4px;">\x83X\x83\x8C\x82ɐV\x92\x85\x82Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php } else { ?><p>\xBDڂɐV\x92\x85\x82Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php } } else { if (UA::isIPhoneGroup()) { - ?><p>\x8AY\x93\x96\x83X\x83\x8C\x82͂Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php + ?><p style="padding-left:4px;">\x8AY\x93\x96\x83X\x83\x8C\x82͂Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php } else { ?><p>\x8AY\x93\x96\xBDڂ͂Ȃ\xA9\x82\xC1\x82\xBD\x82\xDB</p><?php } @@ -243,7 +243,7 @@ // \x91\x8D\x83\x8C\x83X\x90\x94 if (UA::isIPhoneGroup()) { - $rescount_ht = '<font class="sbnum"> ' . $aThread->rescount . '<span class="sbnumstr">res</span></font>'; + $rescount_ht = '<font class="sbnum"> (' . $aThread->rescount . ')</font>'; // <span class="sbnumstr">res</span> } else { $rescount_ht = ' (' . $aThread->rescount . ')'; } Modified: p2/trunk/lib/setFav.func.php =================================================================== --- p2/trunk/lib/setFav.func.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/lib/setFav.func.php 2013-06-24 13:57:47 UTC (rev 962) @@ -94,9 +94,6 @@ return false; } - // \x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L - _setFavRank($host, $bbs, $key, $setfav, geti($data[0])); - return true; } @@ -162,104 +159,6 @@ return $data; } -/** - * \x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L - * - * @access private - * @return boolean|null - */ -function _setFavRank($host, $bbs, $key, $setfav, $ttitle) -{ - global $_conf; - - return null; // 2013/06/13 \x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L\x82͔p\x8E~\x82\xB7\x82\xE9 - - if (!$_conf['join_favrank']) { - return null; - } - - if ($setfav == '0') { - $act = 'out'; - } elseif ($setfav == '1') { - $act = 'add'; - } else { - return null; - } - - return _postFavRank(array( - 'host' => $host, 'bbs' => $bbs, 'key' => $key, - 'ttitle' => $ttitle, - 'ita' => P2Util::getItaName($host, $bbs), - 'act' => $act - )); -} - -/** - * \x82\xA8\x8BC\x82ɃX\x83\x8C\x8B\xA4\x97L\x82Ń|\x83X\x83g\x82\xB7\x82\xE9\x8A\x94 - * - * @access private - * @return boolean - */ -function _postFavRank($post) -{ - global $_conf; - - $method = 'POST'; - $httpua = "Monazilla/1.00 (" . $_conf['p2uaname'] . "/" . $_conf['p2version'] . ")"; - - $URL = parse_url($_conf['favrank_url']); - if (isset($URL['query'])) { - $URL['query'] = "?" . $URL['query']; - } else { - $URL['query'] = ""; - } - - // \x83v\x83\x8D\x83L\x83V - if ($_conf['proxy_use']) { - $send_host = $_conf['proxy_host']; - $send_port = $_conf['proxy_port']; - $send_path = $url; - } else { - $send_host = $URL['host']; - $send_port = $URL['port']; - $send_path = $URL['path'].$URL['query']; - } - - if (!$send_port) { $send_port = 80; } - - $request = "$method $send_path HTTP/1.0" . "\r\n"; - $request .= "Host: " . $URL['host'] . "\r\n"; - $request .= "User-Agent: " . $httpua . "\r\n"; - $request .= "Connection: Close\r\n"; - - // POST\x82̎\x9E\x82̓w\x83b\x83_\x82\xF0\x92lj\xC1\x82\xB5\x82Ė\x96\x94\xF6\x82\xC9URL\x83G\x83\x93\x83R\x81[\x83h\x82\xB5\x82\xBD\x83f\x81[\x83^\x82\xF0\x93Y\x95t - if (strtoupper($method) == "POST") { - while (list($name, $value) = each($post)) { - $POST[] = $name . "=" . urlencode($value); - } - $postdata = implode("&", $POST); - $request .= "Content-Type: application/x-www-form-urlencoded\r\n"; - $request .= "Content-Length: " . strlen($postdata) . "\r\n"; - $request .= "\r\n"; - $request .= $postdata; - } else { - $request .= "\r\n"; - } - - $fp = fsockopen($send_host, $send_port, $errno, $errstr, 3); - if (!$fp) { - //echo "\x83T\x81[\x83o\x90ڑ\xB1\x83G\x83\x89\x81[: $errstr ($errno)<br>\n"; - //echo "p2 info: " . hs($_conf['favrank_url']) . " \x82ɐڑ\xB1\x82ł\xAB\x82܂\xB9\x82\xF1\x82ł\xB5\x82\xBD\x81B<br>"; - return false; - } - - fputs($fp, $request); - fclose($fp); - - return true; - //return $body; -} - /* * Local Variables: * mode: php Modified: p2/trunk/post.php =================================================================== --- p2/trunk/post.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/post.php 2013-06-24 13:57:47 UTC (rev 962) @@ -798,7 +798,7 @@ if (isset($_COOKIE['post_msg'])) { P2Util::unsetCookie('post_msg'); // \x83h\x83\x81\x83C\x83\x93\x8Ew\x92\xE8\x82Ȃ\xB5\x82\xE0\x93\xFC\x82\xEA\x82Ă\xA8\x82\xB1 - setcookie('post_msg', '', time() - 3600); + setcookie('post_msg', '', time() - 3600, '/'); // js\x82\xCC_setCookie()\x82\xC5path\x82̎w\x92肪/\x82ɂȂ\xC1\x82Ă\xA2\x82\xE9\x82ɍ\x87\x82킹\x82\xE9 } $reload = empty($_POST['from_read_new']); Modified: p2/trunk/post_form.php =================================================================== --- p2/trunk/post_form.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/post_form.php 2013-06-24 13:57:47 UTC (rev 962) @@ -136,16 +136,16 @@ <?php P2View::printExtraHeadersHtml(); ?> - <title><?php eh($ptitle); ?></title> + <title><?php eh($ptitle); ?></title> <?php -if (!$_conf['ktai']) { +if (!UA::isK() || UA::isIPhoneGroup()) { P2View::printIncludeCssHtml('style'); P2View::printIncludeCssHtml('post'); ?> - <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> - <script type="text/javascript" src="js/basic.js?2012"></script> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <script type="text/javascript" src="js/basic.js?2012"></script> <!-- <script type="text/javascript" src="js/yui-ext/yui.js"></script> --> - <script type="text/javascript" src="js/post_form.js?v=20090724"></script> + <script type="text/javascript" src="js/post_form.js?v=20130624"></script> <?php } Modified: p2/trunk/post_form_i.php =================================================================== --- p2/trunk/post_form_i.php 2013-06-15 07:06:02 UTC (rev 961) +++ p2/trunk/post_form_i.php 2013-06-24 13:57:47 UTC (rev 962) @@ -139,7 +139,7 @@ } if (UA::isPC() || UA::isIPhoneGroup()) { ?><script type="text/javascript" src="js/basic.js?2012"></script><?php -?><script type="text/javascript" src="js/post_form.js?v=20130609"></script><?php +?><script type="text/javascript" src="js/post_form.js?v=20130624"></script><?php } echo <<<EOP </head>