Hi dennylin93,
i have implement a little optimization to rcguard
this delete after successful login the mysql entry of this user from rcguard table.
see attachment
Thank you very much for this wonderful plugin :-)
Hi dennylin93,
i have implement a little optimization to rcguard
this delete after successful login the mysql entry of this user from rcguard table.
see attachment
Thanks for the feedback.
I actually added this feature previously, but took it out later. If someone successfully hacks into an account, then the entry is deleted and he can skip the reCAPTCHA verification.
I think I'll add this as a tunable feature with on and off in the config file. I've been really busy recently, so I'll have to find some time to do this.
I have a problem: Recaptcha does simply not appear.
What I did: Created SQL tables, installed and activated the plugin, registered at recaptcha service, copied and configured config.inc.php with the pub and private keys... Hmmm.
EDIT: What's wrong? With phpmyadmin (I'm on a web hoster) I can see the MYsql rcguard table has NO entries...
EDIT2: SOLVED, I was stupid. I added the 'rcguard' entry to an outcommented plugins line (//) OMGSo, the plugin WORKS NICELY. THANKS!
Last edited by ontnugtering; 05-31-2010 at 09:25 AM. Reason: SOLVED
I have problem: recaptcha not work.
Created SQL tables, installed and activated the plugin, registered at recaptcha service, copied and configured config.inc.php with the pub and private keys.
Hmm, looks like there's a problem with the method I'm using to insert the reCAPTCHA code.
Can you post the plugins you're using (in the order listed in the config) as well as a copy of the HTML code from your browser?
Last edited by dennylin93; 07-06-2010 at 08:46 AM.
Incidentally record if I enter wrong username and password, then it is fixed in the sql database.
my plugins
html code - login pageCode:$rcmail_config['plugins'] = array('password','rcguard','remember_me');
Do you have any ideas?HTML Code:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Zhigulinet Webmail :: Добро пожаловать в Zhigulinet Webmail!</title> <meta name="Robots" content="noindex,nofollow" /> <link rel="index" href="./?_task=mail" /> <link rel="shortcut icon" href="skins/default/images/favicon.ico"/> <link rel="stylesheet" type="text/css" href="skins/default/common.css?s=1252060944" /> <meta http-equiv="content-type" content="text/html; charset=UTF-8" /> <script type="text/javascript" src="program/js/jquery-1.3.min.js?s=1240222531"></script> <script type="text/javascript" src="program/js/common.js?s=1252062319"></script> <script type="text/javascript" src="program/js/app.js?s=1252062318"></script> <script type="text/javascript"> /* <![CDATA[ */ var rcmail = new rcube_webmail(); rcmail.set_env({task:'login',request_token:'1c15b3a005e497e883d6626fa0461b84',keep_alive:60,action:'',comm_path:'./?_task=mail'}); rcmail.add_label('loading','Загрузка...'); rcmail.add_label('servererror','Ошибка сервера!'); rcmail.gui_object('message', 'message'); rcmail.gui_object('loginform', 'form'); /* ]]> */ </script> <link rel="stylesheet" type="text/css" href="plugins/remember_me/skins/default/remember_me.css?s=1274262830" /> </head> <body> <img src="skins/default/images/roundcube_logo.png" border="0" alt="Zhigulinet Webmail" style="margin:0 11px" /> <div id="message"></div> <div id="login-form"> <div class="boxtitle">Добро пожаловать в Zhigulinet Webmail!</div> <div class="boxcontent"> <form name="form" action="./" method="post"> <input type="hidden" name="_token" value="1c15b3a005e497e883d6626fa0461b84" /> <input type="hidden" name="_action" value="login" /><input type="hidden" name="_timezone" id="rcmlogintz" value="_default_" /><input type="hidden" name="_url" id="rcmloginurl" value="" /><table summary="" border="0"><tbody><tr><td class="title"><label for="rcmloginuser">Имя пользователя</label> </td> <td><input name="_user" id="rcmloginuser" size="30" autocomplete="off" type="text" /></td> </tr> <tr><td class="title"><label for="rcmloginpwd">Пароль</label> </td> <td><input name="_pass" id="rcmloginpwd" size="30" autocomplete="off" type="password" /></td> </tr> <tr><td class="title"><label for="rcmrememberme">Запомнить меня</label></td><td><input id="rcmrememberme" name="_rememberme" value="1" type="checkbox" /></td> </tr></tbody> </table> <p style="text-align:center;"><input type="submit" class="button mainaction" value="Войти" /></p> <p style="text-align:center;"><a href="http://mail.zhigulinet.ru/manual/">FAQ по использованию почтовой системы. Прочтите перед регистрацией!!!</a></p> <p style="text-align:center;"><a href="http://mail.zhigulinet.ru/reg/">Регистрация почтового ящика</a></p> </form> </div> </div> <script type="text/javascript"> /* <![CDATA[ */ $(document).ready(function(){ rcmail.init(); }); /* ]]> */ </script> </body> </html>
Last edited by lumen; 07-08-2010 at 11:58 AM.
In this code:
You have these two HTML tags at one line:HTML Code:<tr><td class="title"><label for="rcmrememberme">Запомнить меня</label></td><td><input id="rcmrememberme" name="_rememberme" value="1" type="checkbox" /></td> </tr></tbody> </table>
In rcguard.php the code:HTML Code:</tr></tbody>
searches for single HTML tag:PHP Code:$tmp = str_ireplace('</tbody>',
'<tr><td class="title"><div id="rcguard"><div id="recaptcha">' . $script . '</div></div>
</td>
</tr>
</tbody>', $tmp);
You have two ways:HTML Code:</tbody>
- Edit plugin's files rcguard.php
- Edit your index.php file
Why this happened?
I think because you had made incorrect changes in your file:
skins/default/templates/login.html
Last edited by Makc666; 01-12-2012 at 02:30 PM.
............ "А стукачков мы не любим!"
There is another magic method to do this one.
And it has to be included in the plugin by default.
- Open file:
rcguard.php- Find line:
PHP Code:$this->include_script('rcguard.js');
- Replace with:
PHP Code:if($_SESSION['language']){
if(is_readable('localization/' . $_SESSION['language'] . '.js')){
$this->include_script('localization/' . $_SESSION['language'] . '.js');
}else{
$this->include_script('rcguard.js');
}
}else{
$this->include_script('rcguard.js');
}
- Open plugins localization folder and add *.js files for your languages.
For example:
- ru_RU.js
Code:var RecaptchaOptions = { theme : 'white', lang : 'ru' };- de_DE.js
Code:var RecaptchaOptions = { theme : 'white', lang : 'de' };
Last edited by Makc666; 01-12-2012 at 02:31 PM.
............ "А стукачков мы не любим!"
this plugin kills my ability to show inline html images and attachments??
I think i got it to work i downloaded and reinstalled it from the above link and it worked the files from the repository didn't work right...weird
Last edited by mattfox27; 09-26-2010 at 07:12 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)