Notice: Undefined offset: 0 in /home/positive/domains/positive-power.pl/public_html/index.php on line 57
CORE EXCEPTION!
FILE: /home/positive/domains/positive-power.pl/public_html/system/libraries/Zend/Db/Adapter/Pdo/Abstract.php
LINE: 144

MESSAGE:
SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using password: NO)


  1. /home/positive/domains/positive-power.pl/public_html/system/libraries/Zend/Db/Adapter/Pdo/Mysql.php line 109 » Zend_Db_Adapter_Pdo_Abstract->_connect()

    102 }
    103
    104 if (!empty($this->_config['charset'])) {
    105 $initCommand = "SET NAMES '" . $this->_config['charset'] . "'";
    106 $this->_config['driver_options'][1002] = $initCommand; // 1002 = PDO::MYSQL_ATTR_INIT_COMMAND
    107 }
    108
    109 parent::_connect();
    110 }
    111
    112 /**
    113 * @return string
    114 */
    115 public function getQuoteIdentifierSymbol()
    116 {
  2. /home/positive/domains/positive-power.pl/public_html/system/libraries/Zend/Db/Adapter/Abstract.php line 861 » Zend_Db_Adapter_Pdo_Mysql->_connect()

    854 *
    855 * @param mixed $value The value to quote.
    856 * @param mixed $type OPTIONAL the SQL datatype name, or constant, or null.
    857 * @return mixed An SQL-safe quoted value (or string of separated values).
    858 */
    859 public function quote($value, $type = null)
    860 {
    861 $this->_connect();
    862
    863 if ($value instanceof Zend_Db_Select) {
    864 return '(' . $value->assemble() . ')';
    865 }
    866
    867 if ($value instanceof Zend_Db_Expr) {
    868 return $value->__toString();
  3. /home/positive/domains/positive-power.pl/public_html/system/class/core/db_adapter_pdo_mysql.class.php line 58 » Zend_Db_Adapter_Abstract->quote(arguments)

    0
    23.20.87.12
    1
    51 $where = preg_replace(array('/^WHERE/', '/LIMIT \d+$/'), '', $where);
    52 }
    53
    54 parent::delete('#__' . $table, $where);
    55 }
    56
    57 public function escape($value, $type = null) {
    58 return preg_replace(array('#^\'#', '#\'$#'), '', $this->quote($value, $type));
    59 }
    60
    61 /**
    62 * Inserts a table row with specified data.
    63 *
    64 * @param mixed $table The table to insert data into.
    65 * @param array $bind Column-value pairs.
  4. /home/positive/domains/positive-power.pl/public_html/system/class/model/ipbans.class.php line 43 » Core_Db_Adapter_Pdo_Mysql->escape(arguments)

    0
    23.20.87.12
    36 public function isBanned($sIp) {
    37 return $this->db->queryToRow(
    38 'SELECT
    39 message
    40 FROM
    41 ' . $this->_table . '
    42 WHERE
    43 ip = "' . $this->db->escape($sIp) . '"
    44 AND (to_date >= \'' . date("Y-m-d H:i:s") . '\' OR ISNULL(to_date))
    45 LIMIT
    46 1'
    47 );
    48 }
    49
    50 }
  5. /home/positive/domains/positive-power.pl/public_html/index.php line 166 » Model_Ipbans->isBanned(arguments)

    0
    23.20.87.12
    159 // Jeżeli tak, to wyślij status 403. Jeżeli nie, to przetwórz żądanie.
    160 if (isset($_SERVER['HTTP_X_FORWARDED_FOR']) && $_SERVER['HTTP_X_FORWARDED_FOR']) {
    161 $sIp = $_SERVER['HTTP_X_FORWARDED_FOR'];
    162 } else {
    163 $sIp = $_SERVER['REMOTE_ADDR'];
    164 }
    165 $oIpbans = new Model_Ipbans();
    166 $aIpBan = $oIpbans->isBanned($sIp);
    167
    168
    169 if (substr($_SERVER['REQUEST_URI'], -1) == '/' && $_SERVER['REQUEST_URI'] != '/' && $_SERVER['REQUEST_URI'] != "/" . SUB_DIR . "/") {
    170 Core_Request::getInstance()->redirect(substr($_SERVER['REQUEST_URI'], 0, -1));
    171 } else if (empty($aIpBan) === false) {
    172 Core_Request::getInstance()->setResponse($aIpBan['message']);
    173 Core_Request::getInstance()->setStatus(403);
$_COOKIE array(0)
$_GET array(0)
$_FILES array(0)
$_POST array(0)
$_SERVER array (31)
'REDIRECT_UNIQUE_ID' => string(24) "WSqIodW9ObQAAHcZzZMAAAAG"
'REDIRECT_STATUS' => string(3) "200"
'UNIQUE_ID' => string(24) "WSqIodW9ObQAAHcZzZMAAAAG"
'HTTP_HOST' => string(20) "www.positivepower.eu"
'HTTP_ACCEPT_ENCODING' => string(21) "x-gzip, gzip, deflate"
'HTTP_USER_AGENT' => string(39) "CCBot/2.0 (http://commoncrawl.org/faq/)"
'HTTP_ACCEPT' => string (63) "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q= …"
text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
'PATH' => string(60) "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
'SERVER_SIGNATURE' => string(0) ""
'SERVER_SOFTWARE' => string(8) "Apache/2"
'SERVER_NAME' => string(20) "www.positivepower.eu"
'SERVER_ADDR' => string(11) "10.30.34.14"
'SERVER_PORT' => string(2) "80"
'REMOTE_ADDR' => string(11) "23.20.87.12"
'DOCUMENT_ROOT' => string(52) "/home/positive/domains/positive-power.pl/public_html"
'REQUEST_SCHEME' => string(4) "http"
'CONTEXT_PREFIX' => string(0) ""
'CONTEXT_DOCUMENT_ROOT' => string(52) "/home/positive/domains/positive-power.pl/public_html"
'SERVER_ADMIN' => string(27) "webmaster@positive-power.pl"
'SCRIPT_FILENAME' => string (62) "/home/positive/domains/positive-power.pl/public_html/index.p …"
/home/positive/domains/positive-power.pl/public_html/index.php
'REMOTE_PORT' => string(5) "45788"
'REDIRECT_URL' => string(1) "/"
'GATEWAY_INTERFACE' => string(7) "CGI/1.1"
'SERVER_PROTOCOL' => string(8) "HTTP/1.0"
'REQUEST_METHOD' => string(3) "GET"
'QUERY_STRING' => string(0) ""
'REQUEST_URI' => string(1) "/"
'SCRIPT_NAME' => string(10) "/index.php"
'PHP_SELF' => string(10) "/index.php"
'REQUEST_TIME_FLOAT' => float 1495959713.128
'REQUEST_TIME' => integer 1495959713
isset(...) ? $_SESSION : null NULL
Called from /home/positive/domains/positive-power.pl/public_html/system/class/core.class.php line 108 in (Core::exception())