Home
last modified time | relevance | path

Searched refs:db (Results 1 – 25 of 189) sorted by path

12345678

/plugin/acknowledge/
H A Dhelper.php17 protected $db;
29 if ($this->db === null) {
31 $this->db = new SQLiteDB('acknowledgement', __DIR__ . '/db');
34 $this->db->getPdo()->sqliteCreateFunction('AUTH_ISMEMBER', [$this, 'auth_isMember'], -1);
35 $this->db->getPdo()->sqliteCreateFunction('MATCHES_PAGE_PATTERN', [$this, 'matchPagePattern'], 2);
52 return $this->db;
79 $this->db->getPdo()->beginTransaction();
85 $this->db->exec($sql, [$page, $lastmod]);
87 $this->db
16 protected $db; global() variable in helper_plugin_acknowledge
[all...]
/plugin/aichat/Storage/
H A DSQLiteStorage.php26 protected $db;
36 $this->db = new SQLiteDB('aichat', DOKU_PLUGIN . 'aichat/db/');
37 $this->db->getPdo()->sqliteCreateFunction('COSIM', $this->sqliteCosineSimilarityCallback(...), 2);
48 $record = $this->db->queryRecord('SELECT * FROM embeddings WHERE id = ?', [$chunkID]);
66 $this->db->exec('DELETE FROM embeddings');
68 $this->db->exec('DELETE FROM clusters');
81 $this->db->exec('DELETE FROM embeddings WHERE page = ?', [$page]);
88 $this->db->saveRecord('embeddings', [
107 $this->db
18 protected $db; global() variable in dokuwiki\\plugin\\aichat\\Storage\\SQLiteStorage
[all...]
/plugin/amcharts/assets/amcharts/
H A Damcharts.js177 …is.allBullets.push(Na);if(Na){var Zb=Na.getBBox(),$b=Zb.width,ac=Zb.height,db,eb,sb=f.totalTextOff…
178db=0>W?E-$b/2-2-fb-sb:E+$b/2+3+fb+sb):(db=wa,eb=0>W?F+ac/2+fb+sb:F-ac/2-3-fb-sb);Na.translate(db,e…
/plugin/amcharts/assets/amcharts/plugins/export/libs/jszip/
H A Djszip.min.js13db+1)),this.bl_tree=new C.Buf16(2*(2*eb+1)),f(this.dyn_ltree),f(this.dyn_dtree),f(this.bl_tree),th…
14db;case db:if(c.extra){for(zb=c.extra;zb>n;){if(0===i)break a;i--,m+=e[g++]<<n,n+=8}c.length+=m&(1…
/plugin/approve/action/
H A Dmigration.php66 $db = $sqlite->getAdapter()->getDb();
71 $db->beginTransaction();
181 $db->commit();
/plugin/authgooglesheets/vendor/phpseclib/phpseclib/phpseclib/Crypt/RSA/
H A DPrivateKey.php230 $db = $ps . chr(1) . $salt;
232 $maskedDB = $db ^ $dbMask;
403 $db = $maskedDB ^ $dbMask;
404 $lHash2 = substr($db, 0, $this->hLen);
405 $m = substr($db, $this->hLen);
H A DPublicKey.php257 $db = $maskedDB ^ $dbMask;
258 $db[0] = ~chr(0xFF << ($emBits & 7)) & $db[0];
260 if (substr($db, 0, $temp) != str_repeat(chr(0), $temp) || ord($db[$temp]) != 1) {
263 $salt = substr($db, $temp + 1); // should be $sLen long
395 $db = $lHash . $ps . chr(1) . $m;
398 $maskedDB = $db ^ $dbMask;
/plugin/authjoomla3/
H A Dauth.php68 …('%s:dbname=%s;host=%s', $this->joomlaConfig->dbtype, $this->joomlaConfig->db, $this->joomlaConfig…
/plugin/authowncloud/
H A Dauth.php220 $db = OC_DB::prepare($sql);
221 $result = $db->execute($values);
314 …$db = OC_DB::prepare('SELECT `configvalue` FROM `*PREFIX*preferences` WHERE `userid` = ? AND `conf…
315 $result = $db->execute(array($user));
/plugin/authucenter/lib/api/
H A Duc.php70 var $db = ''; variable in uc_note
/plugin/authucenter/lib/uc_client/control/
H A Dfeed.php48 …$this->db->query("INSERT INTO ".UC_DBTABLEPRE."feeds SET appid='$appid', icon='$icon', uid='$uid',…
53 return $this->db->insert_id();
60 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."feeds WHERE feedid>'$start' AND feedid<'$end'");
67 …$feedlist = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."feeds ORDER BY feedid DESC LIMIT …
85 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."feeds WHERE feedid>='$start' AND feedid<='$end'");
H A Duser.php188 …$protectedmembers = $this->db->fetch_all("SELECT uid,username FROM ".UC_DBTABLEPRE."protectedmembe…
207 …$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."protectedmembers SET uid='$uid', username='$userna…
209 return $this->db->errno() ? -1 : 1;
218 …$this->db->query("DELETE FROM ".UC_DBTABLEPRE."protectedmembers WHERE username='$username' AND app…
220 return $this->db->errno() ? -1 : 1;
234 …$this->db->query("DELETE FROM ".UC_DBTABLEPRE."mergemembers WHERE appid='".$this->app['appid']."' …
241 …$this->db->query("DELETE FROM ".UC_DBTABLEPRE."mergemembers WHERE appid='".$this->app['appid']."' …
/plugin/authucenter/lib/uc_client/model/
H A Dapp.php14 var $db; variable in appmodel
23 $this->db = $base->db;
27 …$arr = $this->db->fetch_all("SELECT $col FROM ".UC_DBTABLEPRE."applications".($where ? ' WHERE '.$…
H A Dbase.php29 var $db; variable in base
78 $this->db = new ucclient_db();
79 $this->db->connect(UC_DBHOST, UC_DBUSER, UC_DBPW, '', UC_DBCHARSET, UC_DBCONNECT, UC_DBTABLEPRE);
127 $settings = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."settings $sqladd");
206 …$noteexists = $this->db->result_first("SELECT value FROM ".UC_DBTABLEPRE."vars WHERE name='noteexi…
233 …$mailexists = $this->db->result_first("SELECT value FROM ".UC_DBTABLEPRE."vars WHERE name='mailexi…
H A Dcache.php22 var $db; variable in cachemodel
32 $this->db = $base->db;
69 $data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."badwords");
H A Ddomain.php14 var $db; variable in domainmodel
23 $this->db = $base->db;
28 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."domains SET domain='$domain', ip='$ip'");
30 return $this->db->insert_id();
34 $data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."domains");
40 $data = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."domains LIMIT $start, $ppp");
46 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."domains WHERE id IN ($domainids)");
47 return $this->db->affected_rows();
51 $this->db->query("UPDATE ".UC_DBTABLEPRE."domains SET domain='$domain', ip='$ip' WHERE id='$id'");
52 return $this->db->affected_rows();
H A Dfriend.php14 var $db; variable in friendmodel
23 $this->db = $base->db;
27 …$direction = $this->db->result_first("SELECT direction FROM ".UC_DBTABLEPRE."friends WHERE uid='$f…
29 …$this->db->query("INSERT INTO ".UC_DBTABLEPRE."friends SET uid='$uid', friendid='$friendid', comme…
30 …$this->db->query("UPDATE ".UC_DBTABLEPRE."friends SET direction='3' WHERE uid='$friendid' AND frie…
38 return $this->db->insert_id();
44 …$this->db->query("DELETE FROM ".UC_DBTABLEPRE."friends WHERE uid='$uid' AND friendid IN ($friendid…
45 $affectedrows = $this->db->affected_rows();
47 …$this->db->query("UPDATE ".UC_DBTABLEPRE."friends SET direction=1 WHERE uid IN ($friendids) AND fr…
63 …$totalnum = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."friends WHERE $sqladd");
[all …]
H A Dmail.php16 var $db; variable in mailmodel
26 $this->db = $base->db;
31 $data = $this->db->result_first("SELECT COUNT(*) FROM ".UC_DBTABLEPRE."mailqueue");
49 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."mailqueue WHERE mailid IN ($ids)");
50 return $this->db->affected_rows();
66 $this->db->query($sql);
67 $insert_id = $this->db->insert_id();
68 …$insert_id && $this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='mailexists', value='1…
99 $this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='mailexists', value='0'");
140 return $this->db->query("DELETE FROM ".UC_DBTABLEPRE."mailqueue WHERE mailid='$mailid'");
[all …]
H A Dmisc.php17 var $db; variable in miscmodel
26 $this->db = $base->db;
30 …$arr = $this->db->fetch_all("SELECT $col FROM ".UC_DBTABLEPRE."applications".($where ? ' WHERE '.$…
H A Dnote.php20 var $db; variable in notemodel
32 $this->db = $base->db;
85 …$this->db->query("INSERT INTO ".UC_DBTABLEPRE."notelist SET getdata='$getdata', operation='$operat…
86 $insert_id = $this->db->insert_id();
87 …$insert_id && $this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars (name, value) VALUES ('noteexis…
100 …$this->db->query("REPLACE INTO ".UC_DBTABLEPRE."vars SET name='noteexists".UC_APPID."', value='0'"…
146 …$this->db->query("UPDATE ".UC_DBTABLEPRE."notelist SET app$appid='1', totalnum=totalnum+1, succeed…
149 …$this->db->query("UPDATE ".UC_DBTABLEPRE."notelist SET app$appid = app$appid-'1', totalnum=totalnu…
157 …$data = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."notelist WHERE closed='0' AND $app_…
162 …rand(0, UC_NOTE_GC) == 0 && $this->db->query("DELETE FROM ".UC_DBTABLEPRE."notelist WHERE closed='…
[all …]
H A Dpm.php24 var $db; variable in pmmodel
32 $this->db = $base->db;
57 if($this->db->fetch_array($query)) {
240 $plid = $this->db->insert_id();
242 $pmid = $this->db->insert_id();
249 $pmid = $this->db->insert_id();
266 $plid = $this->db->insert_id();
268 $pmid = $this->db->insert_id();
332 $pmid = $this->db->insert_id();
486 $query = $this->db->query($sql);
[all …]
H A Dtag.php14 var $db; variable in tagmodel
23 $this->db = $base->db;
27 $arr = $this->db->fetch_all("SELECT * FROM ".UC_DBTABLEPRE."tags WHERE tagname='$tagname'");
32 …$result = $this->db->result_first("SELECT tagtemplates FROM ".UC_DBTABLEPRE."applications WHERE ap…
51 …$return = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."tags WHERE tagname='$data…
53 …$this->db->query("UPDATE ".UC_DBTABLEPRE."tags SET data='$datanew', expiration='".$this->base->tim…
55 …$this->db->query("INSERT INTO ".UC_DBTABLEPRE."tags (tagname, appid, data, expiration) VALUES ('$d…
61 …$return = $this->db->result_first("SELECT count(*) FROM ".UC_DBTABLEPRE."tags WHERE tagname='$tagn…
63 …$this->db->query("UPDATE ".UC_DBTABLEPRE."tags SET expiration='0' WHERE tagname='$tagname' AND app…
65 …$this->db->query("INSERT INTO ".UC_DBTABLEPRE."tags (tagname, appid, expiration) VALUES ('$tagname…
H A Duser.php14 var $db; variable in usermodel
23 $this->db = $base->db;
27 $arr = $this->db->fetch_first("SELECT * FROM ".UC_DBTABLEPRE."members WHERE uid='$uid'");
136 $uid = $this->db->insert_id();
137 $this->db->query("INSERT INTO ".UC_DBTABLEPRE."memberfields SET uid='$uid'");
166 return $this->db->affected_rows();
185 $this->db->query("DELETE FROM ".UC_DBTABLEPRE."members WHERE uid IN($uids)");
190 return $this->db->affected_rows();
212 while($user = $this->db->fetch_array($query)) {
221 while($user = $this->db->fetch_array($query)) {
[all …]
/plugin/authwordpress/
H A Dauth.php62 * @var PDO $db
64 protected $db; variable in auth_plugin_authwordpress
217 $stmt = $this->db->prepare($sql);
242 * Initializes $db property as PDO object.
248 if ($this->db) {
265 $this->db = new PDO($dsn, $this->getConf('username'), $this->getConf('password'));
318 $stmt = $this->db->prepare($this->sql_wp_user_data);
/plugin/authyubikey/lib/
H A DREADME58 https://github.com/Yubico/php-yubico/blob/master/example/db.sql[example/db.sql]

12345678