XOOPS API 2.5.11 Beta1
UI v0.5
Réalisé par monxoops.fr
|
Espaces de nommage | |
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 |
$_POST = array_merge($_SESSION['profile_post'], $_POST) |
if ( $GLOBALS[ 'xoopsConfigUser'][ 'activation_type']==1 &&!empty( $_SESSION[ 'profile_post'][ 'pass'])) if (isset( $_SESSION[ 'profile_post'][ '_message_'])) $_SESSION[ 'profile_post'] = null |
$config_handler = xoops_getHandler('config') |
if ( $current_step > 0 &&! $GLOBALS[ 'xoopsSecurity']->check()) $criteria = new CriteriaCompo() |
$current_opname = 'op' |
$current_step = isset($_POST['step']) ? (int)$_POST['step'] : 0 |
$fieldnames[] = '_message_' |
$fields = $profile_handler->loadFields() |
$GLOBALS[ 'xoopsConfigUser'] = $config_handler->getConfigsByCat(XOOPS_CONF_USER) |
if (! $steps=$regstep_handler->getAll( $criteria, null, false, false)) foreach (array_keys( $steps) as $key) $GLOBALS[ 'xoopsOption'][ 'template_main'] = 'profile_register.tpl' |
if (isset( $steps[ $current_step])) $member_handler = xoops_getHandler('member') |
$myts = MyTextSanitizer::getInstance() |
$op = !isset($_POST[$current_opname]) ? 'register' : $_POST[$current_opname] |
$postfields = array() |
$profile = $profile_handler->get($uid) |
$profile_handler = xoops_getModuleHandler('profile') |
$regstep_handler = xoops_getModuleHandler('regstep') |
$uid = !empty($_SESSION['profile_register_uid']) ? (int)$_SESSION['profile_register_uid'] : 0 |
$userfields = $profile_handler->getUserVars() |
$xoBreadcrumbs[] |
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 |