aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rwxr-xr-xREADME.md10
-rwxr-xr-xdb/poche.sqlite (renamed from poche.sqlite)bin163840 -> 163840 bytes
-rwxr-xr-xindex.php2
3 files changed, 11 insertions, 1 deletions
diff --git a/README.md b/README.md
index e0712add..a1c7920f 100755
--- a/README.md
+++ b/README.md
@@ -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
11You **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
10Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org> 20Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org>
11This work is free. You can redistribute it and/or modify it under the 21This 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
diff --git a/index.php b/index.php
index be1ebef9..a27f1993 100755
--- a/index.php
+++ b/index.php
@@ -25,7 +25,7 @@
25 25
26try 26try
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}
31catch (Exception $e) 31catch (Exception $e)