581
cadch
Re: lostpass.php Have some error,On user by Gmail
  • 2021/11/21 8:23

  • cadch

  • Just popping in

  • Posts: 48

  • Since: 2007/12/17


XoopsCore25-2.5.11-Beta1



582
Mamba
Re: lostpass.php Have some error,On user by Gmail
  • 2021/11/20 14:45

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Thanks for reporting!

Which XOOPS version do you use?
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



583
cadch
lostpass.php Have some error,On user by Gmail
  • 2021/11/19 8:41

  • cadch

  • Just popping in

  • Posts: 48

  • Since: 2007/12/17


lostpass.php Have some error,On user by Gmail
Gmail on Chrome will use cache.google.com,If user click mail url【xoops_url/lostpass.php?email=xxx@xxx.com&code=xxxxx】
Will go to 【google_url/url?q=xoops_url/lostpass.php?email%3Dxxx@xxx.com%26code%3Dxxxxx&source=gmail&ust=xxxxxxxx&usg=xxxxxxx"】
cache.google.com will cache the URL,Will send 【lostpass1.tpl】again.
Fix it
if (empty($getuser)) {
    
$msg _US_SORRYNOTFOUND;
    
redirect_header('user.php'2$msg);
} else {
    
$code   = isset($_GET['code']) ? trim($_GET['code']) : '';
    
$areyou substr($getuser[0]->getVar('pass'), 09);
    if (
$code != '' && $areyou == $code) {
        
$newpass     xoops_makepass();
        
$xoopsMailer xoops_getMailer();
        
$xoopsMailer->useMail();
        
$xoopsMailer->setTemplate('lostpass2.tpl');
        
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
        
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
        
$xoopsMailer->assign('SITEURL'XOOPS_URL '/');
        
$xoopsMailer->assign('IP'$_SERVER['REMOTE_ADDR']);
        
$xoopsMailer->assign('AGENT'$_SERVER['HTTP_USER_AGENT']);
        
$xoopsMailer->assign('NEWPWD'$newpass);
        
$xoopsMailer->setToUsers($getuser[0]);
        
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
        
$xoopsMailer->setFromName($xoopsConfig['sitename']);
        
$xoopsMailer->setSubject(sprintf(_US_NEWPWDREQXOOPS_URL));
        if (!
$xoopsMailer->send()) {
            echo 
$xoopsMailer->getErrors();
        }
        
// Next step: add the new password to the database
        
$sql sprintf(
            
"UPDATE %s SET pass = '%s' WHERE uid = %u",
            
$xoopsDB->prefix('users'),
            
password_hash($newpassPASSWORD_DEFAULT),
            
$getuser[0]->getVar('uid')
        );
        if (!
$xoopsDB->queryF($sql)) {
            include 
$GLOBALS['xoops']->path('header.php');
            echo 
_US_MAILPWDNG;
            include 
$GLOBALS['xoops']->path('footer.php');
            exit();
        }
        
redirect_header('user.php'3sprintf(_US_PWDMAILED$getuser[0]->getVar('uname')), false);
        
// If no Code, send it
    
} elseif (isset($_POST['email'])) {
        
$xoopsMailer xoops_getMailer();
        
$xoopsMailer->useMail();
        
$xoopsMailer->setTemplate('lostpass1.tpl');
        
$xoopsMailer->assign('SITENAME'$xoopsConfig['sitename']);
        
$xoopsMailer->assign('ADMINMAIL'$xoopsConfig['adminmail']);
        
$xoopsMailer->assign('SITEURL'XOOPS_URL '/');
        
$xoopsMailer->assign('IP'$_SERVER['REMOTE_ADDR']);
        
$xoopsMailer->assign('AGENT'$_SERVER['HTTP_USER_AGENT']);
        
$xoopsMailer->assign('NEWPWD_LINK'XOOPS_URL '/lostpass.php?email=' $email '&code=' $areyou);
        
$xoopsMailer->setToUsers($getuser[0]);
        
$xoopsMailer->setFromEmail($xoopsConfig['adminmail']);
        
$xoopsMailer->setFromName($xoopsConfig['sitename']);
        
$xoopsMailer->setSubject(sprintf(_US_NEWPWDREQ$xoopsConfig['sitename']));
        include 
$GLOBALS['xoops']->path('header.php');
        if (!
$xoopsMailer->send()) {
            echo 
$xoopsMailer->getErrors();
        }
        echo 
'';
        
printf(_US_CONFMAIL$getuser[0]->getVar('uname'));
        echo 
'';
        include 
$GLOBALS['xoops']->path('footer.php');
    } else {
        
redirect_header('user.php'2'Please input your EMAIL.');
    }
}



584
Spyrith
Re: Which editor do you use ?
  • 2021/11/18 7:42

  • Spyrith

  • Just popping in

  • Posts: 1

  • Since: 2021/11/18


PhpStorm. I just feel I can do stuff quicker with it. I also love it's form of zen coding implementation for some reason.



585
Mamba
Re: Tag 2.35.0 Beta 2
  • 2021/11/12 10:38

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


XOOPS Tag 2.35.0 Beta 3 released for testing/contributions!
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



586
alain01
Re: My overloads of the templates search.tpl and userinfo.tpl
  • 2021/11/11 17:34

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Thank you.
Here, The relevant PR : https://github.com/XOOPS/XoopsCore25/pull/1124



587
alain01
Re: Home Page
  • 2021/11/11 10:53

  • alain01

  • Just can't stay away

  • Posts: 530

  • Since: 2003/6/20


Ok, well done !
Is the website visible? (url ?)



588
Mamba
Re: Home Page
  • 2021/11/11 10:51

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


We ended up with adding a custom block with the text, and it seems to be working now OK.

We also updated it to the latest XOOPS and modules versions, and the server to PHP 7.4, so the Website should be in good shape for a long time...
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs



589
fla-ts
Re: Home Page
  • 2021/11/9 7:38

  • fla-ts

  • Friend of XOOPS

  • Posts: 204

  • Since: 2005/1/4 1


Quote:

fla-ts wrote:
I see that my website is closed for maintenance, are you by chance busy or forgot to make the website available again?


FYI: it is the intention that both menus (left and right) remain visible during a visit and that I can determine myself which topic (from menu left or right) opens while both menus remain visible



590
Mamba
XOOPS Countdown 2.1.0 Beta 1
  • 2021/11/9 6:50

  • Mamba

  • Moderator

  • Posts: 11373

  • Since: 2004/4/23


Resized Image


Lio MJ just released his new module: XOOPS Countdown 2.1.0 Beta 1 , a simple XOOPS module displaying the countdown LIVE to any specific date and time.

It's great to see new developers contributing to XOOPS! Who is next?

DOWNLOAD: https://github.com/XoopsModules25x/countdown/releases

ISSUES/BUGS: Please report all issues on GitHub

REQUIREMENTS:
- XOOPS 2.5.10
- PHP 7.3+
Support XOOPS => DONATE
Use 2.5.10 | Docs | Modules | Bugs




TopTop
« 1 ... 56 57 58 (59) 60 61 62 ... 29425 »



Login

Who's Online

899 user(s) are online (315 user(s) are browsing Support Forums)


Members: 0


Guests: 899


more...

Donat-O-Meter

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

Latest GitHub Commits