MK Error: Access denied for user 'bitworld_pdd'@'vh390.timeweb.ru' (using password: YES)
/home/b/bitworld/system/libraries/mk_db.php on line 28
23        @$this->DB = new mysqli($this->HOST$this->USER$this->PASS$this->NAME);
24        if(!mysqli_connect_errno()) {
25            $this->DB->set_charset($this->ENCODING);
26        } else {
27            $err iconv('cp1251'$this->ENCODINGmysqli_connect_error());
28            throw new mkError($err);
29        }
30    }
31    
/home/b/bitworld/system/mk_lib.php on line 32
27    public function __get($name) {
28        if(!isset($this->libs[$name])) {
29            $class MK::$app->getClass($name);
30            $config MK::$app->getConfig($name);
31            if(class_exists($class)) {
32                $this->libs[$name] = new $class($config);
33            } else {
34                throw new mkError('Lib `' $name '` not found!');
35    
/home/b/bitworld/system/Model.php on line 151
146        return $obj[0];
147    }
148            
149    public function query() {
150        $this->_res call_user_func_array(
151            array(MK::$lib->DB'query'),
152            func_get_args()
153        );
154    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/model/questions.php on line 119
114        $f 0;
115        $c 800;
116    }
117    $this->query(
118        'SELECT * FROM ?n WHERE `category` = ?i LIMIT ?i,?i',
119        $this->getTable(), $category$f$c
120    );
121    if($this->get_count() > 0) {
122    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php on line 75
70        
71    private function test_by_theme($abcd$theme$part) {
72        $model = new model\questions($abcd);
73        $themes $model->getThemes();
74        $theme_title $themes[$theme][0];            
75        $questions $model->getByTheme($theme$part);
76        $_SESSION['vk_protect'] = 0;
77        $data = [
78    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php on line 29
24    if(isset($matches[1][0], $matches[2][0])) {
25        switch($matches[1][0]) {
26            case 'tema':
27                $arr explode('-'$matches[2][0]);
28                if(sizeof($arr) == 2) {
29                    $this->test_by_theme($abcd, (int)$arr[0], (int)$arr[1]);
30                } else {
31                    $this->notFound();
32    
/home/b/bitworld/system/Controller.php on line 30
25                foreach($perm as $val) {
26                    $this->permissions[$key][$val] = true;
27                }
28            }
29        }
30        $this->main($args);
31    }
32        
33    
/home/b/bitworld/system/mk_app.php on line 152
147    }
148            
149    ob_start();
150    if($this->_action == null) {
151        $args['page'] = '404';
152        $controller = new $class($args);
153    } else {
154        $controller = new $class($args);
155    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/index.php on line 33
28    require mk_sys 'MK.php';
29        
30    /* CMS Автоподгрузка классов */
31    spl_autoload_register(['system\MK''autoload']);
32        
33    (new system\mk_app($config))->start();


Fatal error: Uncaught system\mkError in /home/b/bitworld/system/libraries/mk_db.php:28 Stack trace: #0 /home/b/bitworld/system/mk_lib.php(32): mk_db->__construct(Array) #1 /home/b/bitworld/system/Model.php(151): system\mk_lib->__get('DB') #2 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/model/questions.php(119): system\Model->query('SELECT * FROM ?...', 'questions_ab', 3, 0, 20) #3 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php(75): pdd\model\questions->getByTheme(3, 1) #4 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php(29): test->test_by_theme('ab', 3, 1) #5 /home/b/bitworld/system/Controller.php(30): test->main(Array) #6 /home/b/bitworld/system/mk_app.php(152): system\Controller->__construct(Array) #7 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/index.php(33): system\mk_app->start() #8 {main} thrown in /home/b/bitworld/system/libraries/mk_db.php on line 28