Update generate.php

Script picks up the compression option for the POST data. This seems to be working with most export types except for Excel (generates the excel file irrespective) and Language types (blank zip archive).