From c3248cd3ec7ed46c16faff8215fc0bd551310812 Mon Sep 17 00:00:00 2001 From: amazuecos Date: Thu, 29 Aug 2024 01:02:33 +0200 Subject: [PATCH] add FTP Config file --- ci4/app/Config/FTP.php | 50 +++++------------------------------------- 1 file changed, 5 insertions(+), 45 deletions(-) diff --git a/ci4/app/Config/FTP.php b/ci4/app/Config/FTP.php index f3faf0a0..d3b963f1 100644 --- a/ci4/app/Config/FTP.php +++ b/ci4/app/Config/FTP.php @@ -6,53 +6,13 @@ use CodeIgniter\Config\BaseConfig; class FTP extends BaseConfig { - /** - * Lets you choose which connection group to - * use if no other is specified. - */ - public string $defaultGroup = 'default'; - /** - * The default ftp connection. - */ - public array $default = [ - "host" => "sk-ftp", - "user" => "admin", - "password" => "A77h3b0X4OA2rOYAf4w2", - "base_dir" => "/home/admin/safekat" # FTP server directory - ]; - /** - * This database connection is used when - * running PHPUnit database tests. - */ - public array $production = [ - "host" => "sk-ftp", - "user" => "admin", - "password" => "A77h3b0X4OA2rOYAf4w2", - "base_dir" => "/home/admin/safekat" # FTP server directory - ]; - /** - * This database connection is used when - * running PHPUnit database tests. - */ - public array $development = [ - "host" => "sk-ftp", - "port" => "21000", - "user" => "admin", - "password" => "A77h3b0X4OA2rOYAf4w2", - "base_dir" => "/home/admin/safekat" # FTP server directory + public string $host = "10.5.0.6"; + public int $port = 21; + public string $username = "admin"; + public string $password = "A77h3b0X4OA2rOYAf4w2"; + public string $base_dir = "/home/admin/safekat"; # FTP server directory - ]; - public function __construct() - { - parent::__construct(); - // Ensure that we always set the database group to 'tests' if - // we are currently running an automated test suite, so that - // we don't overwrite live data on accident. - if (ENVIRONMENT === 'development') { - $this->defaultGroup = 'development'; - } - } }