'S3 Backup', // 'type' => 's3', // 'bucket' => 'example-bucket', // 'region' => 'eu-central-1', // 'prefix' => 'psa-orderform', // 'access_key' => 'AKIA...', // 'secret_key' => '...', // // Optional for S3-compatible storage: // // 'endpoint' => 'https://s3.example.org', // ], // [ // 'name' => 'SFTP Backup', // 'type' => 'sftp', // 'host' => 'backup.example.org', // 'port' => 22, // 'username' => 'backup-user', // 'password' => '...', // 'path' => '/backups/psa-orderform', // ], // [ // 'name' => 'Custom Backup', // 'type' => 'custom', // 'file' => __DIR__ . '/custom-backup-uploader.php', // 'callback' => 'uploadPsaOrderformBackup', // ], // [ // 'name' => 'Managed Backup Server', // 'type' => 'managed', // 'url' => 'https://backup.example.org/upload.php', // 'instance' => 'stadt-freising-prod', // ], ]); // Session settings if (session_status() === PHP_SESSION_NONE) { $isHttps = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off') || (isset($_SERVER['SERVER_PORT']) && (int) $_SERVER['SERVER_PORT'] === 443); ini_set('session.use_strict_mode', '1'); ini_set('session.cookie_httponly', '1'); ini_set('session.cookie_secure', $isHttps ? '1' : '0'); ini_set('session.cookie_samesite', 'Lax'); session_start(); }