déplacement de la base de données et explication dans le README pour sécuriser ce fichier

This commit is contained in:
nicosomb 2013-04-04 20:12:50 +02:00
parent 5917f41972
commit a590ea55c2
3 changed files with 11 additions and 1 deletions

View File

@ -6,6 +6,16 @@ Abandon Pocket, Instapaper and other Readability service : adopt poche. It is th
...
## Security
You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition :
```apache
<Files ~ "\.sqlite$">
Order allow,deny
Deny from all
</Files>
```
## License
Copyright © 2010-2013 Nicolas Lœuillet <nicolas@loeuillet.org>
This work is free. You can redistribute it and/or modify it under the

View File

@ -25,7 +25,7 @@
try
{
$db_handle = new PDO('sqlite:poche.sqlite');
$db_handle = new PDO('sqlite:db/poche.sqlite');
$db_handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
}
catch (Exception $e)