XOOPS API 2.5.11 Beta1  UI v0.5
Réalisé par monxoops.fr
Référence du fichier changepass.php

Espaces de nommage

 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
 

Documentation des variables

◆ $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
Valeur initiale :
$config_handler
$config_handler
Definition: edituser.php:36
xoops_getHandler
xoops_getHandler($name, $optional=false)
Definition: functions.php:28