| Server IP : 54.36.91.62 / Your IP : 216.73.217.112 Web Server : Apache System : Linux webm013.cluster127.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64 User : coopiak ( 151928) PHP Version : 8.3.23 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/coopiak/amisdesseniors-fr/nimes/administrator/components/com_comprofiler/view/ |
Upload File : |
<?php
/**
* Community Builder (TM)
* @version $Id: $
* @package CommunityBuilder
* @copyright (C) 2004-2023 www.joomlapolis.com / Lightning MultiCom SA - and its licensors, all rights reserved
* @license http://www.gnu.org/licenses/old-licenses/gpl-2.0.html GNU/GPL version 2
*/
use CBLib\Application\Application;
use CBLib\Language\CBTxt;
use CB\Database\Table\UserTable;
// ensure this file is being included by a parent file
if ( ! ( defined( '_VALID_CB' ) || defined( '_JEXEC' ) || defined( '_VALID_MOS' ) ) ) { die( 'Direct Access to this location is not allowed.' ); }
class CBView_user
{
/**
* Outputs legacy user edit display
*
* @deprecated 2.0
*
* @param UserTable $user
* @param string $option
* @param int $newCBuser
* @param array $postdata
*/
public function edituser( $user, /** @noinspection PhpUnusedParameterInspection */ $option, $newCBuser, &$postdata )
{
global $_CB_framework, $_CB_Backend_Title, $_PLUGINS;
$results = $_PLUGINS->trigger( 'onBeforeUserProfileEditDisplay', array( &$user, 2 ) );
if ( $_PLUGINS->is_errors() ) {
cbRedirect( $_CB_framework->backendViewUrl( 'showusers' ), $_PLUGINS->getErrorMSG(), 'error' );
}
_CBsecureAboveForm( 'edituser' );
cbimport( 'cb.validator' );
outputCbTemplate( 2 );
initToolTip( 2 );
outputCbJs( 2 );
$tabs = new cbTabs( true, 2 );
$tabcontent = $tabs->getEditTabs( $user, $postdata, 'htmledit', 'divs' );
$_CB_Backend_Title = array( 0 => array( 'fa fa-user', ( $user->id ? CBTxt::T( 'COMMUNITY_BUILDER_EDIT_USER_USERNAME', 'Community Builder: Edit User [[username]]', array( '[username]' => $user->username ) ) : CBTxt::T( 'Community Builder: New User' ) ) ) );
cbValidator::loadValidation();
if ( is_array( $results ) ) {
echo implode( '', $results );
}
$return = '<form action="' . $_CB_framework->backendUrl( 'index.php' ) . '" method="post" name="adminForm" id="cbcheckedadminForm" enctype="multipart/form-data" autocomplete="off" class="cb_form form-auto m-0 cbValidation">'
. $tabcontent
. '<input type="hidden" name="id" value="' . (int) $user->id . '" />'
. '<input type="hidden" name="newCBuser" value="' . (int) $newCBuser . '" />'
. '<input type="hidden" name="option" value="com_comprofiler" />'
. '<input type="hidden" name="view" value="save" />'
. Application::Session()->getFormTokenInput()
. '<div class="cbIconsBottom">'
. getFieldIcons( 2, true, true, '', '', true )
. '</div>'
. '</form>';
echo $return;
}
}