Bugs
* Fix that non-Auto mode import didn't work (Adrian Nida)
* Fix inability to drop constraints when using a non-english translation
+* Work around MSIE's failure to handle downloads in SSL mode
Version 3.4.1
-------------
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.63 2004/09/07 13:58:21 jollytoad Exp $
+ * $Id: database.php,v 1.64 2004/11/04 02:56:50 chriskl Exp $
*/
// Include application functions
echo "<h3>{$lang['stroptions']}</h3>\n";
echo "<p><input type=\"radio\" name=\"output\" value=\"show\" checked=\"checked\" />{$lang['strshow']}\n";
echo "<br/><input type=\"radio\" name=\"output\" value=\"download\" />{$lang['strdownload']}\n";
- echo "<br /><input type=\"radio\" name=\"output\" value=\"gzipped\" />{$lang['strdownloadgzipped']}</p>\n";
-
+ // MSIE cannot download gzip in SSL mode - it's just broken
+ if (!(strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS']))) {
+ echo "<br /><input type=\"radio\" name=\"output\" value=\"gzipped\" />{$lang['strdownloadgzipped']}\n";
+ }
+ echo "</p>\n";
echo "<p><input type=\"hidden\" name=\"action\" value=\"export\" />\n";
echo "<p><input type=\"hidden\" name=\"mode\" value=\"database\" />\n";
echo $misc->form;
* Does an export to the screen or as a download. This checks to
* see if they have pg_dump set up, and will use it if possible.
*
- * $Id: dataexport.php,v 1.16 2004/08/04 07:44:03 chriskl Exp $
+ * $Id: dataexport.php,v 1.17 2004/11/04 02:56:51 chriskl Exp $
*/
$extensions = array(
// Make it do a download, if necessary
if ($_REQUEST['output'] == 'download') {
- header('Content-Type: application/download');
-
- if (isset($extensions[$format]))
- $ext = $extensions[$format];
- else
- $ext = 'txt';
-
- header('Content-Disposition: attachment; filename=dump.' . $ext);
+ // Set headers. MSIE is totally broken for SSL downloading, so
+ // we need to have it download in-place as plain text
+ if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS'])) {
+ header('Content-Type: text/plain');
+ }
+ else {\r
+ header('Content-Type: application/download');
+
+ if (isset($extensions[$format]))
+ $ext = $extensions[$format];
+ else
+ $ext = 'txt';
+
+ header('Content-Disposition: attachment; filename=dump.' . $ext);
+ }
}
else {
header('Content-Type: text/plain');
* Does an export of a database or a table (via pg_dump)
* to the screen or as a download.
*
- * $Id: dbexport.php,v 1.13 2004/10/06 08:39:49 jollytoad Exp $
+ * $Id: dbexport.php,v 1.14 2004/11/04 02:56:51 chriskl Exp $
*/
// Include application functions
header('Content-Type: text/plain');
break;
case 'download':
- header('Content-Type: application/download');
- header('Content-Disposition: attachment; filename=dump.sql');
+ // Set headers. MSIE is totally broken for SSL downloading, so
+ // we need to have it download in-place as plain text
+ if (strstr($_SERVER['HTTP_USER_AGENT'], 'MSIE') && isset($_SERVER['HTTPS'])) {
+ header('Content-Type: text/plain');
+ }
+ else {
+ header('Content-Type: application/download');
+ header('Content-Disposition: attachment; filename=dump.sql');
+ }
break;
case 'gzipped':
+ // MSIE in SSL mode cannot do this - it should never get to this point
header('Content-Type: application/download');
header('Content-Disposition: attachment; filename=dump.sql.gz');
break;