diff --git a/db.class.php b/db.class.php index bc64aae..22b8b56 100644 --- a/db.class.php +++ b/db.class.php @@ -10,10 +10,11 @@ class db public $connect; public $result; - /*function __construct() + function __construct($database) { + $this.open($database); } - */ + function open() { diff --git a/nconnector.php b/nconnector.php index 1c301a3..936bede 100755 --- a/nconnector.php +++ b/nconnector.php @@ -7,10 +7,10 @@ require("config.inc.php"); require("log.php"); require("db.class.php"); -$doldb = new db(); -$doldb->database = "dolibarr"; -$ncdb = new db(); -$ncdb->database = "nextcloud"; +$doldb = new db("dolibarr"); +//$doldb->database = ; +$ncdb = new db("nextcloud"); +//$ncdb->database = "nextcloud"; $doldb->query("SELECT login FROM llx_adherents"); function esp( $s )