Skip to content
Permalink
Browse files

Retrieve parameters from $_POST in chk_rel

Signed-off-by: Maurício Meneghini Fauth <mauriciofauth@gmail.com>
  • Loading branch information...
mauriciofauth committed Aug 29, 2018
1 parent e7e7d56 commit 593b2571cd8ba5110cd39fee896ea172ca2c81d5
Showing with 7 additions and 7 deletions.
  1. +3 −3 chk_rel.php
  2. +1 −1 db_operations.php
  3. +1 −1 index.php
  4. +2 −2 libraries/classes/Relation.php
@@ -13,20 +13,20 @@
$relation = new Relation();
// If request for creating the pmadb
if (isset($_REQUEST['create_pmadb'])) {
if (isset($_POST['create_pmadb'])) {
if ($relation->createPmaDatabase()) {
$relation->fixPmaTables('phpmyadmin');
}
}
// If request for creating all PMA tables.
if (isset($_REQUEST['fixall_pmadb'])) {
if (isset($_POST['fixall_pmadb'])) {
$relation->fixPmaTables($GLOBALS['db']);
}
$cfgRelation = $relation->getRelationsParam();
// If request for creating missing PMA tables.
if (isset($_REQUEST['fix_pmadb'])) {
if (isset($_POST['fix_pmadb'])) {
$relation->fixPmaTables($cfgRelation['db']);
}
@@ -298,7 +298,7 @@
'%sFind out why%s.'
)
);
$message->addParamHtml('<a href="./chk_rel.php' . $url_query . '">');
$message->addParamHtml('<a href="./chk_rel.php" data-post="' . $url_query . '">');
$message->addParamHtml('</a>');
/* Show error if user has configured something, notice elsewhere */
if (!empty($cfg['Servers'][$server]['pmadb'])) {
@@ -621,7 +621,7 @@
);
}
$msg = Message::notice($msg_text);
$msg->addParamHtml('<a href="./chk_rel.php' . $common_url_query . '">');
$msg->addParamHtml('<a href="./chk_rel.php" data-post="' . $common_url_query . '">');
$msg->addParamHtml('</a>');
/* Show error if user has configured something, notice elsewhere */
if (!empty($cfg['Servers'][$server]['pmadb'])) {
@@ -1994,7 +1994,7 @@ public function getHtmlFixPmaTables($allTables, $createDb = false)
{
$retval = '';
$url_query = Url::getCommon(array('db' => $GLOBALS['db']));
$url_query = Url::getCommon(array('db' => $GLOBALS['db']), '');
if ($allTables) {
if ($createDb) {
$url_query .= '&amp;goto=db_operations.php&amp;create_pmadb=1';
@@ -2019,7 +2019,7 @@ public function getHtmlFixPmaTables($allTables, $createDb = false)
__('%sCreate%s missing phpMyAdmin configuration storage tables.')
);
}
$message->addParamHtml('<a href="./chk_rel.php' . $url_query . '">');
$message->addParamHtml('<a href="./chk_rel.php" data-post="' . $url_query . '">');
$message->addParamHtml('</a>');
$retval .= $message->getDisplay();

0 comments on commit 593b257

Please sign in to comment.
You can’t perform that action at this time.