feat: add config class for XML export to sftp

This commit is contained in:
amazuecos
2024-09-02 23:28:54 +02:00
parent 23a34d10b0
commit 173b6d5a5d

View File

@ -0,0 +1,27 @@
<?php
namespace Config;
use CodeIgniter\Config\BaseConfig;
class PedidoXML extends BaseConfig
{
public string $host;
public int $port;
public string $username;
public string $password;
public string $base_dir; # FTP server directory
public bool $xml_enabled;
public function __construct() {
parent::__construct();
$this->host = env("HIDRIVE_HOST","10.5.0.6");
$this->port = env("HIDRIVE_USER",21);
$this->username = env("HIDRIVE_PASS","admin");
$this->password = env("FTP_XML_PASSWORD","A77h3b0X4OA2rOYAf4w2");
$this->base_dir = env("HIDRIVE_PATH_ROOT","/home/admin/safekat"); # FTP server directory
$this->xml_enabled = env("FTP_XML_ENABLED",false);
}
}