<?xml version="1.0" encoding="iso8859-1"?>
<rss version="2.0">
<channel>
<title>WackoWiki - CapTcha</title>
<link>http://wackowiki.com/CapTcha</link>
<description>History/revisions of WackoWiki/CapTcha</description>
<language>en-us</language>
<copyright>noindex</copyright>
<item>
<title>2006-06-25 20:34:53</title>
<link>http://wackowiki.com/CapTcha/show?time=2006-06-25+20%3A34%3A53</link>
<description>&lt;div class="pageBefore">&lt;img src="http://wackowiki.com/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>&amp;#1057;&amp;#1088;&amp;#1072;&amp;#1074;&amp;#1085;&amp;#1077;&amp;#1085;&amp;#1080;&amp;#1077; &amp;#1074;&amp;#1077;&amp;#1088;&amp;#1089;&amp;#1080;&amp;#1081; &lt;a name=".captcha" href="http://wackowiki.com/CapTcha" class="">/Cap&amp;nbsp;Tcha&lt;/a> &amp;#1079;&amp;#1072; &lt;a href="http://wackowiki.com/CapTcha?time=2006-06-25+20%3A34%3A53">2006-06-25 20:34:53&lt;/a> &amp;#1080; &lt;a href="http://wackowiki.com/CapTcha">2006-06-25 20:36:22&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>&amp;#1044;&amp;#1086;&amp;#1073;&amp;#1072;&amp;#1074;&amp;#1083;&amp;#1077;&amp;#1085;&amp;#1086;:&lt;/b>&lt;br />
&lt;div class="additions">&lt;strong>captcha.patch&lt;/strong>&lt;br />
%%(php)&lt;/div>&lt;/div>
</description>
</item>
<item>
<title>2006-06-25 20:25:30</title>
<link>http://wackowiki.com/CapTcha/show?time=2006-06-25+20%3A25%3A30</link>
<description>&lt;div class="pageBefore">&lt;img src="http://wackowiki.com/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>&amp;#1057;&amp;#1088;&amp;#1072;&amp;#1074;&amp;#1085;&amp;#1077;&amp;#1085;&amp;#1080;&amp;#1077; &amp;#1074;&amp;#1077;&amp;#1088;&amp;#1089;&amp;#1080;&amp;#1081; &lt;a  href="http://wackowiki.com/CapTcha" class="">/Cap&amp;nbsp;Tcha&lt;/a> &amp;#1079;&amp;#1072; &lt;a href="http://wackowiki.com/CapTcha?time=2006-06-25+20%3A25%3A30">2006-06-25 20:25:30&lt;/a> &amp;#1080; &lt;a href="http://wackowiki.com/CapTcha?time=2006-06-25+20%3A34%3A53">2006-06-25 20:34:53&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>&amp;#1044;&amp;#1086;&amp;#1073;&amp;#1072;&amp;#1074;&amp;#1083;&amp;#1077;&amp;#1085;&amp;#1086;:&lt;/b>&lt;br />
&lt;div class="additions">&lt;!--notypo-->&lt;textarea class="code" rows="15" readonly="readonly">--- edit.php.org	2005-06-14 09:29:13.296302248 +0200
+++ edit.php	2005-06-14 11:19:53.318865384 +0200
@@ -19,6 +19,71 @@
         if ($this-&amp;gt;page[&amp;quot;time&amp;quot;] != $_POST[&amp;quot;previous&amp;quot;])
           $error = $this-&amp;gt;GetResourceValue(&amp;quot;OverwriteAlert&amp;quot;);
 
+/*captcha to avoid spam
+*/
+
+      //check whether anonymous user
+      //anonymous user has the IP or host name as name
+      //if name contains '.', we assume it's anonymous
+      if (strpos($this-&amp;gt;GetUserName(), '.')) {
+        //anonymous user, check the captcha
+/************************************************************\
+*
+*		freeCap v1.3 Copyright 2005 Howard Yeend
+*		www.puremango.co.uk
+*
+*    This file is part of freeCap.
+*
+*    freeCap is free software; you can redistribute it and/or modify
+*    it under the terms of the GNU General Public License as published by
+*    the Free Software Foundation; either version 2 of the License, or
+*    (at your option) any later version.
+*
+*    freeCap is distributed in the hope that it will be useful,
+*    but WITHOUT ANY WARRANTY; without even the implied warranty of
+*    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+*    GNU General Public License for more details.
+*
+*    You should have received a copy of the GNU General Public License
+*    along with freeCap; if not, write to the Free Software
+*    Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+*
+*
+\************************************************************/
+
+
+//session_start();
+
+	if(!empty($_SESSION['freecap_word_md5']) &amp;amp;&amp;amp; !empty($_POST['word']))
+	{
+		if(md5($_POST['word'])==$_SESSION['freecap_word_md5'])
+		{
+			// reset freecap session vars
+			// cannot stress enough how important it is to do this
+			// defeats re-use of known image with spoofed session id
+			$_SESSION['freecap_attempts'] = 0;
+			$_SESSION['freecap_word_md5'] = false;
+
+
+			// now process form
+
+
+			// now go somewhere else
+			// header(&amp;quot;Location: somewhere.php&amp;quot;);
+			$word_ok = &amp;quot;yes&amp;quot;;
+		} else {
+			$word_ok = &amp;quot;no&amp;quot;;
+		}
+	} else {
+		$word_ok = false;
+	}
+
+	if ($word_ok != &amp;quot;yes&amp;quot;) {
+	  //not the right word
+	  $error = $this-&amp;gt;GetResourceValue(&amp;quot;SpamAlert&amp;quot;);
+	}
+  
+      }
 
       // store
       if (!$error)
