diff options
-rwxr-xr-x | README.md | 10 | ||||
-rwxr-xr-x | db/poche.sqlite (renamed from poche.sqlite) | bin | 163840 -> 163840 bytes | |||
-rwxr-xr-x | index.php | 2 |
3 files changed, 11 insertions, 1 deletions
@@ -6,6 +6,16 @@ Abandon Pocket, Instapaper and other Readability service : adopt poche. It is th | |||
6 | 6 | ||
7 | ... | 7 | ... |
8 | 8 | ||
9 | ## Security | ||
10 | |||
11 | You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : | ||
12 | ```apache | ||
13 | <Files ~ "\.sqlite$"> | ||
14 | Order allow,deny | ||
15 | Deny from all | ||
16 | </Files> | ||
17 | ``` | ||
18 | |||
9 | ## License | 19 | ## License |
10 | Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> | 20 | Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> |
11 | This work is free. You can redistribute it and/or modify it under the | 21 | This work is free. You can redistribute it and/or modify it under the |
diff --git a/poche.sqlite b/db/poche.sqlite index 9ae63ec0..9ae63ec0 100755 --- a/poche.sqlite +++ b/db/poche.sqlite | |||
Binary files differ | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | try | 26 | try |
27 | { | 27 | { |
28 | $db_handle = new PDO('sqlite:poche.sqlite'); | 28 | $db_handle = new PDO('sqlite:db/poche.sqlite'); |
29 | $db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | 29 | $db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
30 | } | 30 | } |
31 | catch (Exception $e) | 31 | catch (Exception $e) |