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/pdd.php on line 135
130    $data = [
131        'title' => strtoupper($abcd),
132        'abcd' => $abcd,
133        'num' => $theme-1,
134        'themes' => $questions->getThemes(),
135        'questions' => $questions->getByTheme($theme),
136        'apiId' => model\questions::apiId()
137    ];
138    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/pdd.php on line 76
71        
72    private function pdd_default($ticket$abcd) {
73        if(strpos($ticket'bilet') !== false) {
74            $this->pdd_ticket($ticket$abcd);
75        } elseif(strpos($ticket'tema') !== false) {
76            $this->pdd_theme($ticket$abcd);
77        } else {
78            $this->notFound();
79    
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/pdd.php on line 42
37            break;
38        case 'list':
39            $this->pdd_list($category);
40            break;
41        default:
42            $this->pdd_default($args['page'], $category);
43            break;
44    }
45    
/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 154
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        $action $this->_action;
156        $controller->$action($args);
157    
/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', 23, 0, 800) #3 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/pdd.php(135): pdd\model\questions->getByTheme(23) #4 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/pdd.php(76): pdd->pdd_theme(23, 'ab') #5 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/pdd.php(42): pdd->pdd_default('tema23.htm', 'ab') #6 /home/b/bitworld/system/Controller.php(30): pdd->main(Array) #7 /home/b/bitworld/system/mk_app.php(154): system\Controller->__construct(Array) #8 /home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/index.php(33): system\mk_app->start() #9 {main} thrown in /home/b/bitworld/system/libraries/mk_db.php on line 28