Retirer un accès DNS et TLS d'un dossier



dir."); // Delete Nginx config $onion = query('select', 'sites', [ 'username' => $_SESSION['username'], 'domain_type' => 'dns', 'protocol' => 'http', 'site_dir' => $_POST['dir'], ], 'domain')[0]; if (unlink(CONF['ht']['nginx_config_path'] . "/" . $onion . ".conf") !== true) serverError("Failed to delete Nginx configuration."); // Reload Nginx exec(CONF['ht']['sudo_path'] . " " . CONF['ht']['systemctl_path'] . " reload nginx", result_code: $code); if ($code !== 0) serverError("Failed to reload Nginx."); // Delete from database query('delete', 'sites', [ 'username' => $_SESSION['username'], 'domain_type' => 'dns', 'protocol' => 'http', 'site_dir' => $_POST['dir'], ]); success("Accès retiré avec succès.");