/i", "サイト内検索", $line); if (preg_match("/()/i", $line, $m)) { $separator = $m[1]; $separator = str_replace("?", '\?', $separator); $ssi = $m[2]; list($leftdoc, $rightdoc) = split($separator, $line); $line = $leftdoc; if ($ssi) { list($exe, $param) = split("\?", $ssi); if ($Init['ssiurl']) { $url = $System['protocol']. $_SERVER['SERVER_NAME']. $ssi; $line .= file_get_contents($url); } else { $url = $_SERVER['DOCUMENT_ROOT']. $ssi; if (is_file($_SERVER['DOCUMENT_ROOT']. $ssi)) { $line .= file_get_contents($url); } } } $line .= $rightdoc; } elseif (preg_match("/()/i", $line, $m)) { $cgi_doc = false; list($leftdoc, $rightdoc) = split($m[1], $line); $line = $rightdoc; } elseif (preg_match("/()/", $line, $m)) { $cgi_doc = true; list($leftdoc, $rightdoc) = split($m[1], $line); $html .= $leftdoc; if (is_file($System['path']. "/". $System['datadir']. "/sitedb/database.txt")) { $date = "最終更新日時 : ". jst_time(filemtime($System['path']. "/". $System['datadir']. "/sitedb/database.txt"), 7); } $html .= "
"; } !$cgi_doc && $html .= $line; } echo_encode($html); } else { errorpage(); } function description2($text, $len) { $Split = split("。", $text); $Match = array_values(preg_grep("/". $_REQUEST['keyword']. "/", $Split)); return($Match[0]); } ?>