Merge branch 'QA_4_6'
This commit is contained in:
commit
055d2be691
@ -541,7 +541,7 @@ if (! empty($_SESSION['encryption_key'])
|
||||
* Check for existence of config directory which should not exist in
|
||||
* production environment.
|
||||
*/
|
||||
if (file_exists('config')) {
|
||||
if (@file_exists('config')) {
|
||||
trigger_error(
|
||||
__(
|
||||
'Directory [code]config[/code], which is used by the setup script, ' .
|
||||
@ -653,7 +653,7 @@ if ($cfg['SuhosinDisableWarning'] == false
|
||||
*
|
||||
* The data file is created while creating release by ./scripts/remove-incomplete-mo
|
||||
*/
|
||||
if (file_exists('libraries/language_stats.inc.php')) {
|
||||
if (@file_exists('libraries/language_stats.inc.php')) {
|
||||
include 'libraries/language_stats.inc.php';
|
||||
/*
|
||||
* This message is intentionally not translated, because we're
|
||||
|
||||
@ -763,7 +763,7 @@ class Config
|
||||
public function loadDefaults()
|
||||
{
|
||||
$cfg = array();
|
||||
if (! file_exists($this->default_source)) {
|
||||
if (! @file_exists($this->default_source)) {
|
||||
$this->error_config_default_file = true;
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -576,7 +576,7 @@ class LanguageManager
|
||||
. '/LC_MESSAGES/phpmyadmin.mo';
|
||||
if ($file != "."
|
||||
&& $file != ".."
|
||||
&& file_exists($path)
|
||||
&& @file_exists($path)
|
||||
) {
|
||||
$result[] = $file;
|
||||
}
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
*/
|
||||
function PMA_getDirContent($dir, $expression = '')
|
||||
{
|
||||
if (!file_exists($dir) || !($handle = @opendir($dir))) {
|
||||
if (!@file_exists($dir) || !($handle = @opendir($dir))) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -101,7 +101,7 @@ class AuthenticationCookie extends AuthenticationPlugin
|
||||
$header->disableMenuAndConsole();
|
||||
$header->disableWarnings();
|
||||
|
||||
if (file_exists(CUSTOM_HEADER_FILE)) {
|
||||
if (@file_exists(CUSTOM_HEADER_FILE)) {
|
||||
include CUSTOM_HEADER_FILE;
|
||||
}
|
||||
echo '
|
||||
@ -249,7 +249,7 @@ class AuthenticationCookie extends AuthenticationPlugin
|
||||
echo '</div>';
|
||||
}
|
||||
echo '</div>';
|
||||
if (file_exists(CUSTOM_FOOTER_FILE)) {
|
||||
if (@file_exists(CUSTOM_FOOTER_FILE)) {
|
||||
include CUSTOM_FOOTER_FILE;
|
||||
}
|
||||
if (! defined('TESTSUITE')) {
|
||||
|
||||
@ -101,7 +101,7 @@ class AuthenticationHttp extends AuthenticationPlugin
|
||||
);
|
||||
$response->addHTML('</h3>');
|
||||
|
||||
if (file_exists(CUSTOM_FOOTER_FILE)) {
|
||||
if (@file_exists(CUSTOM_FOOTER_FILE)) {
|
||||
include CUSTOM_FOOTER_FILE;
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,7 @@ function Swekey_Auth_check()
|
||||
$_SESSION['SWEKEY'] = array();
|
||||
}
|
||||
|
||||
$_SESSION['SWEKEY']['ENABLED'] = (! empty($confFile) && file_exists($confFile));
|
||||
$_SESSION['SWEKEY']['ENABLED'] = (! empty($confFile) && @file_exists($confFile));
|
||||
|
||||
// Load the swekey.conf file the first time
|
||||
if ($_SESSION['SWEKEY']['ENABLED']
|
||||
@ -167,7 +167,7 @@ function Swekey_Auth_error()
|
||||
// echo "<!-- exists -->\n";
|
||||
}
|
||||
|
||||
if (file_exists($caFile)) {
|
||||
if (@file_exists($caFile)) {
|
||||
Swekey_SetCAFile($caFile);
|
||||
} elseif (! empty($caFile)
|
||||
&& (substr($_SESSION['SWEKEY']['CONF_SERVER_CHECK'], 0, 8) == "https://")
|
||||
|
||||
@ -19,7 +19,7 @@ use PMA\libraries\properties\options\items\TextPropertyItem;
|
||||
/**
|
||||
* Skip the plugin if TCPDF is not available.
|
||||
*/
|
||||
if (!file_exists(TCPDF_INC)) {
|
||||
if (!@file_exists(TCPDF_INC)) {
|
||||
$GLOBALS['skip_import'] = true;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -14,7 +14,7 @@ use PMA\libraries\PDF as PDF_lib;
|
||||
/**
|
||||
* Skip the plugin if TCPDF is not available.
|
||||
*/
|
||||
if (! file_exists(TCPDF_INC)) {
|
||||
if (! @file_exists(TCPDF_INC)) {
|
||||
$GLOBALS['skip_import'] = true;
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user