Beispiel #1
0
 private function _get_permissions()
 {
     if (CORE_DEBUG === false) {
         $err = new core_error('CxFFFF');
         $err->set_fatal()->set_log(false)->run();
         exit;
     }
 }
Beispiel #2
0
 public function query($query_string)
 {
     // Inicia a conexão, se necessário
     if ($this->_connected === false) {
         $this->connect();
     }
     // Armazena o resultado da query
     $query = $this->_connection->query($this->_last_query = $query_string);
     // Se a query falhar
     if ($query === false) {
         $error = new core_error('Cx3000', array('error' => $this->_connection->error, 'errno' => $this->_connection->errno, 'sql' => $this->_last_query));
         $error->set_fatal(true);
         $error->run();
     }
     return $query;
 }