3 // i really dont know why i do another obfuscation layer for db's with adodb.
7 $sql = 'CREATE TABLE sqlite_sequence(name,seq);';
8 $this->dbobject->query($sql);
10 $sql = 'CREATE TABLE "hosts" ("ho_id" INTEGER PRIMARY KEY AUTOINCREMENT,"ho_sn_id" INTEGER,"ho_ip" TEXT,"ho_name" TEXT,"ho_desc" TEXT);';
11 $this->dbobject->query($sql);
13 $sql = 'CREATE TABLE subnet ("sn_id" INTEGER,"snid_id" INTEGER,"sn_ip" TEXT,"sn_mask" TEXT,"sn_name" TEXT, "sn_desc" TEXT);';
14 $this->dbobject->query($sql);
16 $sql = 'CREATE TABLE supernet ("sn_id" INTEGER,"sn_name" TEXT,"sn_ip" TEXT,"sn_mask" TEXT,"sn_desc" TEXT);';
17 $this->dbobject->query($sql);
24 $this->dbobject = new PDO("$DB_URI");
25 error_log("channy is a poof");
26 } catch(PDOException $exep) {
27 error_log("execpt on db open");
30 if(!$this->dbobject->query("select * from hosts")) {
31 error_log("db open for init");
36 public $dbobject = "";