⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 messages.php

📁 开源的蜘蛛程序
💻 PHP
字号:
<?
function printRobotsReport($num, $thislink, $cl) {
	if ($cl==0) {
		print "<b>$num</b>. Link <b>$thislink</b>: <font color=red>file checking forbidden in robots.txt file</font></br>";
	} else {
		print "$num. Link $thislink: file checking forbidden in robots.txt file.\n";
	}
	flush();
}

function printUrlStringReport($num, $thislink, $cl) {
	if ($cl==0) {
		print "<b>$num</b>. Link <b>$thislink</b>: <font color=red>file checking forbidden by required/disallowed string rule</font></br>";
	} else {
		print "$num. Link $thislink: file checking forbidden  by required/disallowed string rule.\n";
	}
	flush();
}

function printRetrieving($num, $thislink, $cl) {
	if ($cl==0) {
	    print "<b>$num</b>. Retrieving: <b>$thislink</b> at " . date("H:i:s").".<br>\n";
	} else {
	    print "$num. Retrieving: $thislink at " . date("H:i:s").".\n";
	}
	flush();
}

function printNoFollow($cl) {
	if ($cl==0) {
        print " <font color=red><b> No-follow flag set</b></font>. ";
	} else {
        print " No-follow flag set.";
	}
	flush();
}


function printDatabaseReport($cl) {
	if ($cl==0) {
        print " <font color=red><b> already in database</b></font><br>";
	} else {
        print " already in database\n";
	}
	flush();
}
function printLinksReport($numoflinks, $all_links, $cl) {
	if ($numoflinks == '')
		$numoflinks = 0;
	if ($all_links == '')
		$all_links = 0;

	if ($cl==0) {
        print  " Links found: <font color=\"blue\"><b>$all_links</b></font>. New links: <font color=\"blue\"><b>$numoflinks</b></font><br>\n";
	} else {
        print " Legit links found: $all_links. New links found: $numoflinks\n";
	}
	flush();
}

function printHeader($omit, $url, $cl) {
	if (count($omit) > 0 ) {
		$urlparts = parse_url($url);
		foreach ($omit as $dir) {            
            $omits[] = $urlparts['scheme']."://".$urlparts['host'].$dir;
			}
		}
	if ($cl==0) {
        print "<html><head><LINK REL=STYLESHEET HREF=\"admin.css\" TYPE=\"text/css\"></head>";
		print "<body>[Back to <a href=\"admin.php\">admin</a>]<p><font size=\"+1\">Spidering <b>$url</b></font></p>";
		if (count($omit) > 0) {
			print "Disallowed files and directories in robots.txt:<br>\n";
			print implode("<br>", $omits);
			print "<br><br>";
		}
	} else {
        print "Spidering $url\n";
		if (count($omit) > 0) {
			print "Disallowed files and directories in robots.txt:\n";
			print implode("\n", $omits);
			print "\n\n";
		}
	}
	flush();
}

function printPageSizeReport($pageSize) {
	print "Size of page: $pageSize"."kb. ";
	flush();
}

function printIndexStartReport() {
	print " Starting indexing at " . date("H:i:s");
	flush();
} 

function printStatusReport($report) {
	print $report."\n";
	flush();
}

function printConnectErrorReport($errmsg) {
	print "Establishing connection with socket failed";
	print $errmsg;
	flush();
}

function printCompletedReport($command_line) {
	print "Completed at " . date("H:i:s")."\n";
	if ($command_line == 0)
		print "<br>";
	flush();
}
function printQuitReport($command_line) {
	if ($command_line == 0)
		print"</body></html>";
	flush();
}

function printRemovalReport($command_line) {
	if ($command_line == 0) {
		print " Page removed from index.\n";
	} else {
		print " <font color=red>Page removed from index.</font><br>\n";
	}
	flush();
}

?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -