mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
ftp service
This commit is contained in:
58
ci4/app/Config/FTP.php
Normal file
58
ci4/app/Config/FTP.php
Normal file
@ -0,0 +1,58 @@
|
||||
<?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';
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user