aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornicosomb <nicolas@loeuillet.org>2013-04-17 15:32:57 +0200
committernicosomb <nicolas@loeuillet.org>2013-04-17 15:32:57 +0200
commitd178419c66fb1950aee7dc8e012c35f12f2a44bc (patch)
treee7bf5bde7f6de45824b3b9a4a944f524dac5f1da
parent1c182b6c9d74875054dc8efe75564ceab1bc1abe (diff)
downloadwallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.gz
wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.zst
wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.zip
README, CREDITS & chmod
-rw-r--r--CREDITS1
-rw-r--r--[-rwxr-xr-x]README.md9
-rw-r--r--[-rwxr-xr-x]img/checkmark-off.pngbin277 -> 277 bytes
-rw-r--r--[-rwxr-xr-x]img/checkmark-on.pngbin235 -> 235 bytes
-rw-r--r--[-rwxr-xr-x]img/down.pngbin216 -> 216 bytes
-rw-r--r--[-rwxr-xr-x]img/remove.pngbin252 -> 252 bytes
-rw-r--r--[-rwxr-xr-x]img/star-off.pngbin314 -> 314 bytes
-rw-r--r--[-rwxr-xr-x]img/star-on.pngbin281 -> 281 bytes
-rw-r--r--[-rwxr-xr-x]img/up.pngbin212 -> 212 bytes
-rw-r--r--[-rwxr-xr-x]inc/Encoding.php0
-rw-r--r--[-rwxr-xr-x]inc/JSLikeHTMLElement.php0
-rw-r--r--[-rwxr-xr-x]inc/Readability.php0
-rw-r--r--inc/config.php7
-rw-r--r--inc/db.php6
-rw-r--r--[-rwxr-xr-x]inc/functions.php0
-rw-r--r--[-rwxr-xr-x]inc/rain.tpl.class.php0
-rw-r--r--[-rwxr-xr-x]index.php0
-rw-r--r--[-rwxr-xr-x]tpl/footer.html0
-rw-r--r--[-rwxr-xr-x]tpl/view.html0
-rw-r--r--[-rwxr-xr-x]view.php2
20 files changed, 18 insertions, 7 deletions
diff --git a/CREDITS b/CREDITS
index 6df488ee..8a36be4b 100644
--- a/CREDITS
+++ b/CREDITS
@@ -11,3 +11,4 @@ poche is developed by Nicolas Lœuillet under the Do What the Fuck You Want to P
11Contributors : 11Contributors :
12Nicolas Lœuillet aka nico_somb 12Nicolas Lœuillet aka nico_somb
13Tom.C. aka tmos 13Tom.C. aka tmos
14PeaceCopathe \ No newline at end of file
diff --git a/README.md b/README.md
index c678d11c..1015085a 100755..100644
--- a/README.md
+++ b/README.md
@@ -12,12 +12,21 @@ To get news from poche, [follow us on twitter](http://twitter.com/getpoche).
12## Usage 12## Usage
13You can easily add a "poched" page with the bookmarklet. 13You can easily add a "poched" page with the bookmarklet.
14 14
15poche save the entire content of a poched links : text and pictures are stored on your server.
16
15You can : 17You 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
24You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server.
25
26Get 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
28That's all, **poche works** !
29
21## Security 30## Security
22You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition : 31You **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
11if(!is_dir('db/')){mkdir('db/',0705);} 11if (!is_dir('db/')) {
12 @mkdir('db/',0705);
13}
14
12define ('DB_PATH', 'sqlite:./db/poche.sqlite'); 15define ('DB_PATH', 'sqlite:./db/poche.sqlite');
13define ('ABS_PATH', 'archiveImg/'); 16define ('ABS_PATH', 'assets/');
14 17
15include 'db.php'; 18include 'db.php';
16include 'functions.php'; 19include 'functions.php';
diff --git a/inc/db.php b/inc/db.php
index a1674ea7..60d7c108 100644
--- a/inc/db.php
+++ b/inc/db.php
@@ -10,15 +10,13 @@
10 10
11class db { 11class 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/index.php b/index.php
index d0d008ed..d0d008ed 100755..100644
--- a/index.php
+++ b/index.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
diff --git a/view.php b/view.php
index 9aa9a445..9ba6f62d 100755..100644
--- a/view.php
+++ b/view.php
@@ -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);