日期:2012-03-24 浏览次数:20499 次
- <?php
- /****************************************************
- program : Spr2[search_html]
- Author : uchinaboy
- E-mail : uchinaboy@163.com
- QQ : 16863798
- Date : 2001-8-9
- ****************************************************/
- //require("config.inc.php");
- function get_msg($path) {
- global $key, $i;
- $handle = opendir($path);
- while ($filename = readdir($handle)) {
- //echo $path."/".$filename."<br>";
- $newpath = $path."/".$filename;
- $check_type = preg_match("/\.html?$/", $filename);
- if (is_file($newpath) && $check_type) {
- $fp = fopen($newpath, "r");
- $msg = fread($fp, filesize($newpath));
- fclose($fp);
- match_show($key, $msg, $newpath, $filename);
- }
- if (is_dir($path."/".$filename) && ($filename != "."