diff --git a/db_central_columns.php b/db_central_columns.php index 29b71832e8..493b8937ef 100644 --- a/db_central_columns.php +++ b/db_central_columns.php @@ -6,6 +6,8 @@ * * @package PhpMyAdmin */ +use PMA\libraries\URL; + /** * Gets some core libraries */ @@ -114,7 +116,7 @@ $response->addHTML($table_navigation_html); $columnAdd = PMA_getHTMLforAddCentralColumn($total_rows, $pos, $db); $response->addHTML($columnAdd); $deleteRowForm = '
' - . PMA_URL_getHiddenInputs( + . URL::getHiddenInputs( $db ) . '' diff --git a/db_datadict.php b/db_datadict.php index d94bebf015..9e74204771 100644 --- a/db_datadict.php +++ b/db_datadict.php @@ -5,6 +5,7 @@ * * @package PhpMyAdmin */ +use PMA\libraries\URL; /** * Gets the variables sent or posted to this script, then displays headers @@ -45,7 +46,7 @@ PMA\libraries\Util::checkParameters(array('db')); /** * Defines the url to return to in case of error in a sql statement */ -$err_url = 'db_sql.php' . PMA_URL_getCommon(array('db' => $db)); +$err_url = 'db_sql.php' . URL::getCommon(array('db' => $db)); if ($cfgRelation['commwork']) { $comment = PMA_getDbComment($db); diff --git a/db_qbe.php b/db_qbe.php index c2baaf62a0..de17ec2ce2 100644 --- a/db_qbe.php +++ b/db_qbe.php @@ -6,6 +6,7 @@ * @package PhpMyAdmin */ use PMA\libraries\SavedSearches; +use PMA\libraries\URL; /** * requirements @@ -131,7 +132,7 @@ unset($message_to_display); // create new qbe search instance $db_qbe = new PMA\libraries\DbQbe($GLOBALS['db'], $savedSearchList, $savedSearch); -$url = 'db_designer.php' . PMA_URL_getCommon( +$url = 'db_designer.php' . URL::getCommon( array_merge( $url_params, array('query' => 1) diff --git a/export.php b/export.php index c88f6c89f6..912b2f9b4d 100644 --- a/export.php +++ b/export.php @@ -6,6 +6,8 @@ * @package PhpMyAdmin */ use PMA\libraries\plugins\ExportPlugin; +use PMA\libraries\URL; +use PMA\libraries\Sanitize; /** * Get the variables sent or posted to this script and a core script @@ -254,11 +256,11 @@ if (!defined('TESTSUITE')) { // Generate error url and check for needed variables if ($export_type == 'server') { - $err_url = 'server_export.php' . PMA_URL_getCommon(); + $err_url = 'server_export.php' . URL::getCommon(); } elseif ($export_type == 'database' && mb_strlen($db) ) { - $err_url = 'db_export.php' . PMA_URL_getCommon(array('db' => $db)); + $err_url = 'db_export.php' . URL::getCommon(array('db' => $db)); // Check if we have something to export if (isset($table_select)) { $tables = $table_select; @@ -268,7 +270,7 @@ if (!defined('TESTSUITE')) { } elseif ($export_type == 'table' && mb_strlen($db) && mb_strlen($table) ) { - $err_url = 'tbl_export.php' . PMA_URL_getCommon( + $err_url = 'tbl_export.php' . URL::getCommon( array( 'db' => $db, 'table' => $table ) @@ -371,7 +373,7 @@ if (!defined('TESTSUITE')) { // (avoid rewriting data containing HTML with anchors and forms; // this was reported to happen under Plesk) @ini_set('url_rewriter.tags', ''); - $filename = PMA_sanitizeFilename($filename); + $filename = Sanitize::sanitizeFilename($filename); PMA_downloadHeader($filename, $mime_type); } else { diff --git a/gis_data_editor.php b/gis_data_editor.php index 7268724128..8f710703d8 100644 --- a/gis_data_editor.php +++ b/gis_data_editor.php @@ -7,6 +7,7 @@ */ use PMA\libraries\gis\GISFactory; use PMA\libraries\gis\GISVisualization; +use PMA\libraries\URL; /** * Escapes special characters if the variable is set. @@ -127,7 +128,7 @@ if (isset($_REQUEST['input_name'])) { echo ''; } -echo PMA_URL_getHiddenInputs(); +echo URL::getHiddenInputs(); echo ''; echo '
'; echo ' ' , "\n" - . PMA_URL_getHiddenInputs(null, null, 4, 'collation_connection') + . URL::getHiddenInputs(null, null, 4, 'collation_connection') . '