/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 34
29 }
30
31 public function getByNum($ticket) {
32 $this->query(
33 'SELECT * FROM ?n WHERE `paper` = ?i',
34 $this->getTable(), $ticket
35 );
36 if($this->get_count() > 0) {
37
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php on line 87
82 $this->test_frg($questions, $abcd, $data);
83 }
84
85 private function test_by_ticket($abcd, $ticket) {
86 $model = new model\questions($abcd);
87 $questions = $model->getByNum($ticket);
88 $_SESSION['vk_protect'] = 0;
89 $data = [
90
/home/b/bitworld/bit-world.ru/public_html/pdd.bit-world.ru/modules/pdd/test.php on line 35
30 } else {
31 $this->notFound();
32 }
33 break;
34 case 'bilet':
35 $this->test_by_ticket($abcd, (int)$matches[2][0]);
36 break;
37 }
38
/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();