Lines Matching refs:dbh
15 var $dbh = null; // db handle variable in auth_plugin_authdjango
29 global $dbh;
39 $this->dbh = new PDO('sqlite:' . $this->getConf('server'));
42 …$this->dbh = new PDO($this->getConf('protocol') . ':host=' . $this->getConf('server') . ';dbname='…
56 global $dbh;
65 if (isset($_COOKIE['sessionid']) && $this->dbh) {
70 …$query = 'SELECT session_data FROM django_session WHERE session_key=' . $this->dbh->quote($s_id) .…
71 $result = $this->dbh->query($query) or die('Query failed1: ' . $this->dbh->errorInfo());
102 …ast_name, email, is_superuser, is_staff FROM auth_user WHERE id=' . $this->dbh->quote($userid) . '…
104 …$result2 = $this->dbh->query($query2) or die('Query failed2: ' . print_r($this->dbh->errorInfo()));
145 …h_user, auth_user_groups, auth_group where auth_user.username = ' . $this->dbh->quote($user) . ' A…
147 $result = $this->dbh->query($query) or die('Query failed3: ' . $this->dbh->errorInfo());
165 $result = $this->dbh->query($query) or die('Query failed4: ' . $this->dbh->errorInfo());
191 $this->dbh = null;