$val ) { if ( ! in_array( $key, $drops ) ) { $url_querys[] = urlencode( $key ) . '=' . urlencode( $val ); } } unset( $drops ); if ( count( $url_querys ) ) { $url_query = implode( '&', $url_querys ) . '&'; } else { $url_query = ''; } unset( $url_querys ); if ( empty( $GLOBALS['db'] ) ) { $url_query .= PMA_generate_common_url(); $main_target = $GLOBALS['cfg']['DefaultTabServer']; } elseif ( empty( $GLOBALS['table'] ) ) { $url_query .= PMA_generate_common_url( $GLOBALS['db'] ); $main_target = $GLOBALS['cfg']['DefaultTabDatabase']; } else { $url_query .= PMA_generate_common_url( $GLOBALS['db'], $GLOBALS['table'] ); $main_target = $GLOBALS['cfg']['DefaultTabTable']; } if (!empty($GLOBALS['target']) && preg_match('@[a-z_]+\.php@', $GLOBALS['target']) && $GLOBALS['target'] != 'index.php') { $main_target = $GLOBALS['target']; } $main_target .= '?' . $url_query; $lang_iso_code = $GLOBALS['available_languages'][$GLOBALS['lang']][2]; // start output header('Content-Type: text/html; charset=' . $GLOBALS['charset']); ?>