* 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.17.2.1 2005/02/09 11:31:49 chriskl Exp $
+ * $Id: dataexport.php,v 1.17.2.2 2005/03/04 02:32:44 chriskl Exp $
*/
$extensions = array(
'xml' => 'xml'
);
- // Prevent timeouts on large exports
- set_time_limit(0);
+ // Prevent timeouts
+ if (!ini_get('safe_mode')) set_time_limit(0);
+
// if (!isset($_REQUEST['table']) && !isset($_REQUEST['query']))
// What must we do in this case? Maybe redirect to the homepage?
/**
* Does an import to a particular table from a text file
*
- * $Id: dataimport.php,v 1.6.2.1 2005/02/09 11:31:49 chriskl Exp $
+ * $Id: dataimport.php,v 1.6.2.2 2005/03/04 02:32:44 chriskl Exp $
*/
- // Prevent timeouts on large imports
- set_time_limit(0);
+ // Prevent timeouts
+ if (!ini_get('safe_mode')) set_time_limit(0);
+
// Include application functions
include_once('./libraries/lib.inc.php');
* Does an export of a database or a table (via pg_dump)
* to the screen or as a download.
*
- * $Id: dbexport.php,v 1.14.2.4 2005/02/24 09:57:44 chriskl Exp $
+ * $Id: dbexport.php,v 1.14.2.5 2005/03/04 02:32:44 chriskl Exp $
*/
- // Prevent timeouts on large exports
- set_time_limit(0);
+ // Prevent timeouts
+ if (!ini_get('safe_mode')) set_time_limit(0);
+
// Include application functions
$_no_output = true;
include_once('./libraries/lib.inc.php');
* @param $return_desc The return link name
* @param $page The current page
*
- * $Id: display.php,v 1.46.2.1 2005/02/09 11:31:49 chriskl Exp $
+ * $Id: display.php,v 1.46.2.2 2005/03/04 02:32:44 chriskl Exp $
*/
- // Prevent timeouts on large result sets
- set_time_limit(0);
+ // Prevent timeouts
+ if (!ini_get('safe_mode')) set_time_limit(0);
+
// Include application functions
include_once('./libraries/lib.inc.php');
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.26.2.1 2005/02/09 11:31:49 chriskl Exp $
+ * $Id: sql.php,v 1.26.2.2 2005/03/04 02:32:45 chriskl Exp $
*/
- // Prevent timeouts on large SQL sets
- set_time_limit(0);
+ // Prevent timeouts on large exports (non-safe mode only)
+ if (!ini_get('safe_mode')) set_time_limit(0);
+
// Include application functions
include_once('./libraries/lib.inc.php');