/var/www/vhosts/d-strela.kz/httpdocs/core/connectors/mysql.php [ строка : 59 ]
54 mysql_query("SET NAMES 'utf8'", $this->_link);
55 return true;
56 }
57 else throw new Exception('MySQL '.mysql_errno().': Невозможно выбрать базу данных <b>'.$this->_DB_BASE.'</b>');
58 }
59 else throw new Exception('MySQL '.mysql_errno().': Невозможно подключиться к базе данных <b>'.$this->_DB_HOST.'</b> c логином <b>'.$this->_DB_USER.'</b> и паролем <b>'.$this->_DB_PASS.'</b>');
60 }
61 catch(Extention $e) { Errors::exception_handler($e); }
62
63 return false;
64 }
-
/var/www/vhosts/d-strela.kz/httpdocs/core/connectors/mysql.php [ строка : 78 ] » connect()
75 # ЗАПРОС 76 public function query($query) 77 { 78 if($this->connect()) 79 { 80 try 81 {
-
/var/www/vhosts/d-strela.kz/httpdocs/core/connectors/mysql.php [ строка : 106 ] » query(Аргументы)
0
string(91) "SELECT `id`, `set`, `code`, `name` FROM `md_languages` WHERE `active`='1' ORDER BY `id` ASC" 103 public function select($table, $where='', $what='*') 104 { 105 if ( 106 ($result = $this->query("SELECT ".$what." FROM ".(preg_match('# as #i', $table) ? $table : "`$table`")." ".$where)) && 107 ($num_rows = mysql_num_rows($result)) 108 ) 109 {
-
/var/www/vhosts/d-strela.kz/httpdocs/core/libs/model.class.php [ строка : 96 ] » select(Аргументы)
0
string(12) "md_languages" 1
string(36) "WHERE `active`='1' ORDER BY `id` ASC" 2
string(27) "`id`, `set`, `code`, `name`" 93 ); 94 95 # Языки 96 if ($langs = self::$_db->select('md_languages', "WHERE `active`='1' ORDER BY `id` ASC", "`id`, `set`, `code`, `name`")) 97 { 98 foreach($langs as $l) 99 {
-
/var/www/vhosts/d-strela.kz/httpdocs/core/core.php [ строка : 188 ] » _init()
185 $_COOKIE = self::request_clean($_COOKIE); 186 187 # Инициализируем модель и представление 188 Model::_init(); 189 View::_init(); 190 191 # Запускаем контроллер
-
/var/www/vhosts/d-strela.kz/httpdocs/index.php [ строка : 21 ] » run(Аргументы)
0
array(8) { ["debug"]=> bool(false) ["profiling"]=> bool(false) ["caching"]=> bool(true) ["memcached"]=> bool(false) ["errors"]=> bool(true) ["log_errors"]=> bool(true) ["hurl"]=> bool(true) ["frontend"]=> bool(true) } 18 'log_errors' => true, 19 'hurl' => true, 20 'frontend' => true 21 )); 22 ?>