Permalink
Browse files

first commit

  • Loading branch information...
0 parents commit 404f89a8043275f48cb841507899daadd2647449 @dapphp committed Jan 8, 2011
Showing with 18,051 additions and 0 deletions.
  1. BIN AHGBold.ttf
  2. +458 −0 LICENSE.txt
  3. +12 −0 README.FONT.txt
  4. +88 −0 README.txt
  5. BIN audio/0.mp3
  6. BIN audio/0.wav
  7. BIN audio/1.mp3
  8. BIN audio/1.wav
  9. BIN audio/2.mp3
  10. BIN audio/2.wav
  11. BIN audio/3.mp3
  12. BIN audio/3.wav
  13. BIN audio/4.mp3
  14. BIN audio/4.wav
  15. BIN audio/5.mp3
  16. BIN audio/5.wav
  17. BIN audio/6.mp3
  18. BIN audio/6.wav
  19. BIN audio/7.mp3
  20. BIN audio/7.wav
  21. BIN audio/8.mp3
  22. BIN audio/8.wav
  23. BIN audio/9.mp3
  24. BIN audio/9.wav
  25. BIN audio/A.mp3
  26. BIN audio/A.wav
  27. BIN audio/B.mp3
  28. BIN audio/B.wav
  29. BIN audio/C.mp3
  30. BIN audio/C.wav
  31. BIN audio/D.mp3
  32. BIN audio/D.wav
  33. BIN audio/E.mp3
  34. BIN audio/E.wav
  35. BIN audio/F.mp3
  36. BIN audio/F.wav
  37. BIN audio/G.mp3
  38. BIN audio/G.wav
  39. BIN audio/H.mp3
  40. BIN audio/H.wav
  41. BIN audio/I.mp3
  42. BIN audio/I.wav
  43. BIN audio/J.mp3
  44. BIN audio/J.wav
  45. BIN audio/K.mp3
  46. BIN audio/K.wav
  47. BIN audio/L.mp3
  48. BIN audio/L.wav
  49. BIN audio/M.mp3
  50. BIN audio/M.wav
  51. BIN audio/N.mp3
  52. BIN audio/N.wav
  53. BIN audio/O.mp3
  54. BIN audio/O.wav
  55. BIN audio/P.mp3
  56. BIN audio/P.wav
  57. BIN audio/Q.mp3
  58. BIN audio/Q.wav
  59. BIN audio/R.mp3
  60. BIN audio/R.wav
  61. BIN audio/S.mp3
  62. BIN audio/S.wav
  63. BIN audio/T.mp3
  64. BIN audio/T.wav
  65. BIN audio/U.mp3
  66. BIN audio/U.wav
  67. BIN audio/V.mp3
  68. BIN audio/V.wav
  69. BIN audio/W.mp3
  70. BIN audio/W.wav
  71. BIN audio/X.mp3
  72. BIN audio/X.wav
  73. BIN audio/Y.mp3
  74. BIN audio/Y.wav
  75. BIN audio/Z.mp3
  76. BIN audio/Z.wav
  77. BIN backgrounds/bg3.jpg
  78. BIN backgrounds/bg4.jpg
  79. BIN backgrounds/bg5.jpg
  80. BIN backgrounds/bg6.png
  81. +1 −0 database/.htaccess
  82. +1 −0 database/index.html
  83. BIN database/securimage.sqlite
  84. +71 −0 example_form.php
  85. BIN gdfonts/automatic.gdf
  86. BIN images/audio_icon.gif
  87. BIN images/refresh.gif
  88. +1,584 −0 securimage.php
  89. +43 −0 securimage_play.php
  90. BIN securimage_play.swf
  91. +55 −0 securimage_show.php
  92. +64 −0 securimage_show_example.php
  93. +55 −0 securimage_show_example2.php
  94. +15,619 −0 words/words.txt
Binary file not shown.

Large diffs are not rendered by default.

