From a590ea55c2422cd0b11fb60e64275ad7e4f6bd26 Mon Sep 17 00:00:00 2001 From: nicosomb Date: Thu, 4 Apr 2013 20:12:50 +0200 Subject: =?UTF-8?q?d=C3=A9placement=20de=20la=20base=20de=20donn=C3=A9es?= =?UTF-8?q?=20et=20explication=20dans=20le=20README=20pour=20s=C3=A9curise?= =?UTF-8?q?r=20ce=20fichier?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 ++++++++++ db/poche.sqlite | Bin 0 -> 163840 bytes index.php | 2 +- poche.sqlite | Bin 163840 -> 0 bytes 4 files changed, 11 insertions(+), 1 deletion(-) create mode 100755 db/poche.sqlite delete mode 100755 poche.sqlite 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 ... +## Security + +You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : +```apache + + Order allow,deny + Deny from all + +``` + ## License Copyright © 2010-2013 Nicolas Lœuillet This work is free. You can redistribute it and/or modify it under the diff --git a/db/poche.sqlite b/db/poche.sqlite new file mode 100755 index 00000000..9ae63ec0 Binary files /dev/null and b/db/poche.sqlite differ diff --git a/index.php b/index.php index be1ebef9..a27f1993 100755 --- a/index.php +++ b/index.php @@ -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) diff --git a/poche.sqlite b/poche.sqlite deleted file mode 100755 index 9ae63ec0..00000000 Binary files a/poche.sqlite and /dev/null differ -- cgit v1.2.3