' . "\n" . $spaces . '' . "\n"; if (!in_array('convcharset', $skip) && isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] && $allow_recoding) $result .= $spaces . '' . "\n"; if (!in_array('collation_connection', $skip) && isset($collation_connection)) $result .= $spaces . '' . "\n"; if (!in_array('db', $skip) && !empty($db)) $result .= $spaces . '' . "\n"; if (!in_array('table', $skip) && !empty($table)) $result .= $spaces . '' . "\n"; return $result; } /** * Generates text with URL parameters. * * @param string optional database name * @param string optional table name * @param string character to use instead of '&' for deviding * multiple URL parameters from each other * * @return string string with URL parameters * * @global string the current language * @global string the current conversion charset * @global string the current connection collation * @global string the current server * @global array the configuration array * @global boolean whether recoding is allowed or not * * @access public * * @author nijel */ function PMA_generate_common_url ($db = '', $table = '', $amp = '&') { global $lang, $convcharset, $collation_connection, $server; global $cfg, $allow_recoding; $result = 'lang=' . $lang . $amp . 'server=' . $server; if (isset($cfg['AllowAnywhereRecoding']) && $cfg['AllowAnywhereRecoding'] && $allow_recoding) $result .= $amp . 'convcharset=' . urlencode($convcharset); if (isset($collation_connection)) $result .= $amp . 'collation_connection=' . urlencode($collation_connection); if (!empty($db)) $result .= $amp . 'db='.urlencode($db); if (!empty($table)) $result .= $amp . 'table='.urlencode($table); return $result; } ?>