API - XOOPS 2.5.11 Beta 2
By monxoops.fr
changepass.php File Reference

Namespaces

namespace  profile
 

Variables

 $xoopsOption ['pagetype'] = 'user'
 
if(! $GLOBALS['xoopsUser']) $GLOBALS ['xoopsOption']['template_main'] = 'profile_changepass.tpl'
 
if(!isset($_POST['submit'])) else
 
 $GLOBALS ['xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER)
 
 $myts = MyTextSanitizer::getInstance()
 
 $oldpass = @$myts->stripSlashesGPC(trim($_POST['oldpass']))
 
 $password = @$myts->stripSlashesGPC(trim($_POST['newpass']))
 
 $vpass = @$myts->stripSlashesGPC(trim($_POST['vpass']))
 
 $errors = array()
 
 $member_handler = xoops_getHandler('member')
 
 $msg = _PROFILE_MA_ERRORDURINGSAVE
 

Variable Documentation

◆ $errors

$errors = array()

◆ $GLOBALS [1/2]

$GLOBALS[ 'xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER)

◆ $GLOBALS [2/2]

if (! $GLOBALS[ 'xoopsUser']) $GLOBALS[ 'xoopsOption'][ 'template_main'] = 'profile_changepass.tpl'

◆ $member_handler

$member_handler = xoops_getHandler('member')

◆ $msg

◆ $myts

◆ $oldpass

$oldpass = @$myts->stripSlashesGPC(trim($_POST['oldpass']))

◆ $password

$password = @$myts->stripSlashesGPC(trim($_POST['newpass']))

◆ $vpass

$vpass = @$myts->stripSlashesGPC(trim($_POST['vpass']))

◆ $xoopsOption

$xoopsOption[ 'pagetype'] = 'user'

◆ else

if(!password_verify($oldpass, $GLOBALS['xoopsUser']->getVar('pass', 'n'))) if(strlen( $password)< $GLOBALS[ 'xoopsConfigUser'][ 'minpass']) if($password !=$vpass) if ( $errors) else
Initial value:
{
$config_handler
Definition: edituser.php:38
xoops_getHandler($name, $optional=false)
Definition: functions.php:30