* advanced stats functions
* Find links columns in views incorrectly
* getView() isn't schema-aware for 7.3+?
-* rename function in 7.2 and below doesn't come back to the correct function
\ No newline at end of file
+* rename function in 7.2 and below doesn't come back to the correct function
/**
* Manage schemas within a database
*
- * $Id: database.php,v 1.43 2004/05/19 01:28:34 soranzo Exp $
+ * $Id: database.php,v 1.44 2004/05/26 23:40:20 soranzo Exp $
*/
// Include application functions
echo "<p>{$lang['strsql']}<br />\n";
echo "<textarea style=\"width:100%;\" rows=\"20\" cols=\"50\" name=\"query\">",
htmlspecialchars($_REQUEST['query']), "</textarea>\n";
-
- // Check that file uploads are enabled
- if (ini_get('file_uploads')) {
- // Don't show upload option if max size of uploads is zero
- $max_size = $misc->inisizeToBytes(ini_get('upload_max_filesize'));
- if (is_double($max_size) && $max_size > 0) {
- echo "<br /><br /><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$max_size}\" />\n";
- echo " {$lang['struploadscript']} <input name=\"script\" type=\"file\" /></p>\n";
- }
- }
- else echo "</p>\n";
+
+ // Check that file uploads are enabled
+ if (ini_get('file_uploads')) {
+ // Don't show upload option if max size of uploads is zero
+ $max_size = $misc->inisizeToBytes(ini_get('upload_max_filesize'));
+ if (is_double($max_size) && $max_size > 0) {
+ echo "<br /><br /><input type=\"hidden\" name=\"MAX_FILE_SIZE\" value=\"{$max_size}\" />\n";
+ echo " {$lang['struploadscript']} <input name=\"script\" type=\"file\" /></p>\n";
+ }
+ }
+ else echo "</p>\n";
+
echo "<input type=\"checkbox\" name=\"paginate\"", (isset($_REQUEST['paginate']) ? ' checked="checked"' : ''), " /> {$lang['strpaginate']}\n";
echo "<br />\n";
echo "<p><input type=\"submit\" value=\"{$lang['strgo']}\" />\n";
* how many SQL statements have been strung together with semi-colons
* @param $query The SQL query string to execute
*
- * $Id: sql.php,v 1.20 2004/05/09 08:35:55 chriskl Exp $
+ * $Id: sql.php,v 1.21 2004/05/26 23:40:20 soranzo Exp $
*/
// Include application functions
$_REQUEST['query'] = $_POST['query'];
}
- // Check to see if pagination has been specified. In that case, send to display
+ // Check to see if pagination has been specified. In that case, send to display
// script for pagination
- if (isset($_POST['paginate'])) {
+ if (isset($_POST['paginate']) && !isset($_POST['explain']) && !isset($_POST['explain_analyze'])) {
include('./display.php');
exit;
}
// Execute the query. If it's a script upload, special handling is necessary
if (isset($_FILES['script']) && $_FILES['script']['size'] > 0)
- $rs = $data->executeScript('script');
+ $rs = $data->executeScript('script');
else
$rs = $data->conn->Execute($_POST['query']);