Implemented server, database, and environment backups with configurable modules. Introduced new routes and configuration classes for backups alongside improved zip and S3 storage. Replaced PHPMailer with a cURL-based email service for streamlined message sending.
29 lines
495 B
PHP
29 lines
495 B
PHP
<?php
|
|
|
|
namespace backups\config;
|
|
|
|
use Exception;
|
|
use traits\module_config_variable;
|
|
|
|
class backups_enabled_c
|
|
{
|
|
use module_config_variable;
|
|
|
|
/**
|
|
* @throws Exception
|
|
*/
|
|
public function __construct()
|
|
{
|
|
self::setupConfigVariable(
|
|
'Backups',
|
|
'enabled',
|
|
'bool',
|
|
true,
|
|
null,
|
|
'Whether the backup module is enabled or not',
|
|
'1',
|
|
false,
|
|
'false'
|
|
);
|
|
}
|
|
} |