<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: CAPTCHA by own strength: Backend login form</title>
	<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/</link>
	<description>Travel notes by Physicist: finds, solutions, tips and tricks</description>
	<pubDate>Thu, 29 Jul 2010 14:45:15 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2</generator>

	<item>
		<title>By: dedet</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-14763</link>
		<author>dedet</author>
		<pubDate>Thu, 06 Nov 2008 14:11:55 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-14763</guid>
		<description>Thanks you... it is nice and work @ 1.0.15</description>
		<content:encoded><![CDATA[<p>Thanks you&#8230; it is nice and work @ 1.0.15</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Physicist</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5759</link>
		<author>Physicist</author>
		<pubDate>Fri, 13 Jun 2008 14:26:11 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5759</guid>
		<description>&lt;p&gt;Yes, there was some small changes in index.php, so updated code reads:&lt;/p&gt;
&lt;pre lang="php"&gt;
	if($pass == NULL) {
		echo "&lt;script&gt;alert('Please enter a password');
document.location.href='index.php?mosmsg=Please enter a password'&lt;/script&gt;\n";
		exit();
	}

// CAPTCHA PATCH BEGIN
session_start();
$captcha=$_POST['captcha'];
if(!isset($_SESSION['captcha_keystring'])&#124;&#124;$_SESSION['captcha_keystring']!==$captcha)
{
	$mosmsg='You need to enter the code shown.';
	echo "&lt;script&gt;alert('$mosmsg');document.location.href='index.php?mosmsg=$mosmsg'&lt;/script&gt;\n";
	unset($_SESSION['captcha_keystring']);
	exit;
}
session_unset();
session_write_close();
// CAPTCHA PATCH END

	$query = "SELECT COUNT(*)"
	. "\n FROM #__users"
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>Yes, there was some small changes in index.php, so updated code reads:</p>

<div class="wp_syntax"><div class="code"><pre class="php">	<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$pass</span> == <span style="color: #000000; font-weight: bold;">NULL</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#123;</span>
		<span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;&lt;script&gt;alert('Please enter a password');
document.location.href='index.php?mosmsg=Please enter a password'&lt;/script&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
		<span style="color: #000066;">exit</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #66cc66;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">// CAPTCHA PATCH BEGIN</span>
<span style="color: #000066;">session_start</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #0000ff;">$captcha</span>=<span style="color: #0000ff;">$_POST</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'captcha'</span><span style="color: #66cc66;">&#93;</span>;
<span style="color: #b1b100;">if</span><span style="color: #66cc66;">&#40;</span>!<span style="color: #000066;">isset</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_SESSION</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'captcha_keystring'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>||<span style="color: #0000ff;">$_SESSION</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'captcha_keystring'</span><span style="color: #66cc66;">&#93;</span>!==<span style="color: #0000ff;">$captcha</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#123;</span>
	<span style="color: #0000ff;">$mosmsg</span>=<span style="color: #ff0000;">'You need to enter the code shown.'</span>;
	<span style="color: #000066;">echo</span> <span style="color: #ff0000;">&quot;&lt;script&gt;alert('$mosmsg');document.location.href='index.php?mosmsg=$mosmsg'&lt;/script&gt;<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span>;
	<span style="color: #000066;">unset</span><span style="color: #66cc66;">&#40;</span><span style="color: #0000ff;">$_SESSION</span><span style="color: #66cc66;">&#91;</span><span style="color: #ff0000;">'captcha_keystring'</span><span style="color: #66cc66;">&#93;</span><span style="color: #66cc66;">&#41;</span>;
	<span style="color: #000066;">exit</span>;
<span style="color: #66cc66;">&#125;</span>
<span style="color: #000066;">session_unset</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #000066;">session_write_close</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;
<span style="color: #808080; font-style: italic;">// CAPTCHA PATCH END</span>
&nbsp;
	<span style="color: #0000ff;">$query</span> = <span style="color: #ff0000;">&quot;SELECT COUNT(*)&quot;</span>
	. <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span> FROM #__users&quot;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: Guido</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5758</link>
		<author>Guido</author>
		<pubDate>Fri, 13 Jun 2008 07:11:01 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5758</guid>
		<description>it would be very helpful if you can help to rewrite the tutorial for joomla 1.0.15.
specially the  /administrator/index.php (insert after a line 57): part is totally different and causes me headache over a few days already.

Thank you very much

otherwise i find this tutorial very very useful - please keep up the great work.</description>
		<content:encoded><![CDATA[<p>it would be very helpful if you can help to rewrite the tutorial for joomla 1.0.15.<br />
specially the  /administrator/index.php (insert after a line 57): part is totally different and causes me headache over a few days already.</p>
<p>Thank you very much</p>
<p>otherwise i find this tutorial very very useful - please keep up the great work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: aly</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5129</link>
		<author>aly</author>
		<pubDate>Fri, 08 Feb 2008 22:07:09 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5129</guid>
		<description>&#160;&#160;&#160; will this script work with joomla 1.1.13? Particularly for the contact form. thank you!</description>
		<content:encoded><![CDATA[<p>&nbsp;&nbsp;&nbsp; will this script work with joomla 1.1.13? Particularly for the contact form. thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Physicist</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5019</link>
		<author>Physicist</author>
		<pubDate>Thu, 31 Jan 2008 07:56:45 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-5019</guid>
		<description>&lt;blockquote&gt;Do you have the instructions for the frontend login form available?&lt;/blockquote&gt;  I once made such. So, really, it will be necessary to publish such an instructions.</description>
		<content:encoded><![CDATA[<blockquote><p>Do you have the instructions for the frontend login form available?</p>
</blockquote>
<p>  I once made such. So, really, it will be necessary to publish such an instructions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TheShooter</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-4986</link>
		<author>TheShooter</author>
		<pubDate>Mon, 28 Jan 2008 05:44:10 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-4986</guid>
		<description>Just installed your captcha for the backend login. AWESOME and great instructions. I am new to PHP and Joomla, so your step-by-step and line-by-line instructions are GREAT.

I want to implement it on the front end login as well, but noticed you have not posted the explicit steps for this one &#34;CAPTCHA by own strength: Frontend login form&#34;

I looked over the registration one and it looks like it may be similar, but not sure.

Do you have the instructions for the frontend login form available?

Many thanks!
James</description>
		<content:encoded><![CDATA[<p>Just installed your captcha for the backend login. AWESOME and great instructions. I am new to PHP and Joomla, so your step-by-step and line-by-line instructions are GREAT.</p>
<p>I want to implement it on the front end login as well, but noticed you have not posted the explicit steps for this one &quot;CAPTCHA by own strength: Frontend login form&quot;</p>
<p>I looked over the registration one and it looks like it may be similar, but not sure.</p>
<p>Do you have the instructions for the frontend login form available?</p>
<p>Many thanks!<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Бердыев</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-1196</link>
		<author>Бердыев</author>
		<pubDate>Sun, 09 Sep 2007 17:50:05 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-1196</guid>
		<description>Hello,
You write cool things by simple language!
great thanks!</description>
		<content:encoded><![CDATA[<p>Hello,<br />
You write cool things by simple language!<br />
great thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas_Freeman</title>
		<link>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-206</link>
		<author>Thomas_Freeman</author>
		<pubDate>Thu, 12 Jul 2007 17:38:53 +0000</pubDate>
		<guid>http://joomup.com/blog/2007/07/04/captcha-backend-login-form/#comment-206</guid>
		<description>Thanks!  I found your information very helpful.

I recently modified the Virtuemart Registration process to use the captcha similar to your work here.

You can see it here:
http://virtuemart.net/index.php?option=com_smf&#38;Itemid=71&#38;topic=29928.0</description>
		<content:encoded><![CDATA[<p>Thanks!  I found your information very helpful.</p>
<p>I recently modified the Virtuemart Registration process to use the captcha similar to your work here.</p>
<p>You can see it here:<br />
<a href="http://virtuemart.net/index.php?option=com_smf&amp;Itemid=71&amp;topic=29928.0" rel="nofollow">http://virtuemart.net/index.php?option=com_smf&amp;Itemid=71&amp;topic=29928.0</a></p>
]]></content:encoded>
	</item>
</channel>
</rss>