Oops, something went wrong.
@@ -0,0 +1,12 @@
+AHGBold.ttf is used by Securimage under the following license:
+
+Alte Haas Grotesk is a typeface that look like an helvetica printed in an old Muller-Brockmann Book.
+
+These fonts are freeware and can be distributed as long as they are
+together with this text file.
+
+I would appreciate very much to see what you have done with it anyway.
+
+yann le coroller
+www.yannlecoroller.com
+yann@lecoroller.com
@@ -0,0 +1,88 @@
+NAME:
+
+ Securimage - A PHP class for creating and managing form CAPTCHA images
+
+VERSION: 2.0 BETA
+
+AUTHOR:
+
+ Drew Phillips <drew@drew-phillips.com>
+
+DOWNLOAD:
+
+ The latest version can always be
+ found at http://www.phpcaptcha.org
+
+DOCUMENTATION:
+
+ Online documentation of the class, methods, and variables can
+ be found at http://www.phpcaptcha.org/Securimage_Docs/
+
+REQUIREMENTS:
+ PHP 4.3.0
+ GD 2.0
+ FreeType (recommended, required for TTF support)
+
+SYNOPSIS:
+
+ require_once 'securimage.php';
+
+ $image = new Securimage();
+
+ $image->show();
+
+ // Code Validation
+
+ $image = new Securimage();
+ if ($image->check($_POST['code']) == true) {
+ echo "Correct!";
+ } else {
+ echo "Sorry, wrong code.";
+ }
+
+DESCRIPTION:
+
+ What is Securimage?
+
+ Securimage is a PHP class that is used to generate and validate CAPTCHA images.
+ The classes uses an existing PHP session or creates its own if none is found to store the
+ CAPTCHA code. Variables within the class are used to control the style and display of the image.
+ The class supports TTF fonts and effects for strengthening the security of the image.
+ If TTF support is not available, GD fonts can be used as well, but certain options such as
+ transparent text and angled letters cannot be used.
+
+
+COPYRIGHT:
+ Copyright (c) 2009 Drew Phillips. All rights reserved.
+ This software is released under the GNU Lesser General Public License.
+
+ -----------------------------------------------------------------------------
+ Flash code created for Securimage by Douglas Walsh (www.douglaswalsh.net)
+ Many thanks for releasing this to the project!
+
+ ------------------------------------------------------------------------------
+ Portions of Securimage contain code from Han-Kwang Nienhuys' PHP captcha
+
+ Han-Kwang Nienhuys' PHP captcha
+ Copyright June 2007
+
+ This copyright message and attribution must be preserved upon
+ modification. Redistribution under other licenses is expressly allowed.
+ Other licenses include GPL 2 or higher, BSD, and non-free licenses.
+ The original, unrestricted version can be obtained from
+ http://www.lagom.nl/linux/hkcaptcha/
+
+ -------------------------------------------------------------------------------
+ AHGBold.ttf (AlteHaasGroteskBold.ttf) font was created by Yann Le Coroller and is distributed as freeware
+
+ Alte Haas Grotesk is a typeface that look like an helvetica printed in an old Muller-Brockmann Book.
+
+ These fonts are freeware and can be distributed as long as they are
+ together with this text file.
+
+ I would appreciate very much to see what you have done with it anyway.
+
+ yann le coroller
+ www.yannlecoroller.com
+ yann@lecoroller.com
+
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1 @@
+deny from all
@@ -0,0 +1 @@
+
Binary file not shown.
@@ -0,0 +1,71 @@
+<?php
+
+/**
+ * Project: Securimage: A PHP class for creating and managing form CAPTCHA images<br />
+ * File: securimage.php<br />
+ * URL: www.phpcaptcha.org
+ */
+
+
+session_start(); // Start the session where the code will be stored.
+
+?>
+<html>
+<head>
+ <title>Securimage Test Form</title>
+</head>
+
+<body>
+
+<?php
+if (empty($_POST)) { ?>
+<form method="POST">
+Username:<br />
+<input type="text" name="username" /><br />
+Password:<br />
+<input type="text" name="password" /><br /><br />
+
+<div style="width: 430px; float: left; height: 90px">
+ <img id="siimage" align="left" style="padding-right: 5px; border: 0" src="securimage_show.php?sid=<?php echo md5(time()) ?>" />
+
+ <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">
+ <param name="allowScriptAccess" value="sameDomain" />
+ <param name="allowFullScreen" value="false" />
+ <param name="movie" value="securimage_play.swf?audio=securimage_play.php&bgColor1=#777&bgColor2=#fff&iconColor=#000&roundedCorner=5" />
+ <param name="quality" value="high" />
+
+ <param name="bgcolor" value="#ffffff" />
+ <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" />
+ </object>
+
+ <br />
+
+ <!-- pass a session id to the query string of the script to prevent ie caching -->
+ <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>
+</div>
+<div style="clear: both"></div>
+Code:<br />
+
+<!-- NOTE: the "name" attribute is "code" so that $img->check($_POST['code']) will check the submitted form field -->
+<input type="text" name="code" size="12" /><br /><br />
+
+<input type="submit" value="Submit Form" />
+</form>
+
+<?php
+} else { //form is posted
+ include("securimage.php");
+ $img = new Securimage();
+ $valid = $img->check($_POST['code']);
+
+ if($valid == true) {
+ echo "<center>Thanks, you entered the correct code.<br />Click <a href=\"{$_SERVER['PHP_SELF']}\">here</a> to go back.</center>";
+ } else {
+ echo "<center>Sorry, the code you entered was invalid. <a href=\"javascript:history.go(-1)\">Go back</a> to try again.</center>";
+ }
+}
+
+?>
+
+</body>
+</html>
Binary file not shown.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.

0 comments on commit 404f89a

Please sign in to comment.