mirror of
https://github.com/cytopia/devilbox.git
synced 2024-12-25 23:41:04 +00:00
37 lines
856 B
PHP
37 lines
856 B
PHP
<?php
|
|
/* vim: set expandtab sw=4 ts=4 sts=4: */
|
|
/**
|
|
* Displays status of phpMyAdmin configuration storage
|
|
*
|
|
* @package PhpMyAdmin
|
|
*/
|
|
use PhpMyAdmin\Relation;
|
|
use PhpMyAdmin\Response;
|
|
|
|
require_once 'libraries/common.inc.php';
|
|
|
|
$relation = new Relation();
|
|
|
|
// If request for creating the pmadb
|
|
if (isset($_POST['create_pmadb'])) {
|
|
if ($relation->createPmaDatabase()) {
|
|
$relation->fixPmaTables('phpmyadmin');
|
|
}
|
|
}
|
|
|
|
// If request for creating all PMA tables.
|
|
if (isset($_POST['fixall_pmadb'])) {
|
|
$relation->fixPmaTables($GLOBALS['db']);
|
|
}
|
|
|
|
$cfgRelation = $relation->getRelationsParam();
|
|
// If request for creating missing PMA tables.
|
|
if (isset($_POST['fix_pmadb'])) {
|
|
$relation->fixPmaTables($cfgRelation['db']);
|
|
}
|
|
|
|
$response = Response::getInstance();
|
|
$response->addHTML(
|
|
$relation->getRelationsParamDiagnostic($cfgRelation)
|
|
);
|