aboutsummaryrefslogtreecommitdiffhomepage
path: root/inc
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2013-06-01 08:29:37 +0200
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2013-06-01 08:29:37 +0200
commit6499b26ae8e148fa5481db5b7a4e9fc0e55aad94 (patch)
tree4974d01d7813d78ae9760332cba3006aaffc20c4 /inc
parentda368cc84f4d79afc30052a209502fa8fd17241e (diff)
downloadwallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.tar.gz
wallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.tar.zst
wallabag-6499b26ae8e148fa5481db5b7a4e9fc0e55aad94.zip
demo mode (you can't update password in demo mode
Diffstat (limited to 'inc')
-rw-r--r--inc/config.php1
-rw-r--r--inc/store/sqlite.class.php7
2 files changed, 8 insertions, 0 deletions
diff --git a/inc/config.php b/inc/config.php
index 2de725f4..bd9287fe 100644
--- a/inc/config.php
+++ b/inc/config.php
@@ -14,6 +14,7 @@ if (!is_dir('db/')) {
14 @mkdir('db/',0705); 14 @mkdir('db/',0705);
15} 15}
16 16
17define ('MODE_DEMO', FALSE);
17define ('ABS_PATH', 'assets/'); 18define ('ABS_PATH', 'assets/');
18define ('CONVERT_LINKS_FOOTNOTES', TRUE); 19define ('CONVERT_LINKS_FOOTNOTES', TRUE);
19define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE); 20define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE);
diff --git a/inc/store/sqlite.class.php b/inc/store/sqlite.class.php
index 4bfbb29e..21081608 100644
--- a/inc/store/sqlite.class.php
+++ b/inc/store/sqlite.class.php
@@ -74,6 +74,13 @@ class Sqlite extends Store {
74 return isset($pass[0]['value']) ? $pass[0]['value'] : FALSE; 74 return isset($pass[0]['value']) ? $pass[0]['value'] : FALSE;
75 } 75 }
76 76
77 public function updatePassword($password)
78 {
79 $sql_update = "UPDATE config SET value=? WHERE name='password'";
80 $params_update = array($password);
81 $query = $this->executeQuery($sql_update, $params_update);
82 }
83
77 private function executeQuery($sql, $params) { 84 private function executeQuery($sql, $params) {
78 try 85 try
79 { 86 {