@@ -109,6 +174,18 @@
                                onmouseout ='this.className=&amp;quot;CancelBtn_Top&amp;quot;;' 
            type=&amp;quot;button&amp;quot; align=&amp;quot;top&amp;quot; value=&amp;quot;&amp;lt;?php echo str_replace(&amp;quot;\n&amp;quot;,&amp;quot; &amp;quot;,$this-&amp;gt;GetResourceValue(&amp;quot;EditCancelButton&amp;quot;)); ?&amp;gt;&amp;quot; onclick=&amp;quot;document.location='&amp;lt;?php echo addslashes($this-&amp;gt;href(&amp;quot;&amp;quot;, &amp;quot;&amp;quot;, &amp;quot;&amp;quot;, 1))?&amp;gt;';&amp;quot; 
             /&amp;gt;&amp;lt;br /&amp;gt;
+
+&amp;lt;!-- captcha code starts --&amp;gt;
+&amp;lt;?
+if (strpos($this-&amp;gt;GetUserName(), '.')) {
+?&amp;gt;
+&amp;lt;img src=&amp;quot;&amp;lt;?php echo $this-&amp;gt;GetConfigValue(&amp;quot;root_url&amp;quot;);?&amp;gt;images/freecap.php&amp;quot; id=&amp;quot;freecap&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;
+Please type the word you read in the image above:
+&amp;lt;input type=&amp;quot;text&amp;quot; name=&amp;quot;word&amp;quot;&amp;gt;
+&amp;lt;?php
+}
+?&amp;gt;
+&amp;lt;!-- end captcha --&amp;gt;
 &amp;lt;?php
    $output .= &amp;quot;&amp;lt;input type=\&amp;quot;hidden\&amp;quot; name=\&amp;quot;previous\&amp;quot; value=\&amp;quot;&amp;quot;.htmlspecialchars($previous).&amp;quot;\&amp;quot; /&amp;gt;&amp;lt;br /&amp;gt;&amp;quot;;
    if ($this-&amp;gt;GetConfigValue(&amp;quot;theme&amp;quot;)==&amp;quot;tabs&amp;quot;)&lt;/textarea>&lt;!--/notypo-->&lt;/div>&lt;/div>
</description>
</item>
<item>
<title>2006-06-25 20:25:16</title>
<link>http://wackowiki.com/CapTcha/show?time=2006-06-25+20%3A25%3A16</link>
<description>&lt;div class="pageBefore">&lt;img src="http://wackowiki.com/images/z.gif" width="1" height="1" border="0" alt="" style="display:block" align="top" />&lt;/div>&lt;div class="page">
&lt;b>&amp;#1057;&amp;#1088;&amp;#1072;&amp;#1074;&amp;#1085;&amp;#1077;&amp;#1085;&amp;#1080;&amp;#1077; &amp;#1074;&amp;#1077;&amp;#1088;&amp;#1089;&amp;#1080;&amp;#1081; &lt;a  href="http://wackowiki.com/CapTcha" class="">/Cap&amp;nbsp;Tcha&lt;/a> &amp;#1079;&amp;#1072; &lt;a href="http://wackowiki.com/CapTcha?time=2006-06-25+20%3A25%3A16">2006-06-25 20:25:16&lt;/a> &amp;#1080; &lt;a href="http://wackowiki.com/CapTcha?time=2006-06-25+20%3A25%3A30">2006-06-25 20:25:30&lt;/a>&lt;/b>&lt;br />
&lt;br />
&lt;b>&amp;#1044;&amp;#1086;&amp;#1073;&amp;#1072;&amp;#1074;&amp;#1083;&amp;#1077;&amp;#1085;&amp;#1086;:&lt;/b>&lt;br />
&lt;div class="additions">&lt;a name="h14636-1">&lt;/a>&lt;h1>CapTcha Hack&lt;/h1>&lt;/div>&lt;br />
&lt;b>&amp;#1059;&amp;#1076;&amp;#1072;&amp;#1083;&amp;#1077;&amp;#1085;&amp;#1086;:&lt;/b>&lt;br />
&lt;div class="deletions">&lt;a name="h14636-1">&lt;/a>&lt;h3>CapTcha Hack&lt;/h3>&lt;/div>&lt;/div>
</description>
</item>
</channel>
</rss>
