Skip to content

Commit

Permalink
Merge pull request #427 from wallabag/dev
Browse files Browse the repository at this point in the history
changelog 1.4
  • Loading branch information
nicosomb committed Feb 3, 2014
2 parents f355d2c + fa0bfb7 commit 38dafee
Show file tree
Hide file tree
Showing 84 changed files with 1,397 additions and 173 deletions.
8 changes: 4 additions & 4 deletions CONTRIBUTING.md
@@ -1,11 +1,11 @@
# How contributing

## You found a bug
Please [open a new issue](https://github.com/inthepoche/poche/issues/new).
Please [open a new issue](https://github.com/wallabag/demo.wallabag.org/issues/new).

To fix the bug quickly, we need some infos:
* your poche version (in ./inc/poche/myconfig.inc.php)
* the link you want to poche and which causes problem
* your demo.wallabag.org version (in ./index.php)
* the link you want to save and which causes problem

## You want to fix a bug or to add a feature
Please fork poche and work with **the dev branch** only. Do not work on master branch.
Please fork wallabag and work with **the dev branch** only. **Do not work on master branch**.
6 changes: 3 additions & 3 deletions CREDITS.md
@@ -1,4 +1,4 @@
poche is based on :
wallabag is based on :
* PHP Readability https://bitbucket.org/fivefilters/php-readability
* Full Text RSS http://code.fivefilters.org/full-text-rss/src
* Encoding https://github.com/neitanod/forceutf8
Expand All @@ -10,6 +10,6 @@ poche is based on :
* Flash messages https://github.com/plasticbrain/PHP-Flash-Messages
* Pagination https://github.com/daveismyname/pagination

poche is developed by Nicolas Lœuillet under the Do What the Fuck You Want to Public License
wallabag is developed by Nicolas Lœuillet under the Do What the Fuck You Want to Public License

Contributors : https://github.com/inthepoche/poche/graphs/contributors
Contributors : https://github.com/wallabag/wallabag/graphs/contributors
3 changes: 0 additions & 3 deletions INSTALL.md

This file was deleted.

9 changes: 0 additions & 9 deletions TODO.md

This file was deleted.

19 changes: 12 additions & 7 deletions inc/poche/Database.class.php
@@ -1,9 +1,9 @@
<?php
/**
* poche, a read it later open source system
* wallabag, self hostable application allowing you to not miss any content anymore
*
* @category poche
* @author Nicolas Lœuillet <support@inthepoche.com>
* @category wallabag
* @author Nicolas Lœuillet <nicolas@loeuillet.org>
* @copyright 2013
* @license http://www.wtfpl.net/ see COPYING file
*/
Expand Down Expand Up @@ -165,9 +165,14 @@ public function userExists($username) {
}
}

public function login($username, $password) {
$sql = "SELECT * FROM users WHERE username=? AND password=?";
$query = $this->executeQuery($sql, array($username, $password));
public function login($username, $password, $isauthenticated=false) {
if ($isauthenticated) {
$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));
}
$login = $query->fetchAll();

$user = array();
Expand All @@ -193,7 +198,7 @@ public function updatePassword($userId, $password)
public function updateUserConfig($userId, $key, $value) {
$config = $this->getConfigUser($userId);

if (!isset ($user_config[$key])) {
if (! isset($config[$key])) {
$sql = "INSERT INTO users_config (value, user_id, name) VALUES (?, ?, ?)";
}
else {
Expand Down

0 comments on commit 38dafee

Please sign in to comment.