<?php
ini_set('display_errors', '0');
error_reporting(0);

define('SECURE_ACCESS', true);
$_SERVER['REQUEST_METHOD'] = 'GET';

require_once __DIR__ . '/../includes/config.php';
require_once __DIR__ . '/../includes/db.php';
require_once __DIR__ . '/../includes/auth.php';

if (session_status() === PHP_SESSION_NONE) {
    session_start();
}
$_SESSION['user_id'] = 1;
$_SESSION['username'] = 'admin';
$_SESSION['role'] = 'admin';

$_GET['action'] = 'download';
include __DIR__ . '/../api/db_backup.php';
