+
+ $ext = '.xls';
+ $outfmt = 'Gnumeric_Excel:excel_biff8';
+ $mime = 'application/vnd.ms-excel';
+ if (!empty($_POST['format']) && $_POST['format']=='xlsx') {
+ $outfmt = 'Gnumeric_Excel:xlsx';
+ $ext = '.xlsx';
+ $mime = 'aapplication/vnd.openxmlformats-officedocument.spreadsheetml.sheet';
+ }
+
+
+