svnno****@sourc*****
svnno****@sourc*****
2009年 12月 29日 (火) 17:21:27 JST
Revision: 745 http://sourceforge.jp/projects/p2-php/svn/view?view=rev&revision=745 Author: rsk Date: 2009-12-29 17:21:27 +0900 (Tue, 29 Dec 2009) Log Message: ----------- expack: - Google SOAP APIã(ãã£ã¨æã«)ãã£ã¹ã³ã³ã«ãªã£ãã®ã§ Googleæ¤ç´¢æ©è½ãåé¤ã - åæºå¸¯ãã£ãªã¢ã®IPã¢ãã¬ã¹å¸¯åãæ´æ°ã - 縦3ãã¤ã³ã¢ã¼ãç¨ã«ã¹ã¿ã¤ã«ã微調æ´ã - cli/fetch-subject-txt.php ã§å®æ°åãããé©åãªãã®ã«å¤æ´ã Modified Paths: -------------- p2ex/trunk/cli/fetch-subject-txt.php p2ex/trunk/conf/conf_admin_ex.inc.php p2ex/trunk/conf/conf_user_def_ex.inc.php p2ex/trunk/conf/ip_au.php p2ex/trunk/conf/ip_docomo.php p2ex/trunk/conf/ip_emobile.php p2ex/trunk/conf/ip_iphone.php p2ex/trunk/conf/ip_softbank.php p2ex/trunk/edit_conf_user.php p2ex/trunk/index.php p2ex/trunk/lib/menu.inc.php p2ex/trunk/lib/read_header.inc.php p2ex/trunk/skin/flat.php p2ex/trunk/skin/flat2.php p2ex/trunk/style/narrow_toolbar_css.inc Removed Paths: ------------- p2ex/trunk/gsearch.php p2ex/trunk/lib/expack/google/ -------------- next part -------------- Modified: p2ex/trunk/cli/fetch-subject-txt.php =================================================================== --- p2ex/trunk/cli/fetch-subject-txt.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/cli/fetch-subject-txt.php 2009-12-29 08:21:27 UTC (rev 745) @@ -15,8 +15,8 @@ } define('P2_CLI_RUN', 1); -define('P2_FTS_DEBUG', 0); -define('P2_FTS_DEBUG_OUTPUT_FILE', '/tmp/p2_fetch_subject_txt.log'); +define('P2_FETCH_SUBJECT_TXT_DEBUG', 0); +define('P2_FETCH_SUBJECT_TXT_DEBUG_OUTPUT_FILE', '/tmp/p2_fetch_subject_txt.log'); $P2_CONF_DIR = dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . 'conf'; @@ -154,7 +154,7 @@ } // fobOpOt@CÉ«Þ -if (P2_FTS_DEBUG) { +if (P2_FETCH_SUBJECT_TXT_DEBUG) { $debug_output = '====================' . PHP_EOL; $debug_output .= __FILE__ . PHP_EOL; $debug_output .= 'date: ' . date('Y-m-d H:i:s') . PHP_EOL; @@ -185,9 +185,9 @@ $debug_output = mb_convert_encoding($debug_output, 'UTF-8', 'SJIS-win'); } - if (file_put_contents(P2_FTS_DEBUG_OUTPUT_FILE, $debug_output, LOCK_EX | FILE_APPEND) === false) { + if (file_put_contents(P2_FETCH_SUBJECT_TXT_DEBUG_OUTPUT_FILE, $debug_output, LOCK_EX | FILE_APPEND) === false) { $errmsg .= sprintf("<p><b>cannot write to `%s'.</b></p>\n", - htmlspecialchars(P2_FTS_DEBUG_OUTPUT_FILE, ENT_QUOTES) + htmlspecialchars(P2_FETCH_SUBJECT_TXT_DEBUG_OUTPUT_FILE, ENT_QUOTES) ); } } Modified: p2ex/trunk/conf/conf_admin_ex.inc.php =================================================================== --- p2ex/trunk/conf/conf_admin_ex.inc.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/conf_admin_ex.inc.php 2009-12-29 08:21:27 UTC (rev 745) @@ -108,15 +108,6 @@ $_conf['expack.ic2.switch_path'] = $_conf['pref_dir'] . '/ic2_switch.txt'; // }}} -// {{{ Googleõ - -// Googleõioff:0, on:1j -$_conf['expack.google.enabled'] = 0; // (0) - -// WSDL ÌpXiáF/path/to/googleapi/GoogleSearch.wsdlj -$_conf['expack.google.wsdl'] = "./conf/GoogleSearch.wsdl"; // ("./conf/GoogleSearch.wsdl") - -// }}} // {{{ AAS // AASioff:0, on:1j Modified: p2ex/trunk/conf/conf_user_def_ex.inc.php =================================================================== --- p2ex/trunk/conf/conf_user_def_ex.inc.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/conf_user_def_ex.inc.php 2009-12-29 08:21:27 UTC (rev 745) @@ -182,24 +182,6 @@ $conf_user_rad['expack.ic2.newres_ignore_limit_k'] = array('1' => '·é', '0' => 'µÈ¢'); // }}} -// {{{ Googleõ - -// Google Web APIs Ìo^L[ -$conf_user_def['expack.google.key'] = ""; // ("") - -// õððL^·éioff:0j -//$conf_user_def['expack.google.recent_num'] = 10; // (10) -//$conf_user_rules['expack.google.recent_num'] = array('notIntExceptMinusToDef'); - -// T[`{bNXÉõððL^·éASafariêpioff:0j -$conf_user_def['expack.google.recent2_num'] = 10; // (10) -$conf_user_rules['expack.google.recent2_num'] = array('notIntExceptMinusToDef'); - -// SOAP GNXeV ªpÂ\ÈÆ«à PEAR Ì SOAP pbP[Wðg¤i0:no; 1:yes;j -$conf_user_def['expack.google.force_pear'] = 0; // (0) -$conf_user_rad['expack.google.force_pear'] = array('1' => 'PEAR', '0' => 'SOAPGNXeV'); - -// }}} // {{{ AAS // gÑÅ AA Æ©®»è³ê½Æ«CC AAS \¦·éi0:µÈ¢; 1:·é;j Modified: p2ex/trunk/conf/ip_au.php =================================================================== --- p2ex/trunk/conf/ip_au.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/ip_au.php 2009-12-29 08:21:27 UTC (rev 745) @@ -1,7 +1,7 @@ <?php /** - * KDDI au EZweb[Ì[gzXg³K\»ÆIPAhXÑæ (2008/12/11 _) + * KDDI au EZweb[Ì[gzXg³K\»ÆIPAhXÑæ (2009/10/05 _) * * @link http://www.au.kddi.com/ezfactory/tec/spec/ezsava_ip.html */ @@ -10,51 +10,27 @@ $band = array( '59.135.38.128/25', - '61.117.0.128/25', '61.117.1.0/28', - '61.117.1.128/25', '61.117.2.32/29', '61.117.2.40/29', - '61.202.3.64/28', '118.152.214.192/26', '118.159.131.0/25', + '118.159.132.160/27', '118.159.133.0/25', + '118.159.133.192/26', '121.111.227.0/25', '121.111.227.160/27', '121.111.231.0/25', - '121.111.231.160/27', '210.230.128.224/28', - '218.222.1.0/25', - '218.222.1.128/28', - '218.222.1.144/28', - '218.222.1.160/28', '219.108.157.0/25', '219.108.158.0/27', '219.108.158.40/29', '219.125.145.0/25', '219.125.146.0/28', '219.125.148.0/25', - '219.125.148.160/27', - '219.125.148.192/27', - '219.125.151.128/27', - '219.125.151.160/27', - '219.125.151.192/27', '222.5.62.128/25', '222.5.63.0/25', '222.5.63.128/25', - '222.7.56.0/27', - '222.7.56.32/27', - '222.7.56.96/27', - '222.7.56.128/27', - '222.7.56.192/27', - '222.7.56.224/27', - '222.7.57.32/27', - '222.7.57.64/27', - '222.7.57.96/27', - '222.7.57.128/27', - '222.7.57.160/27', - '222.7.57.192/27', - '222.7.57.224/27', ); /* Modified: p2ex/trunk/conf/ip_docomo.php =================================================================== --- p2ex/trunk/conf/ip_docomo.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/ip_docomo.php 2009-12-29 08:21:27 UTC (rev 745) @@ -1,7 +1,7 @@ <?php /** - * NTThR i[h[Ì[gzXg³K\»ÆIPAhXÑæ (2008/09 _) + * NTThR i[h[Ì[gzXg³K\»ÆIPAhXÑæ (2009/11 _) * * @link http://www.nttdocomo.co.jp/service/imode/make/content/ip/index.html */ @@ -9,11 +9,16 @@ $host = '/^proxy[0-9a-f]\\d\\d\\.docomo\\.ne\\.jp$/'; $band = array( + //'124.146.174.0/24', + //'124.146.175.0/24', + '124.146.174.0/23', // ãñÂðê + '210.136.161.0/24', '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.176.0/23', // ãñÂðê + '202.229.178.0/24', // tuEU '210.153.87.0/24', ); Modified: p2ex/trunk/conf/ip_emobile.php =================================================================== --- p2ex/trunk/conf/ip_emobile.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/ip_emobile.php 2009-12-29 08:21:27 UTC (rev 745) @@ -1,9 +1,13 @@ <?php /** - * C[oC[Ì[gzXg³K\»ÆIPAhXÑæ (2008/02/26 _) + * C[EoC[Ì[gzXg³K\»ÆIPAhXÑæ (2008/02/26 _) * + * JPNIC Whois GatewayŲ׽IPAhXÑæÍC[EoCÉèÄçêÄ¢é + * Ñæ·×ÄÅAlbg[NuEM-INFRAvuEM-USERvÈOàÜÞB + * * @link http://developer.emnet.ne.jp/ipaddress.html + * @link http://whois.nic.ad.jp/cgi-bin/whois_gw */ $host = '/\\.pool\\.e(?:mnet|-?mobile)\\.ne\\.jp$/'; Modified: p2ex/trunk/conf/ip_iphone.php =================================================================== --- p2ex/trunk/conf/ip_iphone.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/ip_iphone.php 2009-12-29 08:21:27 UTC (rev 745) @@ -7,7 +7,8 @@ $host = '/\\.(?:[0-9]|1[0-5])\\.tik\\.panda-world\\.ne\\.jp$/'; $band = array( - '126.240.0.0/12', + '126.240.0.0/12', // \tgoNBBª 126.0.0.0/8 ÈÌÅ + // iPhoneÉÀèÅ«È¢¨»ê è ); /* Modified: p2ex/trunk/conf/ip_softbank.php =================================================================== --- p2ex/trunk/conf/ip_softbank.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/conf/ip_softbank.php 2009-12-29 08:21:27 UTC (rev 745) @@ -2,7 +2,7 @@ /** * \tgoN[Ì[gzXg³K\»ÆIPAhXÑæ - * (Yahoo!P[^CEPCTCguEUÍ 2008/02/29 _AXV[YÍ 2008/09/19 _) + * (Yahoo!P[^CEPCTCguEUÍ 2009/08/18 _AXV[YÍ 2009/10/23 _) * * @link http://creation.mb.softbank.jp/web/web_ip.html * @link http://creation.mb.softbank.jp/xseries/xseries_ip.html @@ -19,19 +19,16 @@ '210.146.7.192/26', '210.146.60.192/26', '210.151.9.128/26', - '210.169.130.112/28', '210.175.1.128/25', - '210.228.189.0/24', '211.8.159.128/25', // PCTCguEU - '123.108.237.240/28', + '123.108.237.224/27', '202.253.96.0/28', // XV[Y (IE) - '123.108.237.240/28', + '123.108.237.224/27', '202.253.96.0/28', // XV[Y (¼Av) - '219.73.128.0/17', - '117.46.128.0/17', + '126.243.0.0/16', ); /* Modified: p2ex/trunk/edit_conf_user.php =================================================================== --- p2ex/trunk/edit_conf_user.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/edit_conf_user.php 2009-12-29 08:21:27 UTC (rev 745) @@ -614,24 +614,6 @@ } // }}} -// {{{ expack - Googleõ - -$groupname = 'Googleõ'; -$groups[] = $groupname; -$flags = getGroupShowFlags($groupname, 'expack.google.enabled'); -if ($flags & P2_EDIT_CONF_USER_SKIPPED) { - $keep_old = true; -} else { - $conflist = array( - array('expack.google.key', 'Google Web APIs Ìo^L[', P2_EDIT_CONF_USER_LONGTEXT), - //array('expack.google.recent_num', 'õððL^·éiL^µÈ¢:0j'), - array('expack.google.recent2_num', 'T[`{bNXÉõððL^·éASafariêp (L^µÈ¢:0)'), - array('expack.google.force_pear', 'SOAP GNXeV ªpÂ\ÈÆ«à PEAR Ì SOAP pbP[Wðg¤'), - ); - printEditConfGroupHtml($groupname, $conflist, $flags); -} - -// }}} // {{{ expack - AAS $groupname = 'AAS'; Deleted: p2ex/trunk/gsearch.php =================================================================== --- p2ex/trunk/gsearch.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/gsearch.php 2009-12-29 08:21:27 UTC (rev 745) @@ -1,182 +0,0 @@ -<?php -/** - * 2ch©çGoogle APIðgÁÄõµAp2ÅÇÞ½ßÌNÉÏ··é - * - * \èF - * E1ú1,000ñÜÅ̧Àª éÌÅõÊðLbV µÄÄâ¢í¹ðh®B - * EOÉ»ÌúÌõñðL^·éæ¤É·éB - * - * Qlɵ½Æ±ëF - * Ehttp://www.itmedia.co.jp/enterprise/0405/28/epn04_3.html - * EÜé²ÆPHP! (Vol.1) {³ñÌLuPHPÅÈP SOAPT[rXv - * - * KvÈàÌF - * EGoogle AJEg - * EGoogle Web APIs Ìy[W©çüèÅ«é Developerfs Kit ÉÜÜêéWSDLt@C - * EPHPÌmbstring@\g£ - * EPHP4ÈçPEAR::SOAPAPHP5ÈçSOAPg£@\ - * EPEAR::Pager (2.x) - * EPEAR::Var_Dump (1.x) - */ - -// {{{ p2î{ÝèÇÝÝ&FØ - -require_once './conf/conf.inc.php'; - -$_login->authorize(); - -// }}} - -if ($_conf['expack.google.enabled'] == 0) { - p2die('GoogleõͳøÅ·B', 'conf/conf_admin_ex.inc.php ÌÝèðϦľ³¢B'); -} - -if ($_conf['view_forced_by_query']) { - output_add_rewrite_var('b', $_conf['b']); -} - -// {{{ Init - -// CuÇÝÝ -require_once P2EX_LIB_DIR . '/google/Search.php'; -require_once P2EX_LIB_DIR . '/google/Converter.php'; -require_once P2EX_LIB_DIR . '/google/Renderer.php'; - -// Google Search WSDLt@CÌpX -$wsdl = $_conf['expack.google.wsdl']; - -// Google Web APIs ÌCZXL[ -$key = $_conf['expack.google.key']; - -// 1y[W½èÌ\¦ (Max:10) -$perPage = 10; - -// õ¶ñ -if (isset($_GET['word'])) { - $_GET['q'] = $_GET['word']; - unset($_GET['word']); -} -if (isset($_GET['q'])) { - $q = mb_convert_encoding($_GET['q'], 'UTF-8', 'CP932'); - $word = htmlspecialchars($_GET['q'], ENT_QUOTES); -} else { - $word = $q = ''; -} - -// y[WÔ -$p = isset($_GET['p']) ? max((int)$_GET['p'], 1) : 1; -$start = ($p - 1) * $perPage; - -// oÍpÏ -$totalItems = 0; -$result = NULL; -$popups = NULL; - -// }}} -// {{{ Search - -if (!empty($q)) { - // õ¶ñð2chàõpÉÏ· - //$q = trim(preg_replace('/( |@)\w+:.*( |@)/u', '', $q)); - //$q .= ' site:2ch.net -site:www.2ch.net -site:info.2ch.net -site:find.2ch.net -site:p2.2ch.net'; - $q .= ' site:2ch.net'; - - // GoogleõNXÌCX^X𶬷é - $google = Google_Search::factory($wsdl, $key); - - // CX^X¶¬É¸s - if (PEAR::isError($google)) { - $result = '<b>Error: ' . $google->getMessage() . '</b>'; - // CX^X¶¬É¬÷ - } else { - $resultObj = $google->doSearch($q, $perPage, $start); - // G[¶ - if (PEAR::isError($resultObj)) { - $result = '<b>Error: ' . $resultObj->getMessage() . '</b>'; - if (!empty($resultObj->userinfo)) { - if (!class_exists('Var_Dump', false)) { - require 'Var_Dump.php'; - } - $result .= Var_Dump::display($resultObj->getUserInfo(), TRUE, 'HTML4_Table'); - } - // NGXg¬÷ - } else { - $totalItems = $resultObj->estimatedTotalResultsCount; - // qbg è - if ($totalItems > 0) { - $converter = new Google_Converter; - $result = array(); - $popups = array(); - $id = 1; - foreach ($resultObj->resultElements as $obj) { - $result[$id] = $converter->toOutputValue($obj); - $popups[$id] = $converter->toPopUpValue($obj); - $id++; - } - // qbg[ - } else { - $result = '"' . $word . '" Not Found.'; - // õÊÌÅãÌy[Wð\¦µæ¤Æµ½Æ«A - // qbgªuÄ$startæ謳ÈèAÊƵÄ0ÆÈé±Æª é - if ($start > 0) { - $result .= '<br><a href="javascript:history.back();">Back</a>'; - } - } - } // end of NGXg¬÷ - } // end of CX^X¶¬É¬÷ - -} - -// }}} -// {{{ Display - -$renderer = new Google_Renderer; - -$search_element_type = 'text'; -$search_element_extra_attributes = ''; -if ($_conf['input_type_search']) { - $search_element_type = 'search'; - $search_element_extra_attributes = " autosave=\"rep2.expack.search.google\" results=\"{$_conf['expack.google.recent2_num']}\" placeholder=\"Google\""; -} - -?> -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> -<html lang="ja"> -<head> - <meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS"> - <meta http-equiv="Content-Style-Type" content="text/css"> - <meta http-equiv="Content-Script-Type" content="text/javascript"> - <meta name="ROBOTS" content="NOINDEX, NOFOLLOW"> - <?php echo $_conf['extra_headers_ht']; ?> - <title>2chõ by Google : <?php echo $word; ?></title> - <link rel="stylesheet" type="text/css" href="css.php?css=style&skin=<?php echo $skin_en; ?>"> - <link rel="stylesheet" type="text/css" href="css.php?css=read&skin=<?php echo $skin_en; ?>"> - <link rel="stylesheet" type="text/css" href="css.php?css=subject&skin=<?php echo $skin_en; ?>"> - <link rel="shortcut icon" type="image/x-icon" href="favicon.ico"> - <script type="text/javascript" src="js/basic.js?<?php echo $_conf['p2_version_id']; ?>"></script> - <script type="text/javascript" src="js/gpopup.js?<?php echo $_conf['p2_version_id']; ?>"></script> -</head> -<body> -<table id="sbtoolbar1" class="toolbar" cellspacing="0"><tr><td class="toolbar-title"> - <span class="itatitle"><a class="aitatitle" href="<?php echo $_SERVER['SCRIPT_NAME']; ?>"><b>2chõ by Google</b></a></span> - <form action="<?php echo $_SERVER['SCRIPT_NAME']; ?>" method="get" accept-charset="<?php echo $_conf['accept_charset']; ?>" style="display:inline;"> - <input type="<?php echo $search_element_type; ?>" name="q" value="<?php echo $word; ?>"<?php echo $search_element_extra_attributes; ?>> - <input type="submit" value="õ"> - </form> -</td></tr></table> -<?php $renderer->printSearchResult($result, $word, $perPage, $start, $totalItems); ?> -<?php $renderer->printPager($perPage, $totalItems); ?> -<?php $renderer->printPopup($popups); ?> -</body> -</html> -<?php -/* - * 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: p2ex/trunk/index.php =================================================================== --- p2ex/trunk/index.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/index.php 2009-12-29 08:21:27 UTC (rev 745) @@ -65,12 +65,8 @@ if (array_key_exists('panes', $_GET) && is_string($_GET['panes'])) { switch ($_GET['panes']) { case 'v3': - $panes = 'v3'; - $direction = 'cols'; - $_SESSION['use_narrow_toolbars'] = true; - break; case 'v2': - $panes = 'v2'; + $panes = $_GET['panes']; $direction = 'cols'; $_SESSION['use_narrow_toolbars'] = true; break; Modified: p2ex/trunk/lib/menu.inc.php =================================================================== --- p2ex/trunk/lib/menu.inc.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/lib/menu.inc.php 2009-12-29 08:21:27 UTC (rev 745) @@ -156,13 +156,6 @@ <div id="c_search">\n EOP; -if ($_conf['expack.google.enabled'] && $_conf['expack.google.key'] && file_exists($_conf['expack.google.wsdl'])) { - $google_search_enabled = TRUE; -} else { - $google_search_enabled = FALSE; -} - - if ($_conf['input_type_search']) { // {{{ <input type="search">ðg¤ @@ -180,15 +173,6 @@ {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} </form><br>\n EOP; - // Googleõ - if ($google_search_enabled) { - echo <<<EOP - <form method="GET" action="gsearch.php" accept-charset="{$_conf['accept_charset']}" target="subject" class="inline-form"> - <input type="search" name="q" value="" size="16" autosave="rep2.expack.search.google" results="{$_conf['expack.google.recent2_num']}" placeholder="Googleõ"> - {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} - </form><br>\n -EOP; - } // }}} } else { @@ -208,15 +192,6 @@ {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} </form><br>\n EOP; - // Googleõ - if ($google_search_enabled) { - echo <<<EOP - <form method="GET" action="gsearch.php" accept-charset="{$_conf['accept_charset']}" target="subject" class="inline-form" style="white-space:nowrap"> - <input type="text" name="q" value="" size="12"><input type="submit" value="G"> - {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} - </form><br>\n -EOP; - } // }}} } Modified: p2ex/trunk/lib/read_header.inc.php =================================================================== --- p2ex/trunk/lib/read_header.inc.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/lib/read_header.inc.php 2009-12-29 08:21:27 UTC (rev 745) @@ -329,6 +329,8 @@ $selected_method[($res_filter['method'])] = ' selected'; $select_method_ht = <<<EOP Ì + </span> + <span class="param"> <select id="method" name="method"> <option value="or"{$selected_method['or']}>¢¸ê©</option> <option value="and"{$selected_method['and']}>·×Ä</option> @@ -340,8 +342,14 @@ $hd['word'] = htmlspecialchars($GLOBALS['word'], ENT_QUOTES); + if (empty($_SESSION['use_narrow_toolbars'])) { + $header_style = 'style="white-space:nowrap"'; + } else { + $header_style = ''; + } + echo <<<EOP -<form id="header" method="GET" action="{$_conf['read_php']}" accept-charset="{$_conf['accept_charset']}" style="white-space:nowrap"> +<form id="header" method="get" action="{$_conf['read_php']}" accept-charset="{$_conf['accept_charset']}" {$header_style}> <input type="hidden" name="bbs" value="{$aThread->bbs}"> <input type="hidden" name="key" value="{$aThread->key}"> <input type="hidden" name="host" value="{$aThread->host}"> @@ -355,13 +363,17 @@ <option value="id"{$selected_field['id']}>IDª</option> <option value="msg"{$selected_field['msg']}>bZ[Wª</option> </select> + <span class="param"> <input id="word" name="word" value="{$hd['word']}" size="24">{$select_method_ht} ð + </span> + <span class="param"> <select id="match" name="match"> <option value="on"{$selected_match['on']}>ÜÞ</option> <option value="off"{$selected_match['off']}>ÜÜÈ¢</option> </select> Xð + </span> <input type="submit" name="submit_filter" value="tB^\¦"> {$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']} </form>\n @@ -390,7 +402,7 @@ $id_header = ''; } echo <<<EOP -<table{$id_header} width="100%" style="padding:0px 0px 10px 0px;"> +<table{$id_header} class="toolbar"> <tr> <td class="lblock"> <a href="{$_conf['read_php']}?host={$aThread->host}{$bbs_q}{$key_q}&ls=all">{$all_st}</a> Modified: p2ex/trunk/skin/flat.php =================================================================== --- p2ex/trunk/skin/flat.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/skin/flat.php 2009-12-29 08:21:27 UTC (rev 745) @@ -178,7 +178,7 @@ $MYSTYLE['read']['form#header']['padding'] = "2px 10px 5px 10px"; $MYSTYLE['read']['form#header']['line-height'] = "100%"; $MYSTYLE['read']['form#header']['vertical-align'] = "middle"; -$MYSTYLE['read']['form#header']['background'] = "transparent url('./skin/flat/header.png') bottom repeat-x"; +$MYSTYLE['read']['form#header']['background'] = "#E3E3E3 url('./skin/flat/header.png') top repeat-x"; $MYSTYLE['read']['form#header']['border-bottom'] = "1px #CACACA solid"; $MYSTYLE['read']['div#kakiko']['border-top'] = "1px #CACACA solid"; $MYSTYLE['read']['div#kakiko']['margin'] = "5px -10px -5px -10px"; Modified: p2ex/trunk/skin/flat2.php =================================================================== --- p2ex/trunk/skin/flat2.php 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/skin/flat2.php 2009-12-29 08:21:27 UTC (rev 745) @@ -178,7 +178,7 @@ $MYSTYLE['read']['form#header']['padding'] = "2px 10px 5px 10px"; $MYSTYLE['read']['form#header']['line-height'] = "100%"; $MYSTYLE['read']['form#header']['vertical-align'] = "middle"; -$MYSTYLE['read']['form#header']['background'] = "transparent url('./skin/flat/header2.png') bottom repeat-x"; +$MYSTYLE['read']['form#header']['background'] = "#000000 url('./skin/flat/header2.png') top repeat-x"; $MYSTYLE['read']['form#header']['border-bottom'] = "1px #3E3E3E solid"; $MYSTYLE['read']['form#header']['color'] = "#FFFFFF"; $MYSTYLE['read']['div#kakiko']['border-top'] = "1px #CACACA solid"; Modified: p2ex/trunk/style/narrow_toolbar_css.inc =================================================================== --- p2ex/trunk/style/narrow_toolbar_css.inc 2009-12-25 08:50:42 UTC (rev 744) +++ p2ex/trunk/style/narrow_toolbar_css.inc 2009-12-29 08:21:27 UTC (rev 745) @@ -22,6 +22,10 @@ display: inline-block; } +span.param { + display: inline-block; +} + EOSTYLE; /*