public function performConfigChecks()
{
$blowfishSecret = $this->cfg->get('blowfish_secret');
$blowfishSecretSet = false;
$cookieAuthUsed = false;
list($sAllowArbitraryServerWarn, $sBlowfishSecretMsg, $sBZipDumpWarn, $sDirectoryNotice, $sGZipDumpWarn, $sLoginCookieValidityWarn, $sLoginCookieValidityWarn2, $sLoginCookieValidityWarn3, $sSecurityInfoMsg, $sSrvAuthCfgMsg, $sZipDumpExportWarn, $sZipDumpImportWarn) = self::defineMessages();
list($cookieAuthUsed, $blowfishSecret, $blowfishSecretSet) = $this->performConfigChecksServers($cookieAuthUsed, $blowfishSecret, $sSrvAuthCfgMsg, $sSecurityInfoMsg, $blowfishSecretSet);
$this->performConfigChecksCookieAuthUsed($cookieAuthUsed, $blowfishSecretSet, $sBlowfishSecretMsg, $blowfishSecret);
//
// $cfg['AllowArbitraryServer']
// should be disabled
//
if ($this->cfg->getValue('AllowArbitraryServer')) {
PMA_messagesSet('notice', 'AllowArbitraryServer', PMA_lang(PMA_langName('AllowArbitraryServer')), PMA_lang($sAllowArbitraryServerWarn));
}
$this->performConfigChecksLoginCookie($sLoginCookieValidityWarn, $sLoginCookieValidityWarn2, $sLoginCookieValidityWarn3);
//
// $cfg['SaveDir']
// should not be world-accessible
//
if ($this->cfg->getValue('SaveDir') != '') {
PMA_messagesSet('notice', 'SaveDir', PMA_lang(PMA_langName('SaveDir')), PMA_lang($sDirectoryNotice));
}
//
// $cfg['TempDir']
// should not be world-accessible
//
if ($this->cfg->getValue('TempDir') != '') {
PMA_messagesSet('notice', 'TempDir', PMA_lang(PMA_langName('TempDir')), PMA_lang($sDirectoryNotice));
}
$this->performConfigChecksZips($sGZipDumpWarn, $sBZipDumpWarn, $sZipDumpImportWarn, $sZipDumpExportWarn);
}