Host 'web-p.upol.cz' is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'
File: /srv/www/vhosts/flora/public_html/pexeso/libs/dibi/drivers/mysql.php Line: 110
Line 103: $this->connection = @mysql_connect($host, $config['username'], $config['password'], TRUE, $config['flags']); // intentionally @
Line 104: } else {
Line 105: $this->connection = @mysql_pconnect($host, $config['username'], $config['password'], $config['flags']); // intentionally @
Line 106: }
Line 107: }
Line 108:
Line 109: if (!is_resource($this->connection)) {
Line 110: throw new DibiDriverException(mysql_error(), mysql_errno());
Line 111: }
Line 112:
Line 113: if (isset($config['charset'])) {
Line 114: $ok = FALSE;
Line 115: if (function_exists('mysql_set_charset')) {
Line 116: // affects the character set used by mysql_real_escape_string() (was added in MySQL 5.0.7 and PHP 5.2.3)
Line 117: $ok = @mysql_set_charset($config['charset'], $this->connection); // intentionally @
libs/DibiConnection.php (163) source ► DibiMySqlDriver-> connect (arguments ►)
$config | array(9) ► |
---|
Line 156: * Connects to a database.
Line 157: * @return void
Line 158: */
Line 159: final public function connect()
Line 160: {
Line 161: $event = $this->onEvent ? new DibiEvent($this, DibiEvent::CONNECT) : NULL;
Line 162: try {
Line 163: $this->driver->connect($this->config);
Line 164: $this->connected = TRUE;
Line 165: $event && $this->onEvent($event->done());
Line 166:
Line 167: } catch (DibiException $e) {
Line 168: $event && $this->onEvent($event->done($e));
Line 169: throw $e;
Line 170: }
libs/DibiConnection.php (137) source ► DibiConnection-> connect ()
Line 130: if (!empty($config['substitutes'])) {
Line 131: foreach ($config['substitutes'] as $key => $value) {
Line 132: $this->substitutes->$key = $value;
Line 133: }
Line 134: }
Line 135:
Line 136: if (empty($config['lazy'])) {
Line 137: $this->connect();
Line 138: }
Line 139: }
Line 140:
Line 141:
Line 142:
Line 143: /**
Line 144: * Automatically frees the resources allocated for this result set.
dibi/dibi.php (139) source ► DibiConnection-> __construct (arguments ►)
$config | Nette\Config\Config(6) ▼ |
---|---|
$name | 0 |
Line 132: * @param mixed connection parameters
Line 133: * @param string connection name
Line 134: * @return DibiConnection
Line 135: * @throws DibiException
Line 136: */
Line 137: public static function connect($config = array(), $name = 0)
Line 138: {
Line 139: return self::$connection = self::$registry[$name] = new DibiConnection($config, $name);
Line 140: }
Line 141:
Line 142:
Line 143:
Line 144: /**
Line 145: * Disconnects from database (doesn't destroy DibiConnection object).
Line 146: * @return void
app/bootstrap.php (31) source ► dibi:: connect (arguments ►)
$config | Nette\Config\Config(6) ▼ |
---|
Line 24:
Line 25: // Step 2: Configure environment
Line 26: // 2a) enable Nette\Debug for better exception and error visualisation
Line 27: Debug::enable(Debug::DETECT, APP_DIR . '/../log/error.log');
Line 28:
Line 29: // 2b) load configuration from config.ini file
Line 30: Environment::loadConfig();
Line 31: dibi::connect(Environment::getConfig('database'));
Line 32:
Line 33:
Line 34: // Step 3: Configure application
Line 35: // 3a) get and setup a front controller
Line 36: $application = Environment::getApplication();
Line 37: $application->errorPresenter = 'Error';
Line 38: //$application->catchExceptions = TRUE;
www/index.php (13) source ► require (arguments ►)
#0 | "/srv/www/vhosts/flora/public_html/pexeso/app/bootstrap.php" (58) |
---|
Line 6: // absolute filesystem path to the application root
Line 7: define('APP_DIR', WWW_DIR . '/../app');
Line 8:
Line 9: // absolute filesystem path to the libraries
Line 10: define('LIBS_DIR', WWW_DIR . '/../libs');
Line 11:
Line 12: // load bootstrap file
Line 13: require APP_DIR . '/bootstrap.php';
Line 14:
WWW_DIR | "/srv/www/vhosts/flora/public_html/pexeso/www" (44) |
---|---|
APP_DIR | "/srv/www/vhosts/flora/public_html/pexeso/www/../app" (51) |
LIBS_DIR | "/srv/www/vhosts/flora/public_html/pexeso/www/../libs" (52) |
NETTE | TRUE |
NETTE_DIR | "/srv/www/vhosts/flora/public_html/pexeso/libs/Nette" (51) |
NETTE_VERSION_ID | 907 |
NETTE_PACKAGE | "5.3" (3) |
/srv/www/vhosts/flora/public_html/pexeso/www/index.php |
/srv/www/vhosts/flora/public_html/pexeso/app/bootstrap.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/loader.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/exceptions.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/Framework.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/Object.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/ObjectMixin.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/Callback.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Loaders/LimitedScope.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Loaders/AutoLoader.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Loaders/NetteLoader.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Debug/Debug.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Environment/Environment.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Environment/Configurator.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Config/Config.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Collections/Hashtable.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Collections/Collection.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Collections/ICollection.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Collections/IMap.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Config/ConfigAdapterIni.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Config/IConfigAdapter.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/Tools.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Utils/ArrayTools.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Environment/ServiceLocator.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Environment/IServiceLocator.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Loaders/RobotLoader.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Caching/Cache.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Caching/FileStorage.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Caching/ICacheStorage.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/dibi.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/interfaces.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiDateTime.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiObject.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiLiteral.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiHashMap.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiException.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiConnection.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiResult.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiResultIterator.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiRow.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiTranslator.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiDataSource.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiFluent.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiDatabaseInfo.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiEvent.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiFileLogger.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/libs/DibiFirePhpLogger.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/drivers/mysql.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/dibi/drivers/mysql.reflector.php |
/srv/www/vhosts/flora/public_html/pexeso/libs/Nette/Debug/templates/bluescreen.phtml |
REDIRECT_STATUS | "200" (3) |
---|---|
HTTP_HOST | "flora.upol.cz" (13) |
HTTP_USER_AGENT | "Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/)" (66) |
HTTP_ACCEPT | "*/*" (3) |
HTTP_ACCEPT_ENCODING | "deflate, gzip, br" (17) |
PATH | "/bin:/sbin:/usr/bin:/usr/sbin" (29) |
SERVER_SIGNATURE | "" |
SERVER_SOFTWARE | "Apache/2.2.15 (Linux/SUSE)" (26) |
SERVER_NAME | "flora.upol.cz" (13) |
SERVER_ADDR | "158.194.244.144" (15) |
SERVER_PORT | "80" (2) |
REMOTE_ADDR | "54.36.148.78" (12) |
DOCUMENT_ROOT | "/srv/www/vhosts/flora/public_html" (33) |
SERVER_ADMIN | "radim.vasut@gmail.cz" (20) |
SCRIPT_FILENAME | "/srv/www/vhosts/flora/public_html/pexeso/www/index.php" (54) |
REMOTE_PORT | "35108" (5) |
REDIRECT_URL | "/pexeso/www/login/" (18) |
GATEWAY_INTERFACE | "CGI/1.1" (7) |
SERVER_PROTOCOL | "HTTP/1.1" (8) |
REQUEST_METHOD | "GET" (3) |
QUERY_STRING | "" |
REQUEST_URI | "/pexeso/www/login/" (18) |
SCRIPT_NAME | "/pexeso/www/index.php" (21) |
PHP_SELF | "/pexeso/www/index.php" (21) |
REQUEST_TIME | 1624573421 |
Host | flora.upol.cz |
---|---|
User-Agent | Mozilla/5.0 (compatible; AhrefsBot/7.0; +http://ahrefs.com/robot/) |
Accept | */* |
Accept-Encoding | deflate, gzip, br |
empty
empty
empty
X-Powered-By: Nette Framework