-
';
diff --git a/libraries/auth/swekey/swekey.auth.lib.php b/libraries/auth/swekey/swekey.auth.lib.php
index bb4e2c5de..19b916330 100644
--- a/libraries/auth/swekey/swekey.auth.lib.php
+++ b/libraries/auth/swekey/swekey.auth.lib.php
@@ -231,7 +231,7 @@ function Swekey_login($input_name, $input_go)
?>
function open_swekey_site()
{
- window.open("http://phpmyadmin.net/auth_key");
+ window.open("./url.php?url=http://phpmyadmin.net/auth_key");
}
var input_username = document.getElementById("");
diff --git a/libraries/blobstreaming.lib.php b/libraries/blobstreaming.lib.php
index 594e5f1d7..070c8f33c 100644
--- a/libraries/blobstreaming.lib.php
+++ b/libraries/blobstreaming.lib.php
@@ -31,7 +31,7 @@ function initPBMSDatabase()
$query = "select * from $target.pbms_metadata_header"; // If it exists this table will not contain much
}
}
-
+
$result = PMA_DBI_query($query );
if (! $result) {
return FALSE;
@@ -106,7 +106,7 @@ function checkBLOBStreamingPlugins()
}
unset($existing_plugins, $one_existing_plugin);
}
-
+
// set variable indicating BS plugin existence
$PMA_Config->set('BLOBSTREAMING_PLUGINS_EXIST', $has_blobstreaming);
@@ -296,7 +296,7 @@ function PMA_BS_IsPBMSReference($bs_reference, $db_name)
if (PMA_do_connect($db_name, FALSE) == FALSE) {
return FALSE;
}
-
+
$ok = pbms_is_blob_reference($bs_reference);
return $ok ;
}
@@ -391,8 +391,8 @@ function PMA_BS_IsTablePBMSEnabled($db_name, $tbl_name, $tbl_type)
}
// This information should be cached rather than selecting it each time.
- //$query = "SELECT count(*) FROM information_schema.TABLES T, pbms.pbms_enabled E where T.table_schema = ". PMA_backquote($db_name) . " and T.table_name = ". PMA_backquote($tbl_name) . " and T.engine = E.name";
- $query = "SELECT count(*) FROM pbms.pbms_enabled E where E.name = '" . PMA_sqlAddslashes($tbl_type) . "'";
+ //$query = "SELECT count(*) FROM information_schema.TABLES T, pbms.pbms_enabled E where T.table_schema = ". PMA_backquote($db_name) . " and T.table_name = ". PMA_backquote($tbl_name) . " and T.engine = E.name";
+ $query = "SELECT count(*) FROM pbms.pbms_enabled E where E.name = '" . PMA_sqlAddslashes($tbl_type) . "'";
$result = PMA_DBI_query($query);
$data = PMA_DBI_fetch_row($result);
@@ -497,7 +497,7 @@ function PMA_BS_getURL($reference)
return FALSE;
}
- $bs_url = 'http://' . $bs_server . '/' . rtrim($reference);
+ $bs_url = './url.php?url=http://' . $bs_server . '/' . rtrim($reference);
return $bs_url;
}
diff --git a/libraries/common.inc.php b/libraries/common.inc.php
index d65c254cd..da66fda1f 100644
--- a/libraries/common.inc.php
+++ b/libraries/common.inc.php
@@ -476,7 +476,9 @@ if (! PMA_isValid($_REQUEST['token']) || $_SESSION[' PMA_token '] != $_REQUEST['
/* for playing blobstreamable media */
'media_type', 'custom_type', 'bs_reference',
/* for changing BLOB repository file MIME type */
- 'bs_db', 'bs_table', 'bs_ref', 'bs_new_mime_type'
+ 'bs_db', 'bs_table', 'bs_ref', 'bs_new_mime_type',
+ /* URL redirector */
+ 'url'
);
/**
* Require cleanup functions
diff --git a/libraries/common.lib.php b/libraries/common.lib.php
index 711627f42..cf9b7a586 100644
--- a/libraries/common.lib.php
+++ b/libraries/common.lib.php
@@ -419,13 +419,13 @@ function PMA_showMySQLDocu($chapter, $link, $big_icon = false, $anchor = '', $ju
}
if ($just_open) {
- return '';
+ return '';
} elseif ($big_icon) {
- return '
';
+ return '

';
} elseif ($GLOBALS['cfg']['ReplaceHelpImg']) {
- return '

';
+ return '

';
} else {
- return '[
' . __('Documentation') . ']';
+ return '[
' . __('Documentation') . ']';
}
} // end of the 'PMA_showMySQLDocu()' function
@@ -2425,7 +2425,7 @@ function PMA_getDbLink($database = null)
function PMA_externalBug($functionality, $component, $minimum_version, $bugref)
{
if ($component == 'mysql' && PMA_MYSQL_INT_VERSION < $minimum_version) {
- echo PMA_showHint(sprintf(__('The %s functionality is affected by a known bug, see %s'), $functionality, 'http://bugs.mysql.com/' . $bugref));
+ echo PMA_showHint(sprintf(__('The %s functionality is affected by a known bug, see %s'), $functionality, './url.php?url=http://bugs.mysql.com/' . $bugref));
}
}
diff --git a/libraries/config/FormDisplay.class.php b/libraries/config/FormDisplay.class.php
index e3b10dc1c..b07ac3a1e 100644
--- a/libraries/config/FormDisplay.class.php
+++ b/libraries/config/FormDisplay.class.php
@@ -681,7 +681,7 @@ class FormDisplay
if ($test == 'Export') {
$opt_name = substr($opt_name, 7);
}
- return 'http://wiki.phpmyadmin.net/pma/Config#' . $opt_name;
+ return './url.php?url=http://wiki.phpmyadmin.net/pma/Config#' . $opt_name;
}
/**
@@ -774,4 +774,4 @@ class FormDisplay
}
}
}
-?>
\ No newline at end of file
+?>
diff --git a/libraries/config/config_functions.lib.php b/libraries/config/config_functions.lib.php
index 6f9aabb34..0d26cb562 100644
--- a/libraries/config/config_functions.lib.php
+++ b/libraries/config/config_functions.lib.php
@@ -91,10 +91,14 @@ function PMA_lang_link_replace($link, $text)
$separator = PMA_get_arg_separator('html');
}
- if (!preg_match('#^http://#', $link)) {
+ if (!preg_match('#^https?://#', $link)) {
$link = str_replace('&', $separator, $link);
+ } elseif (defined('PMA_SETUP')) {
+ $link = '../url.php?url=' . $link;
+ } else {
+ $link = './url.php?url=' . $link;
}
return '
' . $text . '';
}
-?>
\ No newline at end of file
+?>
diff --git a/libraries/display_export.lib.php b/libraries/display_export.lib.php
index 202cd4d72..fc2065f3b 100644
--- a/libraries/display_export.lib.php
+++ b/libraries/display_export.lib.php
@@ -235,7 +235,7 @@ if(isset($_GET['sql_query'])) {
}
$message = new PMA_Message(__('This value is interpreted using %1$sstrftime%2$s, so you can use time formatting strings. Additionally the following transformations will happen: %3$s. Other text will be kept as is. See the %4$sFAQ%5$s for details.'));
- $message->addParam('
', false);
$message->addParam('', false);
$message->addParam($trans);
diff --git a/libraries/engines/pbms.lib.php b/libraries/engines/pbms.lib.php
index 58e31592b..4065bf309 100644
--- a/libraries/engines/pbms.lib.php
+++ b/libraries/engines/pbms.lib.php
@@ -91,15 +91,15 @@ class PMA_StorageEngine_pbms extends PMA_StorageEngine
function getPageDocumentation()
{
$output = '
Documentation and further information about PBMS can be found on ' . "\n"
- . 'The PrimeBase Media Streaming home page.
' . "\n"
+ . 'The PrimeBase Media Streaming home page.
' . "\n"
. '