tony 2003/10/31 09:12:13
Added: src/blocks/scratchpad/samples/image-auth/documents
auth-jxt.svg main.jxt success.jxt
Log:
various source documents for the image-auth samples
Revision Changes Path
1.1
cocoon-2.1/src/blocks/scratchpad/samples/image-auth/documents/auth-jxt.svg
Index: auth-jxt.svg
===================================================================
<?xml version="1.0" encoding="UTF-8"?>
<svg width="200" height="75">
<defs>
<filter id="blur2">
<feGaussianBlur stdDeviation="2"/>
</filter>
</defs>
<g id="imagegroup">
<text
style="fill:#0086B3;font-size:42;font-family:TrebuchetMS-Bold;filter:url(#blur2);"
x="0" y="48">${text}</text>
</g>
</svg>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/image-auth/documents/main.jxt
Index: main.jxt
===================================================================
<?xml version="1.0"?>
<html xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<head>
<title>image authentication</title>
</head>
<body>
<h1>Image-based authentication</h1>
<p>As a security measure, please enter the string you see below.</p>
<img src="auth-${continuation.id}.jpg"/>
<form method="post" action="${continuation.id}.flow">
<input type="text" name="secret"/>
<input type="submit"/>
</form>
</body>
</html>
1.1
cocoon-2.1/src/blocks/scratchpad/samples/image-auth/documents/success.jxt
Index: success.jxt
===================================================================
<?xml version="1.0"?>
<html xmlns:jx="http://apache.org/cocoon/templates/jx/1.0">
<head>
<title>image authentication</title>
</head>
<body>
<h1>Success!</h1>
<p>The code was obviously ${secret}</p>
<p>This sample demonstrates how you would implement an image-based
authentication using flow and the intercepted flowscript.</p>
<p>This is most commonly used to keep robots or spiders out of an area,
but
you don't neccesarily care about humans.</p>
</body>
</html>