Files
safekat/ci4/app/Config/FTP.php
2024-08-28 22:28:34 +02:00

59 lines
1.5 KiB
PHP

<?php
namespace Config;
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 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';
}
}
}