sortedLanguages(); /** @var ConfigFile $cf */ $cf = $GLOBALS['ConfigFile']; $separator = PMA_URL_getArgSeparator('html'); // message handling PMA_messagesBegin(); // // Check phpMyAdmin version // if (isset($_GET['version_check'])) { PMA_versionCheck(); } // // Perform various security, compatibility and consistency checks // $configChecker = new ServerConfigChecks($GLOBALS['ConfigFile']); $configChecker->performConfigChecks(); // // Check whether we can read/write configuration // $config_readable = false; $config_writable = false; $config_exists = false; PMA_checkConfigRw($config_readable, $config_writable, $config_exists); if (!$config_writable || !$config_readable) { PMA_messagesSet( 'error', 'config_rw', __('Cannot load or save configuration'), PMA_sanitize( __( 'Please create web server writable folder [em]config[/em] in ' . 'phpMyAdmin top level directory as described in ' . '[doc@setup_script]documentation[/doc]. Otherwise you will be ' . 'only able to download or display it.' ) ) ); } // // Check https connection // $is_https = !empty($_SERVER['HTTPS']) && mb_strtolower($_SERVER['HTTPS']) == 'on'; if (!$is_https) { $text = __( 'You are not using a secure connection; all data (including potentially ' . 'sensitive information, like passwords) is transferred unencrypted!' ); $text .= ' '; // Temporary workaround to use tranlated message in older releases $text .= str_replace( array('[a@%s]', '[/a]'), array('', ''), __( 'If your server is also configured to accept HTTPS requests ' . 'follow [a@%s]this link[/a] to use a secure connection.' ) ); $text .= ''; PMA_messagesSet('notice', 'no_https', __('Insecure connection'), $text); } echo '
'; // Check for done action info and set notice message if present switch ($action_done) { case 'config_saved': /* Use uniqid to display this message every time configuration is saved */ PMA_messagesSet( 'notice', uniqid('config_saved'), __('Configuration saved.'), PMA_sanitize( __( 'Configuration saved to file config/config.inc.php in phpMyAdmin ' . 'top level directory, copy it to top level one and delete ' . 'directory config to use it.' ) ) ); break; case 'config_not_saved': /* Use uniqid to display this message every time configuration is saved */ PMA_messagesSet( 'notice', uniqid('config_not_saved'), __('Configuration not saved!'), PMA_sanitize( __( 'Please create web server writable folder [em]config[/em] in ' . 'phpMyAdmin top level directory as described in ' . '[doc@setup_script]documentation[/doc]. Otherwise you will be ' . 'only able to download or display it.' ) ) ); break; default: break; } echo '