Done !
| Server IP : 46.105.57.169 / Your IP : 216.73.216.67 Web Server : Apache System : Linux webm002.cluster120.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaumee ( 152031) PHP Version : 8.5.7 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaumee/zenit/administrator/components/com_hikashop/views/entry/tmpl/ |
Upload File : |
<?php
/**
* @package HikaShop for Joomla!
* @version 4.5.1
* @author hikashop.com
* @copyright (C) 2010-2022 HIKARI SOFTWARE. All rights reserved.
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
defined('_JEXEC') or die('Restricted access');
?><?php
$config =& hikashop_config();
$separator = $config->get('csv_separator',";");
ob_start();
$first_row = reset($this->rows);
echo '"'.implode('"'.$separator.'"',array_keys(get_object_vars($first_row))).'"';
foreach($this->rows as $row){
foreach(get_object_vars($row) as $k => $v){
$row->$k = '"'.str_replace('"','\"',$v).'"';
}
echo "\n".implode($separator,get_object_vars($row));
}
$data = ob_get_clean();
ini_set('output_buffering', 0);
ini_set('zlib.output_compression', 0);
hikashop_cleanBuffers();
header("Expires: 0");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: application/octet-stream");
header("Content-Transfer-Encoding: binary");
$len = strlen($data);
header("Content-Length: $len");
header("Cache-Control: maxage=1");
header("Pragma: public");
header("Content-Disposition: attachment; filename=\"entries_".date('Y-m-d_H:i:s').".csv\"");
echo $data;
exit;