]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
README, CREDITS & chmod
authornicosomb <nicolas@loeuillet.org>
Wed, 17 Apr 2013 13:32:57 +0000 (15:32 +0200)
committernicosomb <nicolas@loeuillet.org>
Wed, 17 Apr 2013 13:32:57 +0000 (15:32 +0200)
20 files changed:
CREDITS
README.md [changed mode: 0755->0644]
img/checkmark-off.png [changed mode: 0755->0644]
img/checkmark-on.png [changed mode: 0755->0644]
img/down.png [changed mode: 0755->0644]
img/remove.png [changed mode: 0755->0644]
img/star-off.png [changed mode: 0755->0644]
img/star-on.png [changed mode: 0755->0644]
img/up.png [changed mode: 0755->0644]
inc/Encoding.php [changed mode: 0755->0644]
inc/JSLikeHTMLElement.php [changed mode: 0755->0644]
inc/Readability.php [changed mode: 0755->0644]
inc/config.php
inc/db.php
inc/functions.php [changed mode: 0755->0644]
inc/rain.tpl.class.php [changed mode: 0755->0644]
index.php [changed mode: 0755->0644]
tpl/footer.html [changed mode: 0755->0644]
tpl/view.html [changed mode: 0755->0644]
view.php [changed mode: 0755->0644]

diff --git a/CREDITS b/CREDITS
index 6df488ee4ccabe9ff4885c151d6b1c0f4d871e4e..8a36be4b094634e83a99b7fbec55ae2c652a1f86 100644 (file)
--- 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
 Contributors :
 Nicolas LÅ“uillet aka nico_somb
 Tom.C. aka tmos
+PeaceCopathe
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
index c678d11..1015085
--- a/README.md
+++ b/README.md
@@ -12,12 +12,21 @@ To get news from poche, [follow us on twitter](http://twitter.com/getpoche).
 ## Usage
 You can easily add a "poched" page with the bookmarklet.
 
+poche save the entire content of a poched links : text and pictures are stored on your server.
+
 You can :
 * read a page in a comfortable reading view
 * archive a link
 * put a link in favorite
 * delete a link
 
+## Requirements & installation
+You have to install [sqlite for php](http://www.php.net/manual/en/book.sqlite.php) on your server.
+
+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.
+
+That's all, **poche works** !
+
 ## Security
 You **have** to protect your db/poche.sqlite file. Modify the virtual host of your website to add this condition :
 ```apache
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 51a25d369ef87abbfde3756b5452ea8a56041bbc..a7904def07d304065518af692bf4d910dd94ea2e 100644 (file)
@@ -8,9 +8,12 @@
  * @license    http://www.wtfpl.net/ see COPYING file
  */
 
-if(!is_dir('db/')){mkdir('db/',0705);}
+if (!is_dir('db/')) {
+    @mkdir('db/',0705);
+}
+
 define ('DB_PATH', 'sqlite:./db/poche.sqlite');
-define ('ABS_PATH', 'archiveImg/');
+define ('ABS_PATH', 'assets/');
 
 include 'db.php';
 include 'functions.php';
index a1674ea7565e3a251d1c882103b8937ea6c6fabf..60d7c108c0cfc29e479c2d235ab2940eb1d2ab8b 100644 (file)
 
 class db {
     var $handle;
-    function __construct($path) 
-    {
+    function __construct($path) {
         $this->handle = new PDO($path);
         $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)');
         $this->handle->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
     }
 
-    public function getHandle() 
-    {
+    public function getHandle() {
         return $this->handle;
     }
 }
\ No newline at end of file
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
old mode 100755 (executable)
new mode 100644 (file)
index 9aa9a44..9ba6f62
--- a/view.php
+++ b/view.php
@@ -20,7 +20,7 @@ if(!empty($id)) {
         $tpl->assign('id', $entry[0]['id']);
         $tpl->assign('url', $entry[0]['url']);
         $tpl->assign('title', $entry[0]['title']);
-        $tpl->assign('content', gzinflate(base64_decode($entry[0]['content'])));
+        $tpl->assign('content', $entry[0]['content']);
         $tpl->assign('is_fav', $entry[0]['is_fav']);
         $tpl->assign('is_read', $entry[0]['is_read']);
         $tpl->assign('load_all_js', 0);