From 3f75a0e28a84d3e8164c81ca7f681d7a157329f2 Mon Sep 17 00:00:00 2001 From: Leandro Arndt Date: Thu, 18 Feb 2016 16:35:45 -0200 Subject: [PATCH] Exclusão da funções em inc/database.php --- inc/database.php | 6 +++--- restrito/inc/database.php | 5 +++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/inc/database.php b/inc/database.php index c2e134a..560e7e1 100644 --- a/inc/database.php +++ b/inc/database.php @@ -8,7 +8,7 @@ modificá-lo sob os termos da Licença GPL2. ***********************************************************************************/ -require_once("config.php"); +/* require_once("config.php"); require_once("../class/db.class.php"); function db_open() { @@ -27,7 +27,7 @@ function db_close($conn) { function db_open_trans() { $mysqli = DB::conn(); - /* check connection */ + // check connection if (mysqli_connect_errno()) { die("Falha na conexao: ". mysqli_connect_error()); } @@ -62,5 +62,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) { return $got; } - +*/ ?> diff --git a/restrito/inc/database.php b/restrito/inc/database.php index c7ebebc..fa761d7 100644 --- a/restrito/inc/database.php +++ b/restrito/inc/database.php @@ -8,6 +8,7 @@ modificá-lo sob os termos da Licença GPL2. ***********************************************************************************/ +/* require_once("config.php"); include_once(DIR_CLASSES_LEIACESSO."/db.class.php"); @@ -27,7 +28,7 @@ function db_close($conn) { function db_open_trans() { $mysqli = DB::conn(); - /* check connection */ + // check connection if (mysqli_connect_errno()) { die("Falha na conexao: ". mysqli_connect_error()); } @@ -62,5 +63,5 @@ function rs_to_array($result, $numass=MYSQL_BOTH) { return $got; } - +*/ ?> -- libgit2 0.21.2