<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>code Archives - Abeon Tech</title>
	<atom:link href="https://abeontech.com/tag/code/feed/" rel="self" type="application/rss+xml" />
	<link>https://abeontech.com/tag/code/</link>
	<description>Sardonic infosec.</description>
	<lastBuildDate>Tue, 03 Aug 2021 11:24:37 +0000</lastBuildDate>
	<language>en-GB</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://abeontech.com/wp-content/uploads/2021/07/cropped-android-chrome-512x512-1-32x32.png</url>
	<title>code Archives - Abeon Tech</title>
	<link>https://abeontech.com/tag/code/</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">4629696</site>	<item>
		<title>WebWoW Captcha Mod</title>
		<link>https://abeontech.com/code/webwow-registration-captcha/</link>
					<comments>https://abeontech.com/code/webwow-registration-captcha/#respond</comments>
		
		<dc:creator><![CDATA[mradamdavies]]></dc:creator>
		<pubDate>Mon, 15 Nov 2010 04:35:00 +0000</pubDate>
				<category><![CDATA[Code]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[mod]]></category>
		<guid isPermaLink="false">https://abeontech.com/?p=1212</guid>

					<description><![CDATA[<p>WebWoW CMS has just released a v2 beta which seems great so far. Of course there are a few small bugs, but nothing that breaks functionality… Mostly undefined indexes and...</p>
<p>The post <a href="https://abeontech.com/code/webwow-registration-captcha/">WebWoW Captcha Mod</a> appeared first on <a href="https://abeontech.com">Abeon Tech</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">WebWoW CMS has just released a v2 beta which seems great so far. Of course there are a few small bugs, but nothing that breaks functionality… Mostly undefined indexes and the like. I will probably make a few mods and hacks for the CMS as it’s a great project with a nice style and ethos. This simple modification will place a captcha on the registration page to help prevent spam, bots, and fake registrations.</p>



<p class="wp-block-paragraph">After about 10 minutes of setting the WebWoW CMS I started to get bot registrations indicated by the spammy usernames and lack of activity. I decided to create a small <strong>WebWoW CMS Mod</strong> to help prevent the influx of spam. Hopefully this will be of use to someone.</p>



<p class="wp-block-paragraph">Only two files edits are required so it shouldn&#8217;t take more than 5 minutes to implement.</p>



<h2 class="is-style-squadforce-decorated wp-block-heading">Registration Captcha Mod</h2>



<p class="wp-block-paragraph">Please remember to backup any files before editing!</p>



<p class="wp-block-paragraph"></p>



<p class="wp-block-paragraph"><strong>Open: engine/func/session.php</strong></p>



<p class="wp-block-paragraph">1a] Find: (about line 324)</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">function register($subuser, $subpass, $subemail){</pre>



<p class="wp-block-paragraph">Change to:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">function register($subuser, $subpass, $subemail, $subcaptcha){</pre>



<p class="wp-block-paragraph">1b] Find: (about line 397)</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">$subemail = stripslashes($subemail);
      }</pre>



<p class="wp-block-paragraph">Add below:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">      /* captcha error checking - nowares */
      $field = "captcha";  //Use field name for the generated captcha image
      if(!$subcaptcha || $subcaptcha != $_SESSION['captcha']){
         $form->setError($field, "* captcha incorrect");
      }
      else{
         $subcaptcha = mysql_real_escape_string($subcaptcha);
      }</pre>



<p class="wp-block-paragraph"><strong>Open: engine/modules/register.php</strong></p>



<p class="wp-block-paragraph">2a] Find: (about line 26)</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">      $retval = $user->register($_POST['user_name'], $_POST['pass_word'], $_POST['email']);</pre>



<p class="wp-block-paragraph">Replace with:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">      $retval = $user->register($_POST['user_name'], $_POST['pass_word'], $_POST['email'], $_POST['captcha']);</pre>



<p class="wp-block-paragraph">2b] Find: (about line 109)</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;td>&lt;?php echo $form->error("email"); ?>&lt;/td>&lt;/tr></pre>



<p class="wp-block-paragraph">Add below:</p>



<pre class="EnlighterJSRAW" data-enlighter-language="generic" data-enlighter-theme="" data-enlighter-highlight="" data-enlighter-linenumbers="" data-enlighter-lineoffset="" data-enlighter-title="" data-enlighter-group="">&lt;tr>
    &lt;td>Captcha:&lt;/td>
    &lt;td>&lt;img src="captcha/php_captcha.php"> &amp;nbsp;&lt;input name="captcha" type="text" style="width:65px;position:relative;bottom:5px;" value="&lt;?php echo $form->value("captcha"); ?>" />&lt;/td>
    &lt;td>&lt;?php echo $form->error("captcha"); ?>&lt;/td>
&lt;/tr></pre>



<p class="wp-block-paragraph"><strong>Upload captcha/ folder to your site root</strong></p>



<div class="wp-block-image is-style-default"><figure class="aligncenter size-full"><img fetchpriority="high" decoding="async" width="291" height="205" src="https://abeontech.com/wp-content/uploads/2021/08/nwow-captcha-mod.png" alt="" class="wp-image-1616" srcset="https://abeontech.com/wp-content/uploads/2021/08/nwow-captcha-mod.png 291w, https://abeontech.com/wp-content/uploads/2021/08/nwow-captcha-mod-48x34.png 48w" sizes="(max-width: 291px) 100vw, 291px" /></figure></div>



<p class="wp-block-paragraph">Please note: WebWoW CMS was discontinued and the code is no longer available. This post will remain for archive purposes.</p>
<p>The post <a href="https://abeontech.com/code/webwow-registration-captcha/">WebWoW Captcha Mod</a> appeared first on <a href="https://abeontech.com">Abeon Tech</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://abeontech.com/code/webwow-registration-captcha/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">1212</post-id>	</item>
	</channel>
</rss>

<!--
Performance optimized by W3 Total Cache. Learn more: https://www.boldgrid.com/w3-total-cache/?utm_source=w3tc&utm_medium=footer_comment&utm_campaign=free_plugin

Page Caching using Disk: Enhanced 
Minified using Disk
Database Caching 163/184 queries in 0.036 seconds using Disk (Request-wide modification query)

Served from: abeontech.com @ 2026-07-11 23:28:04 by W3 Total Cache
-->