// 'Search' main function
function do_search($word, $type = 'AND', $non_format = FALSE, $base = '')
{
- global $script, $whatsnew, $non_list, $search_non_list;
+ global $whatsnew, $non_list, $search_non_list;
global $_msg_andresult, $_msg_orresult, $_msg_notfoundresult;
global $search_auth, $show_passage;
$r_page = rawurlencode($page);
$s_page = htmlsc($page);
$passage = $show_passage ? ' ' . get_passage(get_filetime($page)) : '';
- $retval .= ' <li><a href="' . $script . '?cmd=read&page=' .
+ $retval .= ' <li><a href="' . get_base_uri() . '?cmd=read&page=' .
$r_page . '&word=' . $r_word . '">' . $s_page .
'</a>' . $passage . '</li>' . "\n";
}
// Create list of pages
function page_list($pages, $cmd = 'read', $withfilename = FALSE)
{
- global $script, $list_index;
+ global $list_index;
global $_msg_symbol, $_msg_other;
global $pagereading_enable;
+ $script = get_base_uri();
+
// ソートキーを決定する。 ' ' < '[a-zA-Z]' < 'zz'という前提。
$symbol = ' ';
$other = 'zz';