Ajustement SQL + un truc de debug pour $db
This commit is contained in:
parent
849a0a0c7d
commit
562e59fa07
|
@ -39,6 +39,7 @@ class DB_Sql {
|
||||||
/* private: link and query handles */
|
/* private: link and query handles */
|
||||||
var $Link_ID = 0;
|
var $Link_ID = 0;
|
||||||
var $Query_ID = 0;
|
var $Query_ID = 0;
|
||||||
|
var $Query_String = "";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -144,6 +145,7 @@ class DB_Sql {
|
||||||
# New query, discard previous result.
|
# New query, discard previous result.
|
||||||
if ($this->Query_ID) {
|
if ($this->Query_ID) {
|
||||||
$this->free();
|
$this->free();
|
||||||
|
$this->Query_String = $Query_String;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($this->Debug)
|
if ($this->Debug)
|
||||||
|
|
|
@ -34,13 +34,13 @@
|
||||||
* @copyright AlternC-Team 2002-2005 http://alternc.org/
|
* @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;
|
var $Host,$HumanHostname,$User,$Password;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creator
|
* Creator
|
||||||
*/
|
*/
|
||||||
function DBU_mysql() {
|
function DB_users() {
|
||||||
|
|
||||||
# Use the dbusers file if exist, else use default alternc configuration
|
# Use the dbusers file if exist, else use default alternc configuration
|
||||||
if ( is_readable("/etc/alternc/dbusers.cnf") ) {
|
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
|
* m_mysql([$mid]) Constructeur de la classe m_mysql, initialise le membre concerne
|
||||||
*/
|
*/
|
||||||
function m_mysql() {
|
function m_mysql() {
|
||||||
$this->dbus = new DBU_mysql();
|
$this->dbus = new DB_users();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue