Esempio n. 1
0
            // Prints the variables table
            printVariablesTable();
            exit;
        default:
            break;
    }
}
$server_db_isLocal = strtolower($cfg['Server']['host']) == 'localhost' || $cfg['Server']['host'] == '127.0.0.1' || $cfg['Server']['host'] == '::1';
PMA_AddJSVar('pma_token', $_SESSION[' PMA_token ']);
PMA_AddJSVar('url_query', str_replace('&', '&', PMA_generate_common_url($db)));
PMA_AddJSVar('server_time_diff', 'new Date().getTime() - ' . microtime(true) * 1000, false);
PMA_AddJSVar('server_os', PHP_OS);
PMA_AddJSVar('is_superuser', PMA_isSuperuser());
PMA_AddJSVar('server_db_isLocal', $server_db_isLocal);
PMA_AddJSVar('profiling_docu', PMA_showMySQLDocu('general-thread-states', 'general-thread-states'));
PMA_AddJSVar('explain_docu', PMA_showMySQLDocu('explain-output', 'explain-output'));
/**
 * start output
 */
/**
 * Does the common work
 */
require './libraries/server_common.inc.php';
/**
 * Displays the links
 */
require './libraries/server_links.inc.php';
?>
<div id="serverstatus">
    <h2><?php 
/**
Esempio n. 2
0
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 *
 * @package PhpMyAdmin
 */

require_once 'libraries/common.inc.php';

$GLOBALS['js_include'][] = 'server_variables.js';

PMA_AddJSVar('pma_token', $_SESSION[' PMA_token ']);
PMA_AddJSVar('url_query', str_replace('&amp;', '&', PMA_generate_common_url($db)));
PMA_AddJSVar('is_superuser', PMA_isSuperuser() ? true : false);


/**
 * Does the common work
 */
require 'libraries/server_common.inc.php';

/**
 * Required to display documentation links
 */
require 'libraries/server_variables_doc.php';

/**
 * Ajax request
 */

if (isset($_REQUEST['ajax_request']) && $_REQUEST['ajax_request'] == true) {
Esempio n. 3
0
/**
 * Gets some core libraries and displays a top message if required
 */
require_once 'libraries/common.inc.php';

/**
 * display Git revision if requested
 */
require_once 'libraries/display_git_revision.lib.php';

if ($GLOBALS['PMA_Config']->isGitRevision()) {
    if (isset($_REQUEST['git_revision']) && $GLOBALS['is_ajax_request'] == true) {
        PMA_printGitRevision();
    }
    PMA_AddJSVar('is_git_revision', true);
}

// Handles some variables that may have been sent by the calling script
$GLOBALS['db'] = '';
$GLOBALS['table'] = '';
$show_query = '1';
require_once 'libraries/header.inc.php';

// Any message to display?
if (! empty($message)) {
    PMA_showMessage($message);
    unset($message);
}

$common_url_query =  PMA_generate_common_url('', '');