* @license http://www.gnu.org/licenses/gpl.html GNU GPL 2.0 * @version $Id: index.inc.php 11975 2008-11-24 09:55:30Z nijel $ */ if (!defined('PHPMYADMIN')) { exit; } /** * Core libraries. */ require_once './libraries/display_select_lang.lib.php'; require_once './setup/lib/FormDisplay.class.php'; require_once './setup/lib/index.lib.php'; // prepare unfiltered language list $all_languages = PMA_langList(); uasort($all_languages, 'PMA_language_cmp'); $cf = ConfigFile::getInstance(); $separator = PMA_get_arg_separator('html'); // message handling messages_begin(); // // Check phpMyAdmin version // if (isset($_GET['version_check'])) { PMA_version_check(); } // // Perform various security, compatibility and consistency checks // perform_config_checks(); // // Check whether we can read/write configuration // $config_readable = false; $config_writable = false; $config_exists = false; check_config_rw($config_readable, $config_writable, $config_exists); if (!$config_writable || !$config_readable) { messages_set('error', 'config_rw', 'CannotLoadConfig', PMA_lang('CannotLoadConfigMsg')); } // // Check https connection // $is_https = !empty($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on'; if (!$is_https) { $text = $GLOBALS['strSetupInsecureConnectionMsg1']; if (!empty($_SERVER['REQUEST_URI']) && !empty($_SERVER['HTTP_HOST'])) { $text .= ' ' . PMA_lang('InsecureConnectionMsg2', 'https://' . htmlspecialchars($_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'])); } messages_set('warning', 'no_https', 'InsecureConnection', $text); } ?>
'servers', 'mode' => 'add' )); ?>| # | Authentication type | DSN | ||
|---|---|---|---|---|
| getServerName($id) ?> | getValue("Servers/$id/auth_type")) ?> | getServerDSN($id)) ?> | "> | "> | |