2023-01-07 04:05:59 +01:00
< ? php
2023-01-07 12:36:53 +01:00
/* Copyright ( C ) 2020 - 2022 Laurent Destailleur < eldy @ users . sourceforge . net >
2024-09-10 14:54:54 +02:00
* Copyright ( C ) 2024 Frédéric France < frederic . france @ free . fr >
2023-01-07 04:05:59 +01:00
*
* This program is free software ; you can redistribute it and / or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation ; either version 3 of the License , or
* ( at your option ) any later version .
*
* This program is distributed in the hope that it will be useful ,
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE . See the
* GNU General Public License for more details .
*
* You should have received a copy of the GNU General Public License
* along with this program . If not , see < https :// www . gnu . org / licenses />.
*/
/**
* \file htdocs / public / users / view . php
* \ingroup user
* \brief Public file to user profile
*/
if ( ! defined ( 'NOLOGIN' )) {
define ( " NOLOGIN " , 1 ); // This means this output page does not require to be logged.
}
if ( ! defined ( 'NOCSRFCHECK' )) {
define ( " NOCSRFCHECK " , 1 ); // We accept to go on this page from external web site.
}
if ( ! defined ( 'NOIPCHECK' )) {
define ( 'NOIPCHECK' , '1' ); // Do not check IP defined into conf $dolibarr_main_restrict_ip
}
if ( ! defined ( 'NOBROWSERNOTIF' )) {
define ( 'NOBROWSERNOTIF' , '1' );
}
// Load Dolibarr environment
require '../../main.inc.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/lib/security.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/lib/company.lib.php' ;
require_once DOL_DOCUMENT_ROOT . '/core/class/vcard.class.php' ;
2024-11-04 23:53:20 +01:00
/**
* @ var Conf $conf
* @ var DoliDB $db
* @ var HookManager $hookmanager
* @ var Societe $mysoc
* @ var Translate $langs
*/
2023-01-07 04:05:59 +01:00
// Load translation files required by the page
$langs -> loadLangs ( array ( " companies " , " other " , " recruitment " ));
// Get parameters
$action = GETPOST ( 'action' , 'aZ09' );
2023-01-07 12:36:53 +01:00
$mode = GETPOST ( 'mode' , 'aZ09' );
2023-01-07 04:05:59 +01:00
$cancel = GETPOST ( 'cancel' , 'alpha' );
$backtopage = '' ;
Fix: GETPOST(...,'int') to GETPOSTINT(...) (#28448)
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: GETPOST(...,'int') to GETPOSTINT(...)
# Fix: GETPOST(...,'int') to GETPOSTINT(...)
Converted using Phan plugin
* Fix: Update spelling exceptions
* Qual: Ignore Phan Notice
2024-02-27 14:05:53 +01:00
$id = GETPOSTINT ( 'id' );
2023-01-07 04:05:59 +01:00
$securekey = GETPOST ( 'securekey' , 'alpha' );
$suffix = GETPOST ( 'suffix' );
$object = new User ( $db );
$object -> fetch ( $id , '' , '' , 1 );
// Define $urlwithroot
//$urlwithouturlroot=preg_replace('/'.preg_quote(DOL_URL_ROOT,'/').'$/i','',trim($dolibarr_main_url_root));
//$urlwithroot=$urlwithouturlroot.DOL_URL_ROOT; // This is to use external domain name found into config file
$urlwithroot = DOL_MAIN_URL_ROOT ; // This is to use same domain name than current. For Paypal payment, we can use internal URL like localhost.
// Security check
2023-05-03 14:22:30 +02:00
global $conf ;
$encodedsecurekey = dol_hash ( $conf -> file -> instance_unique_id . 'uservirtualcard' . $object -> id . '-' . $object -> login , 'md5' );
2023-01-07 04:05:59 +01:00
if ( $encodedsecurekey != $securekey ) {
2023-01-07 12:36:53 +01:00
httponly_accessforbidden ( 'Bad value for securitykey or public profile not enabled' );
}
if ( ! getDolUserInt ( 'USER_ENABLE_PUBLIC' , 0 , $object )) {
httponly_accessforbidden ( 'Bad value for securitykey or public profile not enabled' );
2023-01-07 04:05:59 +01:00
}
/*
* Actions
*/
if ( $cancel ) {
if ( ! empty ( $backtopage )) {
header ( " Location: " . $backtopage );
exit ;
}
$action = 'view' ;
}
/*
* View
*/
2023-01-10 16:31:12 +01:00
$v = new vCard ();
2023-01-07 04:05:59 +01:00
$company = $mysoc ;
2023-01-10 16:31:12 +01:00
$modulepart = 'userphotopublic' ;
$dir = $conf -> user -> dir_output ;
// Show logo (search order: logo defined by ONLINE_SIGN_LOGO_suffix, then ONLINE_SIGN_LOGO_, then small company logo, large company logo, theme logo, common logo)
// Define logo and logosmall
$logo = '' ;
$logosmall = '' ;
if ( ! empty ( $object -> photo )) {
if ( dolIsAllowedForPreview ( $object -> photo )) {
$logosmall = get_exdir ( 0 , 0 , 0 , 0 , $object , 'user' ) . 'photos/' . getImageFileNameForSize ( $object -> photo , '_small' );
$logo = get_exdir ( 0 , 0 , 0 , 0 , $object , 'user' ) . 'photos/' . $object -> photo ;
//$originalfile = get_exdir(0, 0, 0, 0, $object, 'user').'photos/'.$object->photo;
}
}
//print '<!-- Show logo (logosmall='.$logosmall.' logo='.$logo.') -->'."\n";
// Define urllogo
$urllogo = '' ;
$urllogofull = '' ;
if ( ! empty ( $logosmall ) && is_readable ( $dir . '/' . $logosmall )) {
2024-08-31 18:18:45 +02:00
$urllogo = DOL_URL_ROOT . '/viewimage.php?modulepart=' . urlencode ( $modulepart ) . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&securekey=' . urlencode ( $securekey ) . '&file=' . urlencode ( $logosmall );
2023-01-15 01:25:07 +01:00
$urllogofull = $dolibarr_main_url_root . '/viewimage.php?modulepart=' . $modulepart . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&securekey=' . urlencode ( $securekey ) . '&file=' . urlencode ( $logosmall );
2023-01-10 16:31:12 +01:00
} elseif ( ! empty ( $logo ) && is_readable ( $dir . '/' . $logo )) {
2024-08-31 18:18:45 +02:00
$urllogo = DOL_URL_ROOT . '/viewimage.php?modulepart=' . urlencode ( $modulepart ) . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&securekey=' . urlencode ( $securekey ) . '&file=' . urlencode ( $logo );
2023-01-15 01:25:07 +01:00
$urllogofull = $dolibarr_main_url_root . '/viewimage.php?modulepart=' . $modulepart . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&securekey=' . urlencode ( $securekey ) . '&file=' . urlencode ( $logo );
2023-01-10 16:31:12 +01:00
}
// Clean data we don't want on public page
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_PHOTO' , 0 , $object )) {
$logo = '' ;
$logosmall = '' ;
$urllogo = '' ;
$urllogofull = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_JOBPOSITION' , 0 , $object )) {
$object -> job = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_EMAIL' , 0 , $object )) {
$object -> email = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_EMAIL' , 0 , $object )) {
$object -> job = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_OFFICE_PHONE' , 0 , $object )) {
$object -> office_phone = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_OFFICE_FAX' , 0 , $object )) {
$object -> office_fax = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_USER_MOBILE' , 0 , $object )) {
$object -> user_mobile = '' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_SOCIALNETWORKS' , 0 , $object )) {
2024-02-24 13:03:57 +01:00
$object -> socialnetworks = [];
2024-11-24 13:00:08 +01:00
} else {
// Show list of social networks for company
$listofnetworks = $object -> socialnetworks ;
if ( ! empty ( $listofnetworks )) {
foreach ( $listofnetworks as $key => $networkVal ) {
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_SOCIALNETWORKS_' . strtoupper ( $key ), 0 , $object )) {
unset ( $object -> socialnetworks [ $key ]);
}
}
}
2023-01-10 16:31:12 +01:00
}
2024-10-28 18:13:02 +01:00
2024-11-24 13:00:08 +01:00
// By default, personal birthdate and address is not visible
2024-01-24 11:42:26 +01:00
if ( ! getDolUserInt ( 'USER_PUBLIC_SHOW_BIRTH' , 0 , $object )) {
$object -> birth = null ;
}
if ( ! getDolUserInt ( 'USER_PUBLIC_SHOW_ADDRESS' , 0 , $object )) {
2023-01-15 01:25:07 +01:00
$object -> address = '' ;
2023-01-15 01:28:02 +01:00
$object -> town = '' ;
2023-01-15 01:25:07 +01:00
$object -> zip = '' ;
$object -> state = '' ;
$object -> country = '' ;
}
2024-10-06 21:08:40 +02:00
2023-01-10 16:31:12 +01:00
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_COMPANY' , 0 , $object )) {
$company = null ;
}
2024-11-24 13:39:16 +01:00
if ( getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_EMAIL' , 0 , $object )) {
$mysoc -> email = '' ;
}
if ( getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_OFFICE_PHONE' , 0 , $object )) {
$mysoc -> phone = '' ;
}
if ( getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_OFFICE_FAX' , 0 , $object )) {
$mysoc -> fax = '' ;
}
if ( getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_URL' , 0 , $object )) {
$mysoc -> url = '' ;
}
2024-10-06 21:08:40 +02:00
if ( getDolUserInt ( 'USER_PUBLIC_HIDE_SOCIALNETWORKS_BUSINESS' , 0 , $object ) && is_object ( $company )) {
$company -> socialnetworks = [];
2024-11-24 13:00:08 +01:00
} else {
// Show list of social networks for company
$listofnetworks = $mysoc -> socialnetworks ;
2023-01-10 16:31:12 +01:00
2024-11-24 13:00:08 +01:00
if ( ! empty ( $listofnetworks )) {
foreach ( $listofnetworks as $key => $networkVal ) {
if ( getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_' . strtoupper ( $key ), 0 , $object )) {
unset ( $mysoc -> socialnetworks [ $key ]);
}
}
}
}
2023-01-10 16:31:12 +01:00
// Output vcard
2023-01-07 12:36:53 +01:00
if ( $mode == 'vcard' ) {
2023-01-10 16:31:12 +01:00
// We create VCard
$output = $v -> buildVCardString ( $object , $company , $langs , $urllogofull );
2023-01-07 04:05:59 +01:00
$filename = trim ( urldecode ( $v -> getFileName ())); // "Nom prenom.vcf"
$filenameurlencoded = dol_sanitizeFileName ( urlencode ( $filename ));
//$filename = dol_sanitizeFileName($filename);
2023-01-15 01:25:07 +01:00
top_httphead ( 'text/vcard; name="' . $filename . '"' );
2023-01-07 04:05:59 +01:00
header ( " Content-Disposition: attachment; filename= \" " . $filename . " \" " );
header ( " Content-Length: " . dol_strlen ( $output ));
header ( " Connection: close " );
print $output ;
$db -> close ();
exit ;
}
$head = '' ;
2023-11-27 11:56:32 +01:00
if ( getDolGlobalString ( 'MAIN_USER_PROFILE_CSS_URL' )) {
2023-10-15 18:39:13 +02:00
$head = '<link rel="stylesheet" type="text/css" href="' . getDolGlobalString ( 'MAIN_USER_PROFILE_CSS_URL' ) . '?lang=' . $langs -> defaultlang . '">' . " \n " ;
2023-01-07 04:05:59 +01:00
}
$conf -> dol_hide_topmenu = 1 ;
$conf -> dol_hide_leftmenu = 1 ;
if ( ! getDolUserInt ( 'USER_ENABLE_PUBLIC' , 0 , $object )) {
$langs -> load ( " errors " );
print '<div class="error">' . $langs -> trans ( 'ErrorPublicInterfaceNotEnabled' ) . '</div>' ;
$db -> close ();
exit ();
}
$arrayofjs = array ();
$arrayofcss = array ();
$replacemainarea = ( empty ( $conf -> dol_hide_leftmenu ) ? '<div>' : '' ) . '<div>' ;
2024-11-24 13:00:08 +01:00
llxHeader ( $head , $object -> getFullName ( $langs ) . ' - ' . $langs -> trans ( " PublicVirtualCard " ), '' , '' , 0 , 0 , $arrayofjs , $arrayofcss , '' , 'onlinepaymentbody' . ( GETPOST ( 'mode' ) == 'preview' ? ' scalepreview cursorpointer virtualcardpreview' : '' ), $replacemainarea , 1 , 1 );
2023-01-07 04:05:59 +01:00
2023-06-09 11:26:28 +02:00
print '
< style >
@ media ( prefers - color - scheme : dark ) {
form {
background - color : #CCC !important;
}
}
</ style >
' ;
2023-01-07 04:05:59 +01:00
print '<span id="dolpaymentspan"></span>' . " \n " ;
print '<div class="center">' . " \n " ;
2023-06-09 11:26:28 +02:00
2023-01-07 04:05:59 +01:00
print '<form id="dolpaymentform" class="center" name="paymentform" action="' . $_SERVER [ " PHP_SELF " ] . '" method="POST">' . " \n " ;
print '<input type="hidden" name="token" value="' . newToken () . '">' . " \n " ;
print '<input type="hidden" name="action" value="dosubmit">' . " \n " ;
print '<input type="hidden" name="securekey" value="' . $securekey . '">' . " \n " ;
2023-10-10 23:36:14 +02:00
print '<input type="hidden" name="entity" value="' . $conf -> entity . '" />' ;
2023-01-07 04:05:59 +01:00
print " \n " ;
// Output html code for logo
print '<div class="backgreypublicpayment">' ;
print '<div class="logopublicpayment">' ;
2023-01-07 12:36:53 +01:00
// Name
print '<div class="double colortext">' . $object -> getFullName ( $langs ) . '</div>' ;
// User position
if ( $object -> job && ! getDolUserInt ( 'USER_PUBLIC_HIDE_JOBPOSITION' , 0 , $object )) {
print '<div class="">' ;
print dol_escape_htmltag ( $object -> job );
print '</div>' ;
2023-01-07 04:05:59 +01:00
}
2023-01-26 12:07:04 +01:00
if ( ! getDolUserInt ( 'USER_PUBLIC_HIDE_COMPANY' , 0 , $object )) {
print '<div class="bold">' ;
print dol_escape_htmltag ( $mysoc -> name );
print '</div>' ;
}
2023-01-07 12:36:53 +01:00
2023-01-07 04:05:59 +01:00
print '</div>' ;
/* if ( empty ( $conf -> global -> MAIN_HIDE_POWERED_BY )) {
print '<div class="poweredbypublicpayment opacitymedium right"><a class="poweredbyhref" href="https://www.dolibarr.org?utm_medium=website&utm_source=poweredby" target="dolibarr" rel="noopener">' . $langs -> trans ( " PoweredBy " ) . '<br><img class="poweredbyimg" src="' . DOL_URL_ROOT . '/theme/dolibarr_logo.svg" width="80px"></a></div>' ;
} */
print '</div>' ;
2023-11-27 11:56:32 +01:00
if ( getDolGlobalString ( 'USER_IMAGE_PUBLIC_INTERFACE' )) {
2023-01-07 04:05:59 +01:00
print '<div class="backimagepublicrecruitment">' ;
2023-10-15 18:39:13 +02:00
print '<img id="idUSER_IMAGE_PUBLIC_INTERFACE" src="' . getDolGlobalString ( 'USER_IMAGE_PUBLIC_INTERFACE' ) . '">' ;
2023-01-07 04:05:59 +01:00
print '</div>' ;
}
2023-01-07 12:36:53 +01:00
$urlforqrcode = $object -> getOnlineVirtualCardUrl ( 'vcard' );
$socialnetworksdict = getArrayOfSocialNetworks ();
2023-01-07 04:05:59 +01:00
// Show barcode
$showbarcode = GETPOST ( 'nobarcode' ) ? 0 : 1 ;
if ( $showbarcode ) {
2024-09-01 14:54:05 +02:00
$outdir = $conf -> user -> dir_temp ;
2024-08-31 18:18:45 +02:00
$filename = $v -> buildVCardString ( $object , $company , $langs , '' , $outdir );
2023-01-10 16:31:12 +01:00
2023-01-07 04:05:59 +01:00
print '<br>' ;
2023-03-29 18:11:24 +02:00
print '<div class="floatleft inline-block valignmiddle paddingleft paddingright">' ;
2024-10-06 21:08:40 +02:00
//print '<!-- filename = '.dol_escape_htmltag($filename).' -->';
2024-08-31 18:18:45 +02:00
print '<img style="max-width: 100%" src="' . $dolibarr_main_url_root . '/viewimage.php?modulepart=barcode&entity=' . (( int ) $conf -> entity ) . '&generator=tcpdfbarcode&encoding=QRCODE&code=' . urlencode ( basename ( $filename )) . '">' ;
2023-01-07 04:05:59 +01:00
print '</div>' ;
print '<br>' ;
}
2023-04-19 23:42:05 +02:00
// Me section
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
$usersection = '' ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// User email
if ( $object -> email && ! getDolUserInt ( 'USER_PUBLIC_HIDE_EMAIL' , 0 , $object )) {
2023-01-07 17:00:39 +01:00
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= dol_print_email ( $object -> email , 0 , 0 , 1 , 0 , 1 , 1 );
$usersection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// User url
if ( $object -> url && ! getDolUserInt ( 'USER_PUBLIC_HIDE_URL' , 0 , $object )) {
2023-01-07 17:00:39 +01:00
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= img_picto ( '' , 'globe' , 'class="pictofixedwidth"' );
$usersection .= dol_print_url ( $object -> url , '_blank' , 0 , 0 , '' );
$usersection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2023-01-07 04:05:59 +01:00
2024-10-06 21:08:40 +02:00
// Office phone
2023-01-07 12:36:53 +01:00
if ( $object -> office_phone && ! getDolUserInt ( 'USER_PUBLIC_HIDE_OFFICE_PHONE' , 0 , $object )) {
2023-01-07 17:00:39 +01:00
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= img_picto ( '' , 'phone' , 'class="pictofixedwidth"' );
2024-09-10 14:54:54 +02:00
$usersection .= dol_print_phone ( $object -> office_phone , $object -> country_code , 0 , $mysoc -> id , 'tel' , ' ' , '' , '' );
2023-01-26 12:07:04 +01:00
$usersection .= '</div>' ;
2023-01-07 17:00:39 +01:00
}
2024-10-06 21:08:40 +02:00
// Office fax
2023-01-07 17:00:39 +01:00
if ( $object -> office_fax && ! getDolUserInt ( 'USER_PUBLIC_HIDE_OFFICE_FAX' , 0 , $object )) {
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= img_picto ( '' , 'phoning_fax' , 'class="pictofixedwidth"' );
2024-09-10 14:54:54 +02:00
$usersection .= dol_print_phone ( $object -> office_fax , $object -> country_code , 0 , $mysoc -> id , 'fax' , ' ' , '' , '' );
2023-01-26 12:07:04 +01:00
$usersection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2024-10-06 21:08:40 +02:00
// Mobile
2023-01-07 12:36:53 +01:00
if ( $object -> user_mobile && ! getDolUserInt ( 'USER_PUBLIC_HIDE_USER_MOBILE' , 0 , $object )) {
2023-01-07 17:00:39 +01:00
$usersection .= '<div class="flexitemsmall">' ;
2024-10-06 21:08:40 +02:00
$usersection .= img_picto ( '' , 'phoning_mobile' , 'class="pictofixedwidth"' );
2024-09-10 14:54:54 +02:00
$usersection .= dol_print_phone ( $object -> user_mobile , $object -> country_code , 0 , $mysoc -> id , 'tel' , ' ' , '' , '' );
2023-01-26 12:07:04 +01:00
$usersection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2024-01-24 11:42:26 +01:00
if ( getDolUserInt ( 'USER_PUBLIC_SHOW_BIRTH' , 0 , $object ) && ! is_null ( $object -> birth )) {
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= img_picto ( '' , 'calendar' , 'class="pictofixedwidth"' );
$usersection .= dol_print_date ( $object -> birth );
$usersection .= '</div>' ;
}
if ( getDolUserInt ( 'USER_PUBLIC_SHOW_ADDRESS' , 0 , $object ) && $object -> address ) {
$usersection .= '<div class="flexitemsmall">' ;
$usersection .= img_picto ( '' , 'state' , 'class="pictofixedwidth"' );
$usersection .= dol_print_address ( dol_format_address ( $object , 0 , " \n " , $langs ), 'map' , 'user' , $object -> id , 1 );
$usersection .= '</div>' ;
}
2023-01-07 12:36:53 +01:00
// Social networks
2024-10-29 23:09:56 +01:00
if ( ! empty ( $object -> socialnetworks ) && is_array ( $object -> socialnetworks )) {
2024-11-24 13:00:08 +01:00
if ( ! getDolUserString ( 'USER_PUBLIC_HIDE_SOCIALNETWORKS' , 0 , $object )) {
2024-10-29 23:09:56 +01:00
$listOfSocialNetworks = $object -> socialnetworks ;
foreach ( $listOfSocialNetworks as $key => $value ) {
2024-11-24 13:00:08 +01:00
if ( ! getDolUserString ( 'USER_HIDE_SOCIALNETWORK_' . strtoupper ( $key ), 0 , $object )) {
2025-02-02 00:29:08 +01:00
$usersection .= '<div class="flexitemsmall">' . dol_print_socialnetworks ( $value , 0 , $object -> id , strtolower ( $key ), $socialnetworksdict ) . '</div>' ;
2023-01-07 12:36:53 +01:00
}
}
}
}
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
if ( $usersection ) {
2023-04-19 23:42:05 +02:00
// Show photo
if ( $urllogo ) {
print '<img class="userphotopublicvcard" id="dolpaymentlogo" src="' . $urllogofull . '">' ;
2024-10-31 01:18:37 +01:00
} else {
print '<br>' ;
2023-04-19 23:42:05 +02:00
}
2023-01-07 17:00:39 +01:00
print '<table id="dolpaymenttable" summary="Job position offer" class="center">' . " \n " ;
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
// Output payment summary form
print '<tr><td class="left">' ;
2023-01-26 12:07:04 +01:00
print '<div class="nowidthimp nopaddingtoponsmartphone" id="tablepublicpayment">' ;
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
print $usersection ;
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
print '</div>' . " \n " ;
print " \n " ;
2023-01-07 04:05:59 +01:00
2023-01-07 17:00:39 +01:00
print '</td></tr>' . " \n " ;
print '</table>' . " \n " ;
2023-04-19 23:42:05 +02:00
} else {
// Show photo
if ( $urllogo ) {
print '<br><center><img class="userphotopublicvcard" style="position: unset !important;" id="dolpaymentlogo" src="' . $urllogofull . '"></center>' ;
}
2023-01-07 17:00:39 +01:00
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
if ( ! getDolUserInt ( 'USER_PUBLIC_HIDE_COMPANY' , 0 , $object )) {
$companysection = '' ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
if ( $mysoc -> email ) {
$companysection .= '<div class="flexitemsmall">' ;
$companysection .= img_picto ( '' , 'email' , 'class="pictofixedwidth"' );
$companysection .= dol_print_email ( $mysoc -> email , 0 , 0 , 1 );
2023-01-26 12:07:04 +01:00
$companysection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
if ( $mysoc -> url ) {
$companysection .= '<div class="flexitemsmall">' ;
$companysection .= img_picto ( '' , 'globe' , 'class="pictofixedwidth"' );
$companysection .= dol_print_url ( $mysoc -> url , '_blank' , 0 , 0 , '' );
$companysection .= '</div>' ;
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
if ( $mysoc -> phone ) {
$companysection .= '<div class="flexitemsmall">' ;
$companysection .= img_picto ( '' , 'phone' , 'class="pictofixedwidth"' );
2024-09-10 14:54:54 +02:00
$companysection .= dol_print_phone ( $mysoc -> phone , $mysoc -> country_code , 0 , $mysoc -> id , 'tel' , ' ' , '' , '' );
2023-01-26 12:07:04 +01:00
$companysection .= '</div>' ;
2023-01-07 12:36:53 +01:00
}
2023-01-07 17:00:39 +01:00
if ( $mysoc -> fax ) {
$companysection .= '<div class="flexitemsmall">' ;
$companysection .= img_picto ( '' , 'phoning_fax' , 'class="pictofixedwidth"' );
2024-09-10 14:54:54 +02:00
$companysection .= dol_print_phone ( $mysoc -> fax , $mysoc -> country_code , 0 , $mysoc -> id , 'fax' , ' ' , '' , '' );
2023-01-26 12:07:04 +01:00
$companysection .= '</div>' ;
2023-01-07 17:00:39 +01:00
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// Social networks
if ( ! empty ( $mysoc -> socialnetworks ) && is_array ( $mysoc -> socialnetworks ) && count ( $mysoc -> socialnetworks ) > 0 ) {
2024-11-24 13:00:08 +01:00
if ( ! getDolUserInt ( 'USER_PUBLIC_HIDE_SOCIALNETWORKS_BUSINESS' , 0 , $object )) {
2024-10-06 21:08:40 +02:00
foreach ( $mysoc -> socialnetworks as $key => $value ) {
2024-11-24 13:00:08 +01:00
if ( ! getDolUserInt ( 'SOCIETE_PUBLIC_HIDE_SOCIALNETWORKS_' . strtoupper ( $key ), 0 , $object )) {
2024-10-06 21:08:40 +02:00
$companysection .= '<div class="flexitemsmall wordbreak">' . dol_print_socialnetworks ( $value , 0 , $mysoc -> id , $key , $socialnetworksdict ) . '</div>' ;
}
2023-01-07 12:36:53 +01:00
}
}
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// Show logo (search order: logo defined by ONLINE_SIGN_LOGO_suffix, then ONLINE_SIGN_LOGO_, then small company logo, large company logo, theme logo, common logo)
// Define logo and logosmall
$logosmall = $mysoc -> logo_squarred_small ? $mysoc -> logo_squarred_small : $mysoc -> logo_small ;
$logo = $mysoc -> logo_squarred ? $mysoc -> logo_squarred : $mysoc -> logo ;
$paramlogo = 'ONLINE_USER_LOGO_' . $suffix ;
2023-12-23 20:00:57 +01:00
if ( getDolGlobalString ( $paramlogo )) {
$logosmall = getDolGlobalString ( $paramlogo );
2023-11-27 11:56:32 +01:00
} elseif ( getDolGlobalString ( 'ONLINE_USER_LOGO' )) {
2023-12-23 20:00:57 +01:00
$logosmall = getDolGlobalString ( 'ONLINE_USER_LOGO' );
2023-01-07 04:05:59 +01:00
}
2023-01-07 12:36:53 +01:00
//print '<!-- Show logo (logosmall='.$logosmall.' logo='.$logo.') -->'."\n";
// Define urllogo
$urllogo = '' ;
$urllogofull = '' ;
if ( ! empty ( $logosmall ) && is_readable ( $conf -> mycompany -> dir_output . '/logos/thumbs/' . $logosmall )) {
2023-01-15 01:25:07 +01:00
$urllogo = DOL_URL_ROOT . '/viewimage.php?modulepart=mycompany' . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&file=' . urlencode ( 'logos/thumbs/' . $logosmall );
$urllogofull = $dolibarr_main_url_root . '/viewimage.php?modulepart=mycompany' . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&file=' . urlencode ( 'logos/thumbs/' . $logosmall );
2023-01-07 12:36:53 +01:00
} elseif ( ! empty ( $logo ) && is_readable ( $conf -> mycompany -> dir_output . '/logos/' . $logo )) {
2023-01-15 01:25:07 +01:00
$urllogo = DOL_URL_ROOT . '/viewimage.php?modulepart=mycompany' . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&file=' . urlencode ( 'logos/' . $logo );
$urllogofull = $dolibarr_main_url_root . '/viewimage.php?modulepart=mycompany' . ( $conf -> entity > 1 ? '&entity=' . $conf -> entity : '' ) . '&file=' . urlencode ( 'logos/' . $logo );
2023-01-07 04:05:59 +01:00
}
2023-01-07 12:36:53 +01:00
// Output html code for logo
if ( $urllogo ) {
print '<div class="logopublicpayment center">' ;
if ( ! empty ( $mysoc -> url )) {
print '<a href="' . $mysoc -> url . '" target="_blank" rel="noopener">' ;
}
print '<img class="userphotopublicvcard" id="dolpaymentlogo" src="' . $urllogofull . '">' ;
if ( ! empty ( $mysoc -> url )) {
print '</a>' ;
}
print '</div>' ;
}
print '<table id="dolpaymenttable" summary="Job position offer" class="center">' . " \n " ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// Output payment summary form
print '<tr><td class="left">' ;
2023-01-07 04:05:59 +01:00
2023-01-26 12:07:04 +01:00
print '<div class="nowidthimp nopaddingtoponsmartphone" id="tablepublicpayment">' ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
// Add company info
if ( $mysoc -> name ) {
print '<div class="center bold">' ;
2023-01-26 12:07:04 +01:00
print dol_escape_htmltag ( $mysoc -> name );
2023-01-07 12:36:53 +01:00
print '</div>' ;
print '<br>' ;
}
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
print $companysection ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
print '</div>' . " \n " ;
print " \n " ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
print '</td></tr>' . " \n " ;
2023-01-07 04:05:59 +01:00
2023-01-07 12:36:53 +01:00
print '</table>' . " \n " ;
}
2023-01-07 04:05:59 +01:00
// Description
$text = getDolUserString ( 'USER_PUBLIC_MORE' , '' , $object );
print $text ;
print '</form>' . " \n " ;
print '</div>' . " \n " ;
print '<br>' ;
print '<div class="backgreypublicpayment">' ;
print '<div class="center">' ;
print '<a href="' . $urlforqrcode . '">' ;
2023-01-15 02:01:28 +01:00
// Download / AddToContacts
print img_picto ( $langs -> trans ( " Download " ) . ' VCF' , 'add' ) . ' ' ;
print $langs -> trans ( " Download " ) . ' VCF' ;
2023-01-07 04:05:59 +01:00
print '</a>' ;
print '</div>' ;
//print '<div>';
//print '</div>';
print '</div>' ;
2023-03-13 16:28:58 +01:00
$fullexternaleurltovirtualcard = $object -> getOnlineVirtualCardUrl ( '' , 'external' );
$fullinternalurltovirtualcard = $object -> getOnlineVirtualCardUrl ( '' , 'internal' );
print '<script>' ;
print ' jQuery ( document ) . ready ( function () {
jQuery ( " .virtualcardpreview " ) . click ( function ( event ) {
event . preventDefault ();
console . log ( " We click on the card " );
window . open ( " '. $fullexternaleurltovirtualcard .' " );
});
}); ' ;
print '</script>' ;
2023-01-07 04:05:59 +01:00
llxFooter ( '' , 'public' );
$db -> close ();