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()) ?>" />
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" />
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" />
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>
46<div
style=
"clear: both"></div>
49<!-- NOTE: the
"name" attribute is
"code" so that
$img->check(
$_POST[
'code']) will check the submitted form field -->
52<input
type=
"submit" value=
"Submit Form" />
57 include(
"securimage.php");
62 echo
"<center>Thanks, you entered the correct code.<br />Click <a href=\"{$_SERVER['PHP_SELF']}\">here</a> to go back.</center>";
64 echo
"<center>Sorry, the code you entered was invalid. <a href=\"javascript:history.go(-1)\">Go back</a> to try again.</center>";
return false Description text align
Project: Securimage: A PHP class for creating and managing form CAPTCHA images File: securimage....