/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->ENCODING, mysqli_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 74
69 }
70 }
71 $sql = implode(',', $rand_list);
72 $this->query(
73 'SELECT * FROM ?n WHERE `id` IN (?p) ORDER BY `section`',
74 $this->getTable(), $sql
75 );
76 if($this->get_count() > 0) {
77
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/model/questions.php on line 92
87 for($k=0; $k<4; $k++) {
88 $quest[$k][] = ($i*20)+($k*5)+$j;
89 }
90 }
91 }
92 return $this->getExamSql($quest, true);
93 }
94
95
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/exam.php on line 66
61 }
62
63
64 private function void_exam($abcd) {
65 $model = new model\questions($abcd);
66 $questions = $model->getExam20();
67 $_SESSION['vk_protect'] = 0;
68 $count = sizeof($questions[1])+1;
69
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/exam.php on line 24
19 }
20
21 public function main($args) {
22 $url = MK::$core->getSplitURL();
23 if(sizeof($url) == 1) {
24 $this->void_exam('ab');
25 } elseif(sizeof($url) == 3 && $url[2] == '5' &&
26 isset($_REQUEST['q'], $_REQUEST['s'], $_REQUEST['max'])) {
27
/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();