diff options
author | nicosomb <nicolas@loeuillet.org> | 2013-04-17 15:32:57 +0200 |
---|---|---|
committer | nicosomb <nicolas@loeuillet.org> | 2013-04-17 15:32:57 +0200 |
commit | d178419c66fb1950aee7dc8e012c35f12f2a44bc (patch) | |
tree | e7bf5bde7f6de45824b3b9a4a944f524dac5f1da | |
parent | 1c182b6c9d74875054dc8efe75564ceab1bc1abe (diff) | |
download | wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.gz wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.zst wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.zip |
README, CREDITS & chmod
-rw-r--r-- | CREDITS | 1 | ||||
-rw-r--r--[-rwxr-xr-x] | README.md | 9 | ||||
-rw-r--r--[-rwxr-xr-x] | img/checkmark-off.png | bin | 277 -> 277 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/checkmark-on.png | bin | 235 -> 235 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/down.png | bin | 216 -> 216 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/remove.png | bin | 252 -> 252 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/star-off.png | bin | 314 -> 314 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/star-on.png | bin | 281 -> 281 bytes | |||
-rw-r--r--[-rwxr-xr-x] | img/up.png | bin | 212 -> 212 bytes | |||
-rw-r--r--[-rwxr-xr-x] | inc/Encoding.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | inc/JSLikeHTMLElement.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | inc/Readability.php | 0 | ||||
-rw-r--r-- | inc/config.php | 7 | ||||
-rw-r--r-- | inc/db.php | 6 | ||||
-rw-r--r--[-rwxr-xr-x] | inc/functions.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | inc/rain.tpl.class.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | index.php | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | tpl/footer.html | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | tpl/view.html | 0 | ||||
-rw-r--r--[-rwxr-xr-x] | view.php | 2 |
20 files changed, 18 insertions, 7 deletions
@@ -11,3 +11,4 @@ poche is developed by Nicolas Lœuillet under the Do What the Fuck You Want to P | |||
11 | Contributors : | 11 | Contributors : |
12 | Nicolas Lœuillet aka nico_somb | 12 | Nicolas Lœuillet aka nico_somb |
13 | Tom.C. aka tmos | 13 | Tom.C. aka tmos |
14 | PeaceCopathe \ No newline at end of file | ||
@@ -12,12 +12,21 @@ To get news from poche, [follow us on twitter](http://twitter.com/getpoche). | |||
12 | ## Usage | 12 | ## Usage |
13 | You can easily add a "poched" page with the bookmarklet. | 13 | You can easily add a "poched" page with the bookmarklet. |
14 | 14 | ||
15 | poche save the entire content of a poched links : text and pictures are stored on your server. | ||
16 | |||
15 | You can : | 17 | You can : |
16 | * read a page in a comfortable reading view | 18 | * read a page in a comfortable reading view |
17 | * archive a link | 19 | * archive a link |
18 | * put a link in favorite | 20 | * put a link in favorite |
19 | * delete a link | 21 | * delete a link |
20 | 22 | ||
23 | ## Requirements & installation | ||
24 | You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server. | ||
25 | |||
26 | Get the [latest version](https://github.com/nicosomb/poche) of poche on github. Unzip it and upload it on your server. poche must have write access on assets, cache and db directories. | ||
27 | |||
28 | That's all, **poche works** ! | ||
29 | |||
21 | ## Security | 30 | ## Security |
22 | You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : | 31 | You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : |
23 | ```apache | 32 | ```apache |
diff --git a/img/checkmark-off.png b/img/checkmark-off.png index 3db5a06d..3db5a06d 100755..100644 --- a/img/checkmark-off.png +++ b/img/checkmark-off.png | |||
Binary files differ | |||
diff --git a/img/checkmark-on.png b/img/checkmark-on.png index cd3abb2c..cd3abb2c 100755..100644 --- a/img/checkmark-on.png +++ b/img/checkmark-on.png | |||
Binary files differ | |||
diff --git a/img/down.png b/img/down.png index b9d536a7..b9d536a7 100755..100644 --- a/img/down.png +++ b/img/down.png | |||
Binary files differ | |||
diff --git a/img/remove.png b/img/remove.png index f8ad56a3..f8ad56a3 100755..100644 --- a/img/remove.png +++ b/img/remove.png | |||
Binary files differ | |||
diff --git a/img/star-off.png b/img/star-off.png index 6a0133a7..6a0133a7 100755..100644 --- a/img/star-off.png +++ b/img/star-off.png | |||
Binary files differ | |||
diff --git a/img/star-on.png b/img/star-on.png index a9f96eaa..a9f96eaa 100755..100644 --- a/img/star-on.png +++ b/img/star-on.png | |||
Binary files differ | |||
diff --git a/img/up.png b/img/up.png index 954a8c0a..954a8c0a 100755..100644 --- a/img/up.png +++ b/img/up.png | |||
Binary files differ | |||
diff --git a/inc/Encoding.php b/inc/Encoding.php index 577763b4..577763b4 100755..100644 --- a/inc/Encoding.php +++ b/inc/Encoding.php | |||
diff --git a/inc/JSLikeHTMLElement.php b/inc/JSLikeHTMLElement.php index 0557205f..0557205f 100755..100644 --- a/inc/JSLikeHTMLElement.php +++ b/inc/JSLikeHTMLElement.php | |||
diff --git a/inc/Readability.php b/inc/Readability.php index c50bf2ef..c50bf2ef 100755..100644 --- a/inc/Readability.php +++ b/inc/Readability.php | |||
diff --git a/inc/config.php b/inc/config.php index 51a25d36..a7904def 100644 --- a/inc/config.php +++ b/inc/config.php | |||
@@ -8,9 +8,12 @@ | |||
8 | * @license http://www.wtfpl.net/ see COPYING file | 8 | * @license http://www.wtfpl.net/ see COPYING file |
9 | */ | 9 | */ |
10 | 10 | ||
11 | if(!is_dir('db/')){mkdir('db/',0705);} | 11 | if (!is_dir('db/')) { |
12 | @mkdir('db/',0705); | ||
13 | } | ||
14 | |||
12 | define ('DB_PATH', 'sqlite:./db/poche.sqlite'); | 15 | define ('DB_PATH', 'sqlite:./db/poche.sqlite'); |
13 | define ('ABS_PATH', 'archiveImg/'); | 16 | define ('ABS_PATH', 'assets/'); |
14 | 17 | ||
15 | include 'db.php'; | 18 | include 'db.php'; |
16 | include 'functions.php'; | 19 | include 'functions.php'; |
@@ -10,15 +10,13 @@ | |||
10 | 10 | ||
11 | class db { | 11 | class db { |
12 | var $handle; | 12 | var $handle; |
13 | function __construct($path) | 13 | function __construct($path) { |
14 | { | ||
15 | $this->handle = new PDO($path); | 14 | $this->handle = new PDO($path); |
16 | $this->handle->exec('CREATE TABLE IF NOT EXISTS "entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "title" VARCHAR, "url" VARCHAR UNIQUE , "is_read" INTEGER DEFAULT 0, "is_fav" INTEGER DEFAULT 0, "content" BLOB)'); | 15 | $this->handle->exec('CREATE TABLE IF NOT EXISTS "entries" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL UNIQUE , "title" VARCHAR, "url" VARCHAR UNIQUE , "is_read" INTEGER DEFAULT 0, "is_fav" INTEGER DEFAULT 0, "content" BLOB)'); |
17 | $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); | 16 | $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); |
18 | } | 17 | } |
19 | 18 | ||
20 | public function getHandle() | 19 | public function getHandle() { |
21 | { | ||
22 | return $this->handle; | 20 | return $this->handle; |
23 | } | 21 | } |
24 | } \ No newline at end of file | 22 | } \ No newline at end of file |
diff --git a/inc/functions.php b/inc/functions.php index 37abafd4..37abafd4 100755..100644 --- a/inc/functions.php +++ b/inc/functions.php | |||
diff --git a/inc/rain.tpl.class.php b/inc/rain.tpl.class.php index ea83b2c1..ea83b2c1 100755..100644 --- a/inc/rain.tpl.class.php +++ b/inc/rain.tpl.class.php | |||
diff --git a/tpl/footer.html b/tpl/footer.html index 04bedabc..04bedabc 100755..100644 --- a/tpl/footer.html +++ b/tpl/footer.html | |||
diff --git a/tpl/view.html b/tpl/view.html index d24d26ed..d24d26ed 100755..100644 --- a/tpl/view.html +++ b/tpl/view.html | |||
@@ -20,7 +20,7 @@ if(!empty($id)) { | |||
20 | $tpl->assign('id', $entry[0]['id']); | 20 | $tpl->assign('id', $entry[0]['id']); |
21 | $tpl->assign('url', $entry[0]['url']); | 21 | $tpl->assign('url', $entry[0]['url']); |
22 | $tpl->assign('title', $entry[0]['title']); | 22 | $tpl->assign('title', $entry[0]['title']); |
23 | $tpl->assign('content', gzinflate(base64_decode($entry[0]['content']))); | 23 | $tpl->assign('content', $entry[0]['content']); |
24 | $tpl->assign('is_fav', $entry[0]['is_fav']); | 24 | $tpl->assign('is_fav', $entry[0]['is_fav']); |
25 | $tpl->assign('is_read', $entry[0]['is_read']); | 25 | $tpl->assign('is_read', $entry[0]['is_read']); |
26 | $tpl->assign('load_all_js', 0); | 26 | $tpl->assign('load_all_js', 0); |