2001-11-16 11:03:56 +00:00
|
|
|
#!/usr/bin/python
|
2002-12-30 22:58:51 +00:00
|
|
|
# Copyright (C) 2000-2002 Bastian Kleineidam
|
2000-11-11 00:38:04 +00:00
|
|
|
#
|
2001-05-24 15:48:07 +00:00
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
|
# the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
# (at your option) any later version.
|
2000-11-11 00:38:04 +00:00
|
|
|
#
|
2001-05-24 15:48:07 +00:00
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU General Public License for more details.
|
2000-11-11 00:38:04 +00:00
|
|
|
#
|
2001-05-24 15:48:07 +00:00
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
|
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
2000-02-26 10:24:46 +00:00
|
|
|
|
2002-02-24 12:29:35 +00:00
|
|
|
import re, cgi, sys, urlparse, time, os
|
2002-12-30 22:58:51 +00:00
|
|
|
# log errors to stdout
|
2000-02-26 10:24:46 +00:00
|
|
|
sys.stderr = sys.stdout
|
2000-04-24 22:07:48 +00:00
|
|
|
|
2002-12-30 22:58:51 +00:00
|
|
|
# uncomment the following lines to test your CGI values
|
|
|
|
|
#cgi.test()
|
|
|
|
|
#sys.exit(0)
|
2002-11-03 01:31:31 +00:00
|
|
|
import linkcheck.lc_cgi
|
2002-12-30 22:58:51 +00:00
|
|
|
form = cgi.FieldStorage()
|
|
|
|
|
linkcheck.lc_cgi.checklink(form=form, env=form)
|