-
Notifications
You must be signed in to change notification settings - Fork 47
Expand file tree
/
Copy pathread_filter_k.php
More file actions
81 lines (75 loc) · 2 KB
/
read_filter_k.php
File metadata and controls
81 lines (75 loc) · 2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<?php
/**
* rep2 - 携帯版レスフィルタリング
*/
require_once './conf/conf.inc.php';
$_login->authorize(); // ユーザ認証
/**
* スレッド情報
*/
$host = $_GET['host'];
$bbs = $_GET['bbs'];
$key = $_GET['key'];
$ttitle = UrlSafeBase64::decode($_GET['ttitle_en']);
$ttitle_back = (isset($_SERVER['HTTP_REFERER']))
? '<a href="' . htmlspecialchars($_SERVER['HTTP_REFERER'], ENT_QUOTES) . '" title="戻る">' . $ttitle . '</a>'
: $ttitle;
$hidden_fields_ht = ResFilterElement::getHiddenFields($host, $bbs, $key);
if ($_conf['iphone']) {
$word_field_ht = ResFilterElement::getWordField(array(
'autocorrect' => 'off',
'autocapitalize' => 'off',
));
} else {
$word_field_ht = ResFilterElement::getWordField();
}
$field_field_ht = ResFilterElement::getFieldField();
$method_field_ht = ResFilterElement::getMethodField();
$match_field_ht = ResFilterElement::getMatchField();
$include_field_ht = ResFilterElement::getIncludeField();
/**
* 検索フォームを表示
*/
P2Util::header_nocache();
echo $_conf['doctype'];
echo <<<EOF
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
{$_conf['extra_headers_ht']}
<title>rep2 - スレ内検索</title>
</head>
<body{$_conf['k_colors']}>
<p>{$ttitle_back}</p>
<hr>
<form id="header" method="get" action="{$_conf['read_php']}" accept-charset="{$_conf['accept_charset']}">
{$hidden_fields_ht}
<div>
{$word_field_ht}
<input type="submit" id="submit1" name="submit_filter" value="検索">
</div>
<hr>
<div style="white-space:nowrap">
検索オプション:<br>
{$field_field_ht}に<br>
{$method_field_ht}を<br>
{$match_field_ht}<br>
<input type="submit" id="submit2" name="submit_filter" value="検索"><br>
{$include_field_ht}
</div>
{$_conf['detect_hint_input_ht']}{$_conf['k_input_ht']}
</form>
</body>
</html>
EOF;
/*
* 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: