[Pyukiwiki-cvs 0010145] CVS update: PyukiWiki-Devel-UTF8/lib

アーカイブの一覧に戻る

PyukiWiki CVS Commit pyuki****@lists*****
2012年 4月 2日 (月) 11:49:12 JST


Index: PyukiWiki-Devel-UTF8/lib/urlhack.inc.pl
diff -u PyukiWiki-Devel-UTF8/lib/urlhack.inc.pl:1.349 PyukiWiki-Devel-UTF8/lib/urlhack.inc.pl:1.350
--- PyukiWiki-Devel-UTF8/lib/urlhack.inc.pl:1.349	Wed Mar 21 17:35:10 2012
+++ PyukiWiki-Devel-UTF8/lib/urlhack.inc.pl	Mon Apr  2 11:49:12 2012
@@ -1,6 +1,6 @@
 ######################################################################
 # urlhack.inc.pl - This is PyukiWiki, yet another Wiki clone.
-# $Id: urlhack.inc.pl,v 1.349 2012/03/21 08:35:10 papu Exp $
+# $Id: urlhack.inc.pl,v 1.350 2012/04/02 02:49:12 papu Exp $
 #
 # "PyukiWiki" ver 0.2.0-p3-dev2 $$
 # Author: Nanami http://nanakochi.daiba.cx/
@@ -258,6 +258,16 @@
 	}
 	$req=&plugin_urlhack_decode($req);
 
+	# robots.txt用												# comment
+	if($req eq "robots.txt") {
+		print &http_header("text/plain");
+		print <<EOM;
+User-agent: *
+Allow: /
+Crawl-delay: 10
+EOM
+		exit;
+	}
 	# URIが空の時の処理											# comment
 	if($req eq '') {
 		# 通常のエンコードの場合の処理							# comment



Pyukiwiki-cvs メーリングリストの案内
アーカイブの一覧に戻る