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

Namespaces

namespace  profile
 

Variables

 $myts = MyTextSanitizer::getInstance()
 
 $config_handler = xoops_getHandler('config')
 
 $GLOBALS ['xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER)
 
if(empty($GLOBALS['xoopsConfigUser']['allow_register'])) $opkey = 'profile_opname'
 
if(isset($_SESSION[$opkey])) else
 
 $current_opname = 'op'
 
 $op = !isset($_POST[$current_opname]) ? 'register' : $_POST[$current_opname]
 
 $current_step = isset($_POST['step']) ? (int)$_POST['step'] : 0
 
 $uid = !empty($_SESSION['profile_register_uid']) ? (int)$_SESSION['profile_register_uid'] : 0
 
if($current_step > 0 &&! $GLOBALS['xoopsSecurity']->check()) $criteria = new CriteriaCompo()
 
 $regstep_handler = xoops_getModuleHandler('regstep')
 
if(! $steps=$regstep_handler->getAll( $criteria, null, false, false)) foreach(array_keys($steps) as $key) $GLOBALS ['xoopsOption']['template_main'] = 'profile_register.tpl'
 
 $xoBreadcrumbs []
 
if(isset($steps[$current_step])) $member_handler = xoops_getHandler('member')
 
 $profile_handler = xoops_getModuleHandler('profile')
 
 $fields = $profile_handler->loadFields()
 
 $userfields = $profile_handler->getUserVars()
 
 $profile = $profile_handler->get($uid)
 
 $fieldnames = array()
 
 $fieldnames [] = '_message_'
 
 $postfields = array()
 
 $_POST = array_merge($_SESSION['profile_post'], $_POST)
 
foreach(array_keys($fields) as $field) $stop = ''
 
if( $GLOBALS[ 'xoopsConfigUser'][ 'activation_type']==1 &&!empty( $_SESSION[ 'profile_post'][ 'pass'])) if(isset($_SESSION['profile_post']['_message_'])) $_SESSION ['profile_post'] = null
 

Variable Documentation

◆ $_POST

$_POST = array_merge($_SESSION['profile_post'], $_POST)

◆ $_SESSION

if($GLOBALS['xoopsConfigUser']['activation_type']==1 &&!empty($_SESSION['profile_post']['pass'])) if (isset( $_SESSION[ 'profile_post'][ '_message_'])) $_SESSION[ 'profile_post'] = null

◆ $config_handler

$config_handler = xoops_getHandler('config')

◆ $criteria

if ( $current_step > 0 &&! $GLOBALS[ 'xoopsSecurity']->check()) $criteria = new CriteriaCompo()

◆ $current_opname

$current_opname = 'op'

◆ $current_step

$current_step = isset($_POST['step']) ? (int)$_POST['step'] : 0

◆ $fieldnames [1/2]

foreach (array_keys( $fields) as $i) $fieldnames = array()

◆ $fieldnames [2/2]

$fieldnames[] = '_message_'

◆ $fields

$fields = $profile_handler->loadFields()

◆ $GLOBALS [1/2]

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

◆ $GLOBALS [2/2]

if(! $steps=$regstep_handler->getAll($criteria, null, false, false)) foreach (array_keys( $steps) as $key) $GLOBALS[ 'xoopsOption'][ 'template_main'] = 'profile_register.tpl'

◆ $member_handler

if (isset( $steps[ $current_step])) $member_handler = xoops_getHandler('member')

◆ $myts

◆ $op

$op = !isset($_POST[$current_opname]) ? 'register' : $_POST[$current_opname]

◆ $opkey

if (empty( $GLOBALS[ 'xoopsConfigUser'][ 'allow_register'])) $opkey = 'profile_opname'

◆ $postfields

$postfields = array()

◆ $profile

$profile = $profile_handler->get($uid)

◆ $profile_handler

$profile_handler = xoops_getModuleHandler('profile')

◆ $regstep_handler

$regstep_handler = xoops_getModuleHandler('regstep')

◆ $stop

foreach (array_keys( $fields) as $field) $stop = ''

◆ $uid

$uid = !empty($_SESSION['profile_register_uid']) ? (int)$_SESSION['profile_register_uid'] : 0

◆ $userfields

$userfields = $profile_handler->getUserVars()

◆ $xoBreadcrumbs

$xoBreadcrumbs[]
Initial value:
= array(
'link' => XOOPS_URL . '/modules/' . $GLOBALS['xoopsModule']->getVar('dirname', 'n') . '/register.php',
const _PROFILE_MA_REGISTER
Definition: main.php:43
$GLOBALS['xoopsConfigUser']
Definition: register.php:38

◆ else

if(isset($_POST['step']) &&isset($_SESSION['profile_required'])) if( $current_step==1) if($current_step > 0 &&empty($stop) &&(!empty($steps[$current_step - 1]['step_save'])||!isset($steps[$current_step]))) if (!empty( $stop)||isset( $steps[ $current_step])) else
Initial value:
{
$_POST = array()
$_POST
Definition: register.php:147