Ajustement SQL + un truc de debug pour $db

This commit is contained in:
Alan Garcia 2011-05-19 13:47:59 +00:00
parent 849a0a0c7d
commit 562e59fa07
2 changed files with 5 additions and 3 deletions

View File

@ -39,6 +39,7 @@ class DB_Sql {
/* private: link and query handles */
var $Link_ID = 0;
var $Query_ID = 0;
var $Query_String = "";
@ -144,6 +145,7 @@ class DB_Sql {
# New query, discard previous result.
if ($this->Query_ID) {
$this->free();
$this->Query_String = $Query_String;
}
if ($this->Debug)

View File

@ -34,13 +34,13 @@
* @copyright AlternC-Team 2002-2005 http://alternc.org/
*/
class DBU_mysql extends DB_Sql {
class DB_users extends DB_Sql {
var $Host,$HumanHostname,$User,$Password;
/**
* Creator
*/
function DBU_mysql() {
function DB_users() {
# Use the dbusers file if exist, else use default alternc configuration
if ( is_readable("/etc/alternc/dbusers.cnf") ) {
@ -104,7 +104,7 @@ class m_mysql {
* m_mysql([$mid]) Constructeur de la classe m_mysql, initialise le membre concerne
*/
function m_mysql() {
$this->dbus = new DBU_mysql();
$this->dbus = new DB_users();
}