Lines Matching refs:dbh
18 var $dbh = null; // db handle variable in auth_plugin_authdjango
29 global $dbh;
38 $this->dbh = new PDO('sqlite:' . $this->getConf('server'));
41 …$this->dbh = new PDO($this->getConf('protocol') . ':host=' . $this->getConf('server') . ';dbname='…
55 global $dbh;
63 if (isset($_COOKIE['sessionid']) && $this->dbh) {
68 …$query = 'SELECT session_data FROM django_session WHERE session_key=' . $this->dbh->quote($s_id) .…
69 $result = $this->dbh->query($query) or die('Query failed1: ' . $this->dbh->errorInfo());
77 … username, first_name, last_name, email FROM auth_user WHERE id=' . $this->dbh->quote($userid) . '…
79 …$result2 = $this->dbh->query($query2) or die('Query failed2: ' . print_r($this->dbh->errorInfo()));
106 …h_user, auth_user_groups, auth_group where auth_user.username = ' . $this->dbh->quote($user) . ' A…
108 $result = $this->dbh->query($query) or die('Query failed3: ' . $this->dbh->errorInfo());
121 $result = $this->dbh->query($query) or die('Query failed4: ' . $this->dbh->errorInfo());
132 $this->dbh = null;