* 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.14 2004/04/12 07:50:32 chriskl Exp $
+ * $Id: dataexport.php,v 1.15 2004/06/07 15:39:38 chriskl Exp $
*/
$extensions = array(
$url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
$url .= '&what=' . urlencode($_REQUEST['what']);
$url .= '&table=' . urlencode($_REQUEST['table']);
- $url .= '&schema=' . urlencode($_REQUEST['schema']);
+ if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
$url .= '&d_format=' . urlencode($_REQUEST['d_format']);
$url .= '&output=' . urlencode($_REQUEST['output']);
if (isset($_REQUEST['d_oids'])) $url .= '&d_oids=' . urlencode($_REQUEST['d_oids']);
$url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
$url .= '&what=' . urlencode($_REQUEST['what']);
$url .= '&table=' . urlencode($_REQUEST['table']);
- $url .= '&schema=' . urlencode($_REQUEST['schema']);
+ if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
$url .= '&output=' . urlencode($_REQUEST['output']);
if (isset($_REQUEST['s_clean'])) $url .= '&s_clean=' . urlencode($_REQUEST['s_clean']);
$url .= "&" . SID;
$url = 'dbexport.php?database=' . urlencode($_REQUEST['database']);
$url .= '&what=' . urlencode($_REQUEST['what']);
$url .= '&table=' . urlencode($_REQUEST['table']);
- $url .= '&schema=' . urlencode($_REQUEST['schema']);
+ if ($data->hasSchemas()) $url .= '&schema=' . urlencode($_REQUEST['schema']);
$url .= '&sd_format=' . urlencode($_REQUEST['sd_format']);
$url .= '&output=' . urlencode($_REQUEST['output']);
if (isset($_REQUEST['sd_clean'])) $url .= '&sd_clean=' . urlencode($_REQUEST['sd_clean']);
if (isset($_REQUEST['sd_oids'])) $url .= '&sd_oids=' . urlencode($_REQUEST['sd_oids']);
$url .= "&" . SID;
-
+
header("Location: {$url}");
exit;
}