diff options
Diffstat (limited to 'inc')
-rw-r--r-- | inc/config.php | 1 | ||||
-rw-r--r-- | inc/store/sqlite.class.php | 7 |
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 | ||
17 | define ('MODE_DEMO', FALSE); | ||
17 | define ('ABS_PATH', 'assets/'); | 18 | define ('ABS_PATH', 'assets/'); |
18 | define ('CONVERT_LINKS_FOOTNOTES', TRUE); | 19 | define ('CONVERT_LINKS_FOOTNOTES', TRUE); |
19 | define ('REVERT_FORCED_PARAGRAPH_ELEMENTS',FALSE); | 20 | define ('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 | { |