mirror of
https://github.com/wallabag/wallabag.git
synced 2025-09-15 18:57:05 +00:00
updated specific configuration for parsing
This commit is contained in:
parent
58dbe10388
commit
4e067ceabd
952 changed files with 7585 additions and 5682 deletions
|
@ -11,12 +11,12 @@
|
|||
class Database {
|
||||
|
||||
var $handle;
|
||||
private $order = array(
|
||||
'ia' => 'ORDER BY entries.id',
|
||||
'id' => 'ORDER BY entries.id DESC',
|
||||
'ta' => 'ORDER BY lower(entries.title)',
|
||||
'td' => 'ORDER BY lower(entries.title) DESC',
|
||||
'default' => 'ORDER BY entries.id'
|
||||
private $order = array (
|
||||
'ia' => 'ORDER BY entries.id',
|
||||
'id' => 'ORDER BY entries.id DESC',
|
||||
'ta' => 'ORDER BY lower(entries.title)',
|
||||
'td' => 'ORDER BY lower(entries.title) DESC',
|
||||
'default' => 'ORDER BY entries.id'
|
||||
);
|
||||
|
||||
function __construct()
|
||||
|
@ -170,11 +170,11 @@ class Database {
|
|||
public function login($username, $password, $isauthenticated = FALSE)
|
||||
{
|
||||
if ($isauthenticated) {
|
||||
$sql = "SELECT * FROM users WHERE username=?";
|
||||
$query = $this->executeQuery($sql, array($username));
|
||||
$sql = "SELECT * FROM users WHERE username=?";
|
||||
$query = $this->executeQuery($sql, array($username));
|
||||
} else {
|
||||
$sql = "SELECT * FROM users WHERE username=? AND password=?";
|
||||
$query = $this->executeQuery($sql, array($username, $password));
|
||||
$sql = "SELECT * FROM users WHERE username=? AND password=?";
|
||||
$query = $this->executeQuery($sql, array($username, $password));
|
||||
}
|
||||
$login = $query->fetchAll();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue