# HG changeset patch # User František Kučera # Date 1269353359 -3600 # Node ID 6767606d6342e971f2aacccb6816e994cd6f36e3 # Parent df86ad0c0e55314c78ce3d8d982a65938c5a6422 Kaptcha & E-mail diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/nbproject/build-impl.xml --- a/java/nekurak.net-web/nbproject/build-impl.xml Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/nbproject/build-impl.xml Tue Mar 23 15:09:19 2010 +0100 @@ -537,13 +537,13 @@ - + - + diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/nbproject/genfiles.properties --- a/java/nekurak.net-web/nbproject/genfiles.properties Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/nbproject/genfiles.properties Tue Mar 23 15:09:19 2010 +0100 @@ -3,8 +3,8 @@ build.xml.stylesheet.CRC32=c0ebde35@1.21.2.1 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=44af31d0 -nbproject/build-impl.xml.script.CRC32=aefcc545 +nbproject/build-impl.xml.data.CRC32=28fc3c5a +nbproject/build-impl.xml.script.CRC32=cdc87d62 nbproject/build-impl.xml.stylesheet.CRC32=b139b33b@1.21.2.1 nbproject/rest-build.xml.data.CRC32=84da1c7b nbproject/rest-build.xml.script.CRC32=3db088b3 diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/nbproject/project.properties --- a/java/nekurak.net-web/nbproject/project.properties Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/nbproject/project.properties Tue Mar 23 15:09:19 2010 +0100 @@ -27,7 +27,7 @@ jar.compress=false javac.classpath=\ ${reference.nekurak_net-lib.jar}:\ - ${libs.restlib_gfv3ee6.classpath} + ${libs.Kaptcha.classpath} # Space-separated list of extra javac options javac.compilerargs= javac.debug=true diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/nbproject/project.xml --- a/java/nekurak.net-web/nbproject/project.xml Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/nbproject/project.xml Tue Mar 23 15:09:19 2010 +0100 @@ -16,7 +16,7 @@ WEB-INF/lib - ${libs.restlib_gfv3ee6.classpath} + ${libs.Kaptcha.classpath} WEB-INF/lib diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/web/WEB-INF/web.xml --- a/java/nekurak.net-web/web/WEB-INF/web.xml Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/web/WEB-INF/web.xml Tue Mar 23 15:09:19 2010 +0100 @@ -1,81 +1,89 @@ - 30 + 30 - index.jsp + index.jsp - - 404 - /WEB-INF/chyby/404.jsp + + 404 + /WEB-INF/chyby/404.jsp - - 500 - /WEB-INF/chyby/500.jsp + + 500 + /WEB-INF/chyby/500.jsp - atom - /WEB-INF/atom/atom.jsp + atom + /WEB-INF/atom/atom.jsp - + Servlet zpřístupňující fotky umístěné ve zvláštním adresáři (data oddělená od aplikace). - fotky - cz.frantovo.nekurak.servlet.Fotky - - + fotky + cz.frantovo.nekurak.servlet.Fotky + + Adresář na disku, který obsahuje fotky podniků. Musí existovat při startu aplikace. - adresar - /var/www/nekurak.net/fotky - - 1 + adresar + /var/www/nekurak.net/fotky + + 1 + + + Kaptcha + com.google.code.kaptcha.servlet.KaptchaServlet - fotky - /fotky/* + fotky + /fotky/* - atom - /atom/* + atom + /atom/* + + + Kaptcha + /kaptcha.jpg - - javax.servlet.jsp.jstl.fmt.fallbackLocale - cs + + javax.servlet.jsp.jstl.fmt.fallbackLocale + cs - opravneny + opravneny - - Správa Nekuřák.net - /sprava/* - - - opravneny - + + Správa Nekuřák.net + /sprava/* + + + opravneny + - FORM - nekurakNET - - /?akce=prihlaseni - /?akce=prihlaseni&chyba=ano - + FORM + nekurakNET + + /?akce=prihlaseni + /?akce=prihlaseni&chyba=ano + diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/web/grafika/info.png Binary file java/nekurak.net-web/web/grafika/info.png has changed diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/web/kaptcha.jsp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/nekurak.net-web/web/kaptcha.jsp Tue Mar 23 15:09:19 2010 +0100 @@ -0,0 +1,72 @@ + + + + + + + + + + + + + + +

+ + + +

Odeslané údaje:

+ +

Políčko 1:

+

Políčko 2:

+

Kaptcha:

+ +

Očekávaná hodnota:

+ + + +

Správně opsaný kód z obrázku.

+
+ +

Špatně obsaný kód z obrázku.

+
+
+ + + +
+ + +

Nějaký formulář, který chceme ochránit proti spamu:

+
+
+
+
+
+
+ + ochrana proti spamu
+ + +
+
+
+ +
+
+
+
+ +
+ +
diff -r df86ad0c0e55 -r 6767606d6342 java/nekurak.net-web/web/styl.css --- a/java/nekurak.net-web/web/styl.css Tue Mar 23 12:11:04 2010 +0100 +++ b/java/nekurak.net-web/web/styl.css Tue Mar 23 15:09:19 2010 +0100 @@ -142,6 +142,19 @@ background-color: #ffc65e; } +.informacniHlaska { + background-image: url('grafika/info.png'); + background-repeat: no-repeat; + background-position: 8px 8px; + min-height: 33px; + padding-top: 15px; + padding-left: 50px; + margin-top: 10px; + margin-bottom: 10px; + border: 2px solid #99ccff; + background-color: #bfdfff; +} + .registraceKontrolaUdaju { color: gray; }