aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc/poche
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-13 10:15:40 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2014-07-13 10:15:40 +0200
commit4e067ceabd705201a16b4c92cf4b23f3b990326c (patch)
tree939f3a8e5ff3ab9ee414a57a895d3e78e1d46ce3 /inc/poche
parent58dbe103889148def78b0fc8744d3f94c56a1561 (diff)
downloadwallabag-4e067ceabd705201a16b4c92cf4b23f3b990326c.tar.gz
wallabag-4e067ceabd705201a16b4c92cf4b23f3b990326c.tar.zst
wallabag-4e067ceabd705201a16b4c92cf4b23f3b990326c.zip
updated specific configuration for parsing
Diffstat (limited to 'inc/poche')
-rwxr-xr-xinc/poche/Database.class.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/inc/poche/Database.class.php b/inc/poche/Database.class.php
index 8d74f2ff..2c80b64b 100755
--- a/inc/poche/Database.class.php
+++ b/inc/poche/Database.class.php
@@ -11,12 +11,12 @@
11class Database { 11class Database {
12 12
13 var $handle; 13 var $handle;
14 private $order = array( 14 private $order = array (
15 'ia' => 'ORDER BY entries.id', 15 'ia' => 'ORDER BY entries.id',
16 'id' => 'ORDER BY entries.id DESC', 16 'id' => 'ORDER BY entries.id DESC',
17 'ta' => 'ORDER BY lower(entries.title)', 17 'ta' => 'ORDER BY lower(entries.title)',
18 'td' => 'ORDER BY lower(entries.title) DESC', 18 'td' => 'ORDER BY lower(entries.title) DESC',
19 'default' => 'ORDER BY entries.id' 19 'default' => 'ORDER BY entries.id'
20 ); 20 );
21 21
22 function __construct() 22 function __construct()
@@ -170,11 +170,11 @@ class Database {
170 public function login($username, $password, $isauthenticated = FALSE) 170 public function login($username, $password, $isauthenticated = FALSE)
171 { 171 {
172 if ($isauthenticated) { 172 if ($isauthenticated) {
173 $sql = "SELECT * FROM users WHERE username=?"; 173 $sql = "SELECT * FROM users WHERE username=?";
174 $query = $this->executeQuery($sql, array($username)); 174 $query = $this->executeQuery($sql, array($username));
175 } else { 175 } else {
176 $sql = "SELECT * FROM users WHERE username=? AND password=?"; 176 $sql = "SELECT * FROM users WHERE username=? AND password=?";
177 $query = $this->executeQuery($sql, array($username, $password)); 177 $query = $this->executeQuery($sql, array($username, $password));
178 } 178 }
179 $login = $query->fetchAll(); 179 $login = $query->fetchAll();
180 180