// {{{ HTTPヘッダ P2Util::header_nocache(); header('Content-Type: text/plain; charset=UTF-8'); // }}} // {{{ 初期化 // パラメータを検証 if (!isset($_GET['searchkey'])) { echo 'null'; exit; } // ライブラリ読み込み require_once P2EX_LIB_DIR . '/ic2_getcount.inc.php'; // }}} // {{{ execute try { echo getIC2ImageCount((string) $_GET['searchkey']); } catch (Exception $e) { echo '?'; } exit; // }}} /* * 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:
// }}} echo '</tbody></table>'; // {{{ その他 - SPMフォーム // IC2リンク、件数 if ($_conf['expack.ic2.enabled'] && $_conf['expack.ic2.thread_imagelink']) { echo '<table><tbody><tr>'; echo '<td colspan="4">'; echo kspform($aThread); echo '</td>'; $escaped_url = 'iv2.php?field=memo&key=' . rawurlencode($aThread->ttitle) . "&session_no_close=1{$_conf['k_at_a']}"; echo '<td>'; if ($_conf['expack.ic2.thread_imagecount']) { require_once P2EX_LIB_DIR . '/ic2_getcount.inc.php'; $cnt = 0; try { $cnt = getIC2ImageCount($aThread->ttitle); } catch (Exception $e) { $cnt = -1; } if ($cnt == 0) { echo toolbar_i_disabled_button('img/glyphish/icons2/42-photos.png', '画像'); } else { echo toolbar_i_opentab_button('img/glyphish/icons2/42-photos.png', '画像' . ($cnt < 0 ? '(?)' : "({$cnt})"), $escaped_url); } } else { echo toolbar_i_opentab_button('img/glyphish/icons2/42-photos.png', '画像', $escaped_url); } echo '</td></tr></tbody></table>'; } else { echo kspform($aThread); }
} // {{{ 検索 $read_navi_filter = <<<EOP <a href="read_filter_k.php?{$host_bbs_key_q}{$ttitle_en_q}{$_conf['k_at_a']}">{$find_st}</a> EOP; $read_navi_filter_btm = <<<EOP <a href="read_filter_k.php?{$host_bbs_key_q}{$ttitle_en_q}{$_conf['k_at_a']}"{$_conf['k_accesskey_at']['filter']}>{$_conf['k_accesskey_st']['filter']}{$find_st}</a> EOP; // }}} // IC2リンク if ($_conf['expack.ic2.enabled'] && $_conf['expack.ic2.thread_imagelink']) { $cnt = ''; if ($_conf['expack.ic2.thread_imagecount']) { require_once P2EX_LIB_DIR . '/ic2_getcount.inc.php'; try { $cnt = '(' . getIC2ImageCount($aThread->ttitle) . ')'; } catch (Exception $e) { $cnt = '(?)'; } } $htm['ic2navi'] = '<a href="iv2.php?field=memo&keyword=' . rawurlencode($aThread->ttitle) . '&session_no_close=1' . '&b=' . ($_conf['iphone'] ? 'i' : 'k') . '">IC2' . $cnt . '</a>'; } //==================================================================== // 検索時の特別な処理 //==================================================================== if ($filter_hits !== null) { include P2_LIB_DIR . '/read_filter_k.inc.php'; } //==================================================================== // HTMLプリント //====================================================================