diff --git a/tbl_qbe.php3 b/tbl_qbe.php3 deleted file mode 100755 index 8ed35df46..000000000 --- a/tbl_qbe.php3 +++ /dev/null @@ -1,1064 +0,0 @@ - execute it, else display the headers - */ -if (isset($submit_sql) && eregi('^SELECT', $encoded_sql_query)) { - $goto = 'db_details.php3'; - $zero_rows = htmlspecialchars($strSuccess); - $sql_query = urldecode($encoded_sql_query); - if (get_magic_quotes_gpc()) { - $sql_query = addslashes($sql_query); - } - include('./sql.php3'); - exit(); -} else { - require('./db_details_common.php3'); - $url_query .= '&goto=tbl_qbe.php3'; - require('./db_details_db_info.php3'); -} - -if (isset($submit_sql) && !eregi('^SELECT', $encoded_sql_query)) { - echo '
' . $strHaveToShow . '
'; -} - - -/** - * Initialize some variables - */ -if (empty($Columns)) { - $Columns = 3; // Initial number of columns -} -if (!isset($Add_Col)) { - $Add_Col = ''; -} -if (!isset($Add_Row)) { - $Add_Row = ''; -} -if (!isset($Rows)) { - $Rows = ''; -} -if (!isset($InsCol)) { - $InsCol = ''; -} -if (!isset($DelCol)) { - $DelCol = ''; -} -if (!isset($prev_Criteria)) { - $prev_Criteria = ''; -} -// workaround for a PHP3 problem -if (!isset($Criteria)) { - //$Criteria = ''; - $Criteria = array(); - for ($i = 0; $i < $Columns; $i++) { - $Criteria[$i] = ''; - } -} -if (!isset($InsRow)) { -// $InsRow = ''; - $InsRow = array(); - for ($i = 0; $i < $Columns; $i++) { - $InsRow[$i] = ''; - } -} -if (!isset($DelRow)) { -// $DelRow = ''; - $DelRow = array(); - for ($i = 0; $i < $Columns; $i++) { - $DelRow[$i] = ''; - } -} -if (!isset($AndOrRow)) { -// $AndOrRow = ''; - $AndOrRow = array(); - for ($i = 0; $i < $Columns; $i++) { - $AndOrRow[$i] = ''; - } -} -if (!isset($AndOrCol)) { -// $AndOrCol = ''; - $AndOrCol = array(); - for ($i = 0; $i < $Columns; $i++) { - $AndOrCol[$i] = ''; - } -} -// minimum width -$wid = 12; -$col = $Columns + $Add_Col; -if ($col < 0) { - $col = 0; -} -$row = $Rows + $Add_Row; -if ($row < 0) { - $row = 0; -} - - -/** - * Prepares the form - */ -$tbl_result = PMA_mysql_list_tables($db); -$tbl_result_cnt = mysql_num_rows($tbl_result); -$i = 0; -$k = 0; - -// The tables list sent by a previously submitted form -if (!empty($TableList)) { - for ($x = 0; $x < count($TableList); $x++) { - $tbl_names[urldecode($TableList[$x])] = ' selected="selected"'; - } -} // end if - -// The tables list gets from MySQL -while ($i < $tbl_result_cnt) { - $tbl = PMA_mysql_tablename($tbl_result, $i); - $fld_results = PMA_mysql_list_fields($db, $tbl); - $fld_results_cnt = mysql_num_fields($fld_results); - $j = 0; - - if (empty($tbl_names[$tbl]) && !empty($TableList)) { - $tbl_names[$tbl] = ''; - } else { - $tbl_names[$tbl] = ' selected="selected"'; - } // end if - - // The fields list per selected tables - if ($tbl_names[$tbl] == ' selected="selected"') { - $fld[$k++] = PMA_backquote($tbl) . '.*'; - while ($j < $fld_results_cnt) { - $fld[$k] = PMA_mysql_field_name($fld_results, $j); - $fld[$k] = PMA_backquote($tbl) . '.' . PMA_backquote($fld[$k]); - - // increase the width if necessary - if (strlen($fld[$k]) > $wid) { - $wid = strlen($fld[$k]); - } //end if - - $k++; - $j++; - } // end while - } // end if - mysql_free_result($fld_results); - - $i++; -} // end if -mysql_free_result($tbl_result); - -// largest width found -$realwidth = $wid . 'ex'; - - -/** - * Displays the form - */ -?> - - - - - -