$parsed_sql, "analyzed_sql" => $analyzed_sql, "reload" => $reload, "drop_database" => $drop_database, "is_explain" => $is_explain, "is_delete" => $is_delete, "is_affected" => $is_affected, "is_replace" => $is_replace, "is_insert" => $is_insert, "is_maint" => $is_maint, "is_show" => $is_show, "is_analyse" => $is_analyse, "is_export" => $is_export, "is_group" => $is_group, "is_func" => $is_func, "is_count" => $is_count, "is_select" => $is_select, "is_procedure" => $is_procedure ); // If the query is a Select, extract the db and table names and modify // $db and $table, to have correct page headers, links and left frame. // db and table name may be enclosed with backquotes, db is optionnal, // query may contain aliases. /** * @todo if there are more than one table name in the Select: * - do not extract the first table name * - do not show a table name in the page header * - do not display the sub-pages links) */ if ($is_select) { $prev_db = $db; if (isset($analyzed_sql[0]['table_ref'][0]['table_true_name'])) { $table = $analyzed_sql[0]['table_ref'][0]['table_true_name']; } if (isset($analyzed_sql[0]['table_ref'][0]['db']) && strlen($analyzed_sql[0]['table_ref'][0]['db']) ) { $db = $analyzed_sql[0]['table_ref'][0]['db']; } else { $db = $prev_db; } // Don't change reload, if we already decided to reload in import if (empty($reload) && empty($GLOBALS['is_ajax_request'])) { $reload = ($db == $prev_db) ? 0 : 1; } } ?>