getDirectory() . '/memcache_ui.local.php'; if (file_exists($path)) { if (is_readable($path)) { $context->setMessage(Context::t('Loading config from @path', array('@path' => $path)), LOG_DEBUG); require_once($path); $context->setMessage($this, LOG_DEBUG); if (empty($this->account)) { $context->setMessage(Context::t('Empty account: anonymous access only.'), LOG_ERR); } elseif (empty($this->password)) { $context->setMessage(Context::t('Empty password: anonymous access only.'), LOG_ERR); } elseif (empty($this->servers)) { $context->setMessage(Context::t('Empty servers array: no server info.'), LOG_ERR); } if (empty($this->dsn)) { $context->setMessage(Context::t('No DSN in config: history features not enabled.', LOG_NOTICE)); } } else { $context->setMessage(Context::t('Local config @path exists but is not readable', array( '@path' => $path, )), LOG_ERR); } } else { $context->setMessage(Context::t('Local config @path does not exist.', array( '@path' => $path, )), LOG_ERR); } } } }