mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-24 16:14:45 +00:00
add translated cgi files
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@692 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
ce50704a85
commit
91f6b3bfa2
8 changed files with 101 additions and 31 deletions
|
|
@ -12,6 +12,9 @@
|
|||
Changed files: lc.cgi, lc.fcgi, lc.sz_fcgi, linkcheck/lc_cgi.py
|
||||
* put some linebreaks and target="top" into HTML output
|
||||
Changed files: linkcheck/logging/HtmlLogger.py
|
||||
* add translated cgi files
|
||||
Changed files: setup.py, MANIFEST.in, debian/rules
|
||||
Added files: lconline/*.de
|
||||
|
||||
1.8.1
|
||||
* Add missing () to function call in proxy handling code
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ include debian/rules debian/changelog debian/copyright debian/control
|
|||
include debian/linkchecker.*
|
||||
include test/*.py test/*.txt
|
||||
include test/output/test_* test/html/*.html
|
||||
include lconline/*.html
|
||||
include lconline/*.html lconline/*.de
|
||||
include linkcheck/parser/Makefile linkcheck/parser/htmllex.l
|
||||
include linkcheck/parser/htmlparse.y linkcheck/parser/htmlparse.h
|
||||
include linkcheck/parser/htmlsax.h
|
||||
|
|
|
|||
45
TODO
45
TODO
|
|
@ -1,30 +1,23 @@
|
|||
- better CGI scripts
|
||||
- Javascript in CGI scripts
|
||||
<form onsubmit=return(isRequired(document.checklinkForm)) name=checklinkForm ...>
|
||||
</form>
|
||||
|
||||
//Check for the required fields
|
||||
function isRequired(thisForm)
|
||||
{
|
||||
|
||||
var empty = false;
|
||||
|
||||
// URI
|
||||
if ( (isEmpty(thisForm.uri)) ||
|
||||
(thisForm.uri.value == "http://") )
|
||||
{
|
||||
alert("The URL field is required. Please fill it in.");
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
// verify URL format
|
||||
if ( (empty == false) &&
|
||||
( verifyURI(thisForm.uri) == false) )
|
||||
{
|
||||
alert("Invalid URL submitted. Please submit a valid UH URL.")
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
return (!(empty));
|
||||
}
|
||||
function isRequired (thisForm) {
|
||||
var empty = false;
|
||||
// URI
|
||||
if (isEmpty(thisForm.uri) || (thisForm.uri.value == "http://")) {
|
||||
alert("The URL field is required. Please fill it in.");
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
// verify URL format
|
||||
if ((empty == false) && (verifyURI(thisForm.uri) == false)) {
|
||||
alert("Invalid URL submitted. Please submit a valid URL.");
|
||||
thisForm.uri.select();
|
||||
thisForm.uri.focus();
|
||||
empty = true;
|
||||
}
|
||||
return (!(empty));
|
||||
}
|
||||
|
|
|
|||
1
debian/rules
vendored
1
debian/rules
vendored
|
|
@ -46,6 +46,7 @@ install: build
|
|||
rm -r $(ROOT)/usr/share/linkchecker/examples
|
||||
# install CGI files
|
||||
install -c -m 644 lconline/*.html $(HTMLDIR)
|
||||
install -c -m 644 lconline/*.de $(HTMLDIR)
|
||||
cat lc.cgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.cgi
|
||||
cat lc.fcgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.fcgi
|
||||
cat lc.sz_fcgi | sed 's#/usr/bin/python#/usr/bin/$(PYTHON)#' > $(CGIDIR)/lc.sz_fcgi
|
||||
|
|
|
|||
|
|
@ -50,9 +50,9 @@ target="_top">LinkChecker</a>)
|
|||
<td>Output language:</td>
|
||||
<td><select name="language">
|
||||
<option value="C" selected>English</option>
|
||||
<option value="de">Deutsch</option>
|
||||
<option value="fr">Français</option>
|
||||
<option value="nl">Nederlands</option>
|
||||
<option value="de">German</option>
|
||||
<option value="fr">French</option>
|
||||
<option value="nl">Dutch</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>Check strict intern links:</td>
|
||||
|
|
|
|||
63
lconline/lc_cgi.html.de
Normal file
63
lconline/lc_cgi.html.de
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
<html><head>
|
||||
<title>LinkChecker Online</title>
|
||||
<style type="text/css">
|
||||
<!--
|
||||
h2 { font-family: Verdana,sans-serif; font-size: 22pt;
|
||||
font-style: bold; font-weight: bold }
|
||||
body { font-family: Arial,sans-serif; font-size: 11pt }
|
||||
td { font-family:Arial,sans-serif; font-size:11pt }
|
||||
code { font-family: Courier }
|
||||
a:hover { color: #34a4ef }
|
||||
//-->
|
||||
</style>
|
||||
</head>
|
||||
<body text="#192c83" bgcolor="#fff7e5" link="#191c83" vlink="#191c83"
|
||||
alink="#191c83">
|
||||
|
||||
<center><h2>LinkChecker Online</h2>
|
||||
(läuft mit Öl vom <a href="http://linkchecker.sourceforge.net/"
|
||||
target="_top">LinkChecker</a>)
|
||||
</center>
|
||||
|
||||
<blockquote>
|
||||
<form method="POST" action="/cgi-bin/lconline/lc.cgi" target="links">
|
||||
<table border="0" cellpadding="2" cellspacing="0" summary="">
|
||||
<tr height="50">
|
||||
<td>Url:</td>
|
||||
<td colspan="4"><input size="70" name="url" value="http://">
|
||||
<input type="submit" value="Go!">
|
||||
</td>
|
||||
</tr>
|
||||
<td rowspan="3" valign="top">Optionen:</td>
|
||||
<td>Rekursionstiefe:</td>
|
||||
<td><select name="level">
|
||||
<option value="0">0</option>
|
||||
<option value="1" selected>1</option>
|
||||
<option value="2">2</option>
|
||||
<option value="3">3</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>Prüfe Anker in HTML:</td>
|
||||
<td><input type="checkbox" name="anchors" checked></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Nur Fehler ausgeben:</td>
|
||||
<td><input type="checkbox" name="errors"></td>
|
||||
<td>Prüfe nur interne Links:</td>
|
||||
<td><input type="checkbox" name="intern" checked></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Ausgabe:</td>
|
||||
<td><select name="language">
|
||||
<option value="C" selected>Englisch</option>
|
||||
<option value="de">Deutsch</option>
|
||||
<option value="fr">Französisch</option>
|
||||
<option value="nl">Niederländisch</option>
|
||||
</select>
|
||||
</td>
|
||||
<td>Prüfe strikt interne Links:</td>
|
||||
<td><input type="checkbox" name="strict"></td>
|
||||
</tr>
|
||||
</table>
|
||||
</blockquote>
|
||||
</body></html>
|
||||
9
lconline/leer.html.de
Normal file
9
lconline/leer.html.de
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<html><head>
|
||||
<title>Leer</title>
|
||||
</head>
|
||||
<body text="#192c83" bgcolor="#fff7e5" link="#191c83" vlink="#191c83"
|
||||
alink="#191c83">
|
||||
<div style="font-family:Arial,sans-serif;">
|
||||
Keine Links geprüft!
|
||||
</div>
|
||||
</body></html>
|
||||
3
setup.py
3
setup.py
|
|
@ -187,8 +187,9 @@ o a (Fast)CGI web interface (requires HTTP server)
|
|||
['share/locale/nl/LC_MESSAGES/linkcheck.mo']),
|
||||
('share/linkchecker', ['linkcheckerrc']),
|
||||
('share/linkchecker/examples',
|
||||
['lconline/leer.html',
|
||||
['lconline/leer.html', 'lconline/leer.html.de'
|
||||
'lconline/index.html', 'lconline/lc_cgi.html',
|
||||
'lconline/lc_cgi.html.de',
|
||||
'lc.cgi','lc.fcgi','lc.sz_fcgi','linkchecker.bat']),
|
||||
('share/man/man1', ['linkchecker.1']),
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue