Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
btm2000.apps-dev.fr /
user /
Delete
Unzip
Name
Size
Permission
Date
Action
admin
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
class
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
group
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
notify
[ DIR ]
drwxr-xr-x
2023-12-15 13:44
agenda_extsites.php
10.12
KB
-rw-r--r--
2023-12-15 13:44
bank.php
38.56
KB
-rw-r--r--
2023-12-15 13:44
card.php
115.58
KB
-rw-r--r--
2023-12-15 13:44
clicktodial.php
8.08
KB
-rw-r--r--
2023-12-15 13:44
document.php
8
KB
-rw-r--r--
2023-12-15 13:44
hierarchy.php
10.06
KB
-rw-r--r--
2023-12-15 13:44
home.php
10.43
KB
-rw-r--r--
2023-12-15 13:44
info.php
3.58
KB
-rw-r--r--
2023-12-15 13:44
ldap.php
6.79
KB
-rw-r--r--
2023-12-15 13:44
list.php
54.17
KB
-rw-r--r--
2023-12-15 13:44
logout.php
3.88
KB
-rw-r--r--
2023-12-15 13:44
note.php
5.34
KB
-rw-r--r--
2023-12-15 13:44
param_ihm.php
23.86
KB
-rw-r--r--
2023-12-15 13:44
passwordforgotten.php
9.12
KB
-rw-r--r--
2023-12-15 13:44
perms.php
30.46
KB
-rw-r--r--
2023-12-15 13:44
vcard.php
2.31
KB
-rw-r--r--
2023-12-15 13:44
virtualcard.php
13.1
KB
-rw-r--r--
2023-12-15 13:44
Save
Rename
<?php /* Copyright (C) 2004 Rodolphe Quiedeville <rodolphe@quiedeville.org> * Copyright (C) 2004-2023 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2012 Regis Houssin <regis.houssin@inodbox.com> * Copyright (C) 2020 Tobias Sekan <tobias.sekan@startmail.com> * Copyright (C) 2021-2022 Anthony Berton <anthony.berton@bb2a.fr> * * 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/user/vcard.php * \ingroup user * \brief Page to return a user vcard */ // Load Dolibarr environment require '../main.inc.php'; require_once DOL_DOCUMENT_ROOT.'/user/class/user.class.php'; require_once DOL_DOCUMENT_ROOT.'/societe/class/societe.class.php'; require_once DOL_DOCUMENT_ROOT.'/core/class/vcard.class.php'; $id = GETPOST('id', 'int'); // Security check $socid = 0; if ($user->socid > 0) { $socid = $user->socid; } $feature2 = 'user'; $result = restrictedArea($user, 'user', $id, 'user', $feature2); $object = new User($db); $result = $object->fetch($id); if ($result <= 0) { dol_print_error($object->error); exit; } // Data from linked company $company = new Societe($db); if ($object->socid > 0) { $result = $company->fetch($object->socid); } /* * View */ // We create VCard $v = new vCard(); $output = $v->buildVCardString($object, $company, $langs); $filename = trim(urldecode($v->getFileName())); // "Nom prenom.vcf" $filenameurlencoded = dol_sanitizeFileName(urlencode($filename)); //$filename = dol_sanitizeFileName($filename); top_httphead('text/x-vcard; name="'.$filename.'"'); header("Content-Disposition: attachment; filename=\"".$filename."\""); header("Content-Length: ".dol_strlen($output)); header("Connection: close"); print $output; $db->close();