summary refs log tree commit diff stats
path: root/includes/securimage/example_form.php
diff options
context:
space:
mode:
authorStarla Insigna <hatkirby@fourisland.com>2010-08-17 13:46:39 -0400
committerStarla Insigna <hatkirby@fourisland.com>2010-08-17 13:46:39 -0400
commit86eb02fb248b2df07919889c47686bd77e6865d7 (patch)
tree2e3879b17e43084e183c2f51e2fc36ed872874d5 /includes/securimage/example_form.php
parent07be6bd4ac8e85b3c940abcd4b4d4a70a3d93593 (diff)
parent0085e272b2002437f11f74ccdde0d6975f2cd9f2 (diff)
downloadfourisland-86eb02fb248b2df07919889c47686bd77e6865d7.tar.gz
fourisland-86eb02fb248b2df07919889c47686bd77e6865d7.tar.bz2
fourisland-86eb02fb248b2df07919889c47686bd77e6865d7.zip
Merged unforgiving heads (and...)
Also updated public and private keys for reCAPTCHA. As well as the use of the new keys, Four Island now stores the private key along with the other
protected information that is not source controlled, instead of with the public key.
Diffstat (limited to 'includes/securimage/example_form.php')
-rwxr-xr-xincludes/securimage/example_form.php71
1 files changed, 0 insertions, 71 deletions
diff --git a/includes/securimage/example_form.php b/includes/securimage/example_form.php deleted file mode 100755 index 952a24b..0000000 --- a/includes/securimage/example_form.php +++ /dev/null
@@ -1,71 +0,0 @@
1<?php
2
3/**
4 * Project: Securimage: A PHP class for creating and managing form CAPTCHA images<br />
5 * File: securimage.php<br />
6 * URL: www.phpcaptcha.org
7 */
8
9
10session_start(); // Start the session where the code will be stored.
11
12?>
13<html>
14<head>
15 <title>Securimage Test Form</title>
16</head>
17
18<body>
19
20<?php
21if (empty($_POST)) { ?>
22<form method="POST">
23Username:<br />
24<input type="text" name="username" /><br />
25Password:<br />
26<input type="text" name="password" /><br /><br />
27
28<div style="width: 430px; float: left; height: 90px">
29 <img id="siimage" align="left" style="padding-right: 5px; border: 0" src="securimage_show.php?sid=<?php echo md5(time()) ?>" />
30
31 <object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="19" height="19" id="SecurImage_as3" align="middle">
32 <param name="allowScriptAccess" value="sameDomain" />
33 <param name="allowFullScreen" value="false" />
34 <param name="movie" value="securimage_play.swf?audio=securimage_play.php&bgColor1=#777&bgColor2=#fff&iconColor=#000&roundedCorner=5" />
35 <param name="quality" value="high" />
36
37 <param name="bgcolor" value="#ffffff" />
38 <embed src="securimage_play.swf?audio=securimage_play.php&bgColor1=#777&bgColor2=#fff&iconColor=#000&roundedCorner=5" quality="high" bgcolor="#ffffff" width="19" height="19" name="SecurImage_as3" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
39 </object>
40
41 <br />
42
43 <!-- pass a session id to the query string of the script to prevent ie caching -->
44 <a tabindex="-1" style="border-style: none" href="#" title="Refresh Image" onclick="document.getElementById('siimage').src = 'securimage_show.php?sid=' + Math.random(); return false"><img src="images/refresh.gif" alt="Reload Image" border="0" onclick="this.blur()" align="bottom" /></a>
45</div>
46<div style="clear: both"></div>
47Code:<br />
48
49<!-- NOTE: the "name" attribute is "code" so that $img->check($_POST['code']) will check the submitted form field -->
50<input type="text" name="code" size="12" /><br /><br />
51
52<input type="submit" value="Submit Form" />
53</form>
54
55<?php
56} else { //form is posted
57 include("securimage.php");
58 $img = new Securimage();
59 $valid = $img->check($_POST['code']);
60
61 if($valid == true) {
62 echo "<center>Thanks, you entered the correct code.<br />Click <a href=\"{$_SERVER['PHP_SELF']}\">here</a> to go back.</center>";
63 } else {
64 echo "<center>Sorry, the code you entered was invalid. <a href=\"javascript:history.go(-1)\">Go back</a> to try again.</center>";
65 }
66}
67
68?>
69
70</body>
71</html>