public static function DownloadAttachments($doaction)
 {
     if ($_GET['page'] == self::PLUGIN_THEME_LAYOUTS && $doaction == 'export') {
         if (isset($_GET['ids'])) {
             $ids = $_GET['ids'];
             $xml = GFontsDB::ExportThemeLayouts($ids);
             header('Content-Description: File Transfer');
             header('Content-type: text/xml');
             header('Content-Disposition: attachment; filename="export' . date("YmdHis") . '.xml"');
             echo $xml;
             die;
         }
     }
     if ($_GET['page'] == self::PLUGIN_CUSTOM_TITLE_PRESETS && $doaction == 'export') {
         if (isset($_GET['ids'])) {
             $ids = $_GET['ids'];
             $xml = GFontsDB::ExportTitlePresets($ids);
             header('Content-Description: File Transfer');
             header('Content-type: text/xml');
             header('Content-Disposition: attachment; filename="presets' . date("YmdHis") . '.xml"');
             echo $xml;
             die;
         }
     }
 }