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.119
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
var /
www /
html /
ctm.bdcloud.fr /
core /
modules /
export /
Delete
Unzip
Name
Size
Permission
Date
Action
export_csv.modules.php
9.18
KB
-rw-r--r--
2020-09-03 11:41
export_excel.modules.php
16.65
KB
-rw-r--r--
2020-09-03 11:41
export_excel2007.modules.php
3.91
KB
-rw-r--r--
2020-09-03 11:41
export_excel2007new.modules.php
13.39
KB
-rw-r--r--
2020-09-03 11:41
export_tsv.modules.php
8.45
KB
-rw-r--r--
2020-09-03 11:41
index.html
0
B
-rw-r--r--
2020-09-03 11:41
modules_export.php
4.41
KB
-rw-r--r--
2020-09-03 11:41
Save
Rename
<?php /* Copyright (C) 2006-2011 Laurent Destailleur <eldy@users.sourceforge.net> * Copyright (C) 2012 Marcos GarcĂa <marcosgdf@gmail.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/export_excel2007.modules.php * \ingroup export * \brief File of class to generate export file with Excel format */ require_once DOL_DOCUMENT_ROOT.'/core/modules/export/modules_export.php'; require_once DOL_DOCUMENT_ROOT.'/core/modules/export/export_excel.modules.php'; require_once DOL_DOCUMENT_ROOT.'/core/lib/date.lib.php'; /** * Class to build export files with Excel format */ class ExportExcel2007 extends ExportExcel { /** * @var string ID */ public $id; /** * @var string label */ public $label; public $extension; /** * Dolibarr version of the loaded document * @var string */ public $version = 'dolibarr'; public $label_lib; public $version_lib; public $workbook; // Handle fichier public $worksheet; // Handle onglet public $row; public $col; public $file; // To save filename /** * Constructor * * @param DoliDB $db Database handler */ public function __construct($db) { global $conf, $langs; $this->db = $db; $this->id='excel2007'; // Same value then xxx in file name export_xxx.modules.php $this->label='Excel 2007 (old library)'; // Label of driver $this->desc = $langs->trans('Excel2007FormatDesc'); $this->extension='xlsx'; // Extension for generated file by this driver $this->picto='mime/xls'; // Picto $this->version='1.30'; // Driver version $this->disabled = (in_array(constant('PHPEXCEL_PATH'), array('disabled','disabled/'))?1:0); // A condition to disable module (used for native debian packages) if (empty($this->disabled)) { // If driver use an external library, put its name here if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) { require_once PHP_WRITEEXCEL_PATH.'class.writeexcel_workbookbig.inc.php'; require_once PHP_WRITEEXCEL_PATH.'class.writeexcel_worksheet.inc.php'; require_once PHP_WRITEEXCEL_PATH.'functions.writeexcel_utility.inc.php'; $this->label_lib='PhpWriteExcel'; $this->version_lib='unknown'; } else { require_once PHPEXCEL_PATH.'PHPExcel.php'; require_once PHPEXCEL_PATH.'PHPExcel/Style/Alignment.php'; $this->label_lib='PhpExcel'; $this->version_lib='1.8.0'; // No way to get info from library } } $this->row=0; } // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps /** * Close Excel file * * @return int <0 if KO, >0 if OK */ public function close_file() { // phpcs:enable global $conf; if (! empty($conf->global->MAIN_USE_PHP_WRITEEXCEL)) { $this->workbook->close(); } else { require_once PHPEXCEL_PATH.'PHPExcel/Writer/Excel5.php'; $objWriter = new PHPExcel_Writer_Excel2007($this->workbook); $objWriter->save($this->file); $this->workbook->disconnectWorksheets(); unset($this->workbook); } return 1; } }