Lines Matching refs:this

35         $this->loadConfig();
38 if(empty($this->conf['database'])) {
40 $this->_debug("SQLite err: insufficient configuration.", -1, __LINE__, __FILE__);
41 $this->success = false;
45 $this->cando['addUser'] = $this->_chkcnf(
56 $this->cando['delUser'] = $this->_chkcnf(
63 $this->cando['modLogin'] = $this->_chkcnf(
70 $this->cando['modPass'] = $this->cando['modLogin'];
71 $this->cando['modName'] = $this->cando['modLogin'];
72 $this->cando['modMail'] = $this->cando['modLogin'];
73 $this->cando['modGroups'] = $this->_chkcnf(
88 $this->cando['getUsers'] = $this->_chkcnf(
95 $this->cando['getUserCount'] = $this->_chkcnf(array('getUsers'));
96 $this->success = true;
110 if(empty($this->conf[$key])) return false;
126 if($this->_openDB()) {
127 $sql = $this->_createSQLFilter($this->conf['getUsers'], $filter);
130 if(($result = $this->_queryDB($sql))) {
133 $this->_closeDB();
151 if($this->_openDB()) {
152 $this->_lockTables("READ");
153 $sql = $this->_createSQLFilter($this->conf['getUsers'], $filter);
154 $sql .= " ".$this->conf['SortOrder'];
157 $result = $this->_queryDB($sql);
160 if(($info = $this->_getUserInfo($user['user']))) {
165 $this->_unlockTables();
166 $this->_closeDB();
193 if(($this->dbcon) && ($user)) {
194 $gid = $this->_getGroupID($group);
197 $sql = str_replace('%{group}', addslashes($group), $this->conf['addGroup']);
198 $this->_modifyDB($sql);
200 $gid = $this->_getGroupID($group);
206 $sql = $this->conf['addUserGroup'];
208 $uid = $this->_getUserID($user);
214 if($this->_modifyDB($sql) !== false) {
215 $this->_flushUserInfoCache($user);
220 $sql = str_replace('%{gid}', addslashes($gid), $this->conf['delGroup']);
222 $this->_modifyDB($sql);
251 if($this->dbcon && is_array($grps)) {
252 $sql = str_replace('%{user}', addslashes($user), $this->conf['addUser']);
256 if($this->_modifyDB($sql)) {
257 $uid = $this->_getUserID($user);
267 $gid = $this->_addUserToGroup($user, $group, true);
272 $this->_flushUserInfoCache($user);
280 $this->_delUser($user);
281 … $this->_debug("PgSQL err: Adding user '$user' to group '$group' failed.", -1, __LINE__, __FILE__);
299 if(!$this->dbcon) {
301 $con = new SQLite3($this->conf['database']);
303 $this->dbcon = $con;
306 $this->_debug($errormsg);
320 if($this->dbcon) {
321 $this->dbcon->close();
322 $this->dbcon = 0;
363 if($this->dbcon) {
364 $query = $this->_substituteAnimal($query);
365 $result = $this->dbcon->query($query);
372 $this->_debug('SQLite err: '. $this->dbcon->lastErrorMsg(), -1, __LINE__, __FILE__);
389 if($this->dbcon) {
390 $query = $this->_substituteAnimal($query);
391 $result = $this->dbcon->exec($query);
395 $this->_debug('SQLite err: '. $this->dbcon->lastErrorMsg(), -1, __LINE__, __FILE__);
409 if($this->dbcon) {
410 $this->_modifyDB('BEGIN');
424 if($this->dbcon) {
425 $this->_modifyDB('COMMIT');
441 $string = $this->dbcon->escapeString($string);