Commit 3f75a0e28a84d3e8164c81ca7f681d7a157329f2

Authored by Leandro Arndt
1 parent e4e61f60
Exists in mysqli

Exclusão da funções em inc/database.php

Showing 2 changed files with 6 additions and 5 deletions   Show diff stats
inc/database.php
@@ -8,7 +8,7 @@ @@ -8,7 +8,7 @@
8 modificá-lo sob os termos da Licença GPL2. 8 modificá-lo sob os termos da Licença GPL2.
9 ***********************************************************************************/ 9 ***********************************************************************************/
10 10
11 -require_once("config.php"); 11 +/* require_once("config.php");
12 require_once("../class/db.class.php"); 12 require_once("../class/db.class.php");
13 13
14 function db_open() { 14 function db_open() {
@@ -27,7 +27,7 @@ function db_close($conn) { @@ -27,7 +27,7 @@ function db_close($conn) {
27 function db_open_trans() 27 function db_open_trans()
28 { 28 {
29 $mysqli = DB::conn(); 29 $mysqli = DB::conn();
30 - /* check connection */ 30 + // check connection
31 if (mysqli_connect_errno()) { 31 if (mysqli_connect_errno()) {
32 die("Falha na conexao: ". mysqli_connect_error()); 32 die("Falha na conexao: ". mysqli_connect_error());
33 } 33 }
@@ -62,5 +62,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) { @@ -62,5 +62,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) {
62 return $got; 62 return $got;
63 } 63 }
64 64
65 - 65 +*/
66 ?> 66 ?>
restrito/inc/database.php
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 modificá-lo sob os termos da Licença GPL2. 8 modificá-lo sob os termos da Licença GPL2.
9 ***********************************************************************************/ 9 ***********************************************************************************/
10 10
  11 +/*
11 require_once("config.php"); 12 require_once("config.php");
12 include_once(DIR_CLASSES_LEIACESSO."/db.class.php"); 13 include_once(DIR_CLASSES_LEIACESSO."/db.class.php");
13 14
@@ -27,7 +28,7 @@ function db_close($conn) { @@ -27,7 +28,7 @@ function db_close($conn) {
27 function db_open_trans() 28 function db_open_trans()
28 { 29 {
29 $mysqli = DB::conn(); 30 $mysqli = DB::conn();
30 - /* check connection */ 31 + // check connection
31 if (mysqli_connect_errno()) { 32 if (mysqli_connect_errno()) {
32 die("Falha na conexao: ". mysqli_connect_error()); 33 die("Falha na conexao: ". mysqli_connect_error());
33 } 34 }
@@ -62,5 +63,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) { @@ -62,5 +63,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) {
62 return $got; 63 return $got;
63 } 64 }
64 65
65 - 66 +*/
66 ?> 67 ?>