Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
3 + 6 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     
getVar('email')." is already active!"; include("footer.php"); exit(); } //Sending it $xoopsMailer =& getMailer(); $xoopsMailer->useMail(); $xoopsMailer->setTemplate('register.tpl'); $xoopsMailer->assign('SITENAME', $xoopsConfig['sitename']); $xoopsMailer->assign('ADMINMAIL', $xoopsConfig['adminmail']); $xoopsMailer->assign('SITEURL', XOOPS_URL."/"); $xoopsMailer->setToUsers($getuser[0]); $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); $xoopsMailer->setFromName($xoopsConfig['sitename']); $xoopsMailer->setSubject(sprintf("- Resend - "._US_USERKEYFOR,$getuser[0]->getVar("uname"))); if ( !$xoopsMailer->send() ) { echo "It could not be possible to resend the activation link for ".$getuser[0]->getVar('uname').". Contact the site administrators."; include("footer.php"); exit(); } else { echo "The activation link for ".$getuser[0]->getVar('uname')." was resent. If you don't receive the e-mail in a few hours, try again or contact the site administrators."; } } include("footer.php"); ?> [/code] Put this file in your XOOPS main directory. Then, put a link for it into the login block, and voilá. No need to alter anything else. If any user claims that it hasn't received the activation link, ask him to go to yoursite.com/ativacao.php and fill in the form. If you wanna send through GET, like [code]yoursite.com/ativacao.php?email=me@myemail.com[/code] it'll work without problems. Hope it helps... If someone wanna make the code look better, I'll appreciate it!! Tested and approved. Thanks to Izzy for the first tests :-) Big hug [/quote] Hope it helps... Salomão - XT[/quote]" />

Re: Ativacao.php - Analysing code for team security
by Catzwolf on 2009/3/16 13:06:26

You are using 3.1? Because as a XOOPS developer I haven't even seen a stable XOOPS v3, so, are you sure about that?

If you mean that you are using the v3 branch on Xoopsforge for a production website, I strongly suggest that you use the version 2.3 branch for this and stay away from that branch until we at least v3 stable.

Catz
Re: Ativacao.php - Analysing code for team security
by deepak267 on 2009/3/16 12:26:37

Hi,
is this implemented on XOOPS 3.x release?


Thanks in advance. I am using 3.1 on linux.
Re: Ativacao.php - Analysing code for team security
by davidl2 on 2005/6/9 10:43:23

This is very useful indeed!

Thanks
Re: Problems with Account Activation Mail - Hack"
by giba on 2005/1/5 22:35:02

Hi Mith

Please, look if is correct ?

Ticket open

Thanks
Re: Problems with Account Activation Mail - Hack"
by giba on 2005/1/5 15:27:30

Sorry Mith

The moment blank page here

Go to next hours
Thanks

Who's Online

810 user(s) are online (756 user(s) are browsing Support Forums)


Members: 0


Guests: 810


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits