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 /inc | |
parent | 1c182b6c9d74875054dc8efe75564ceab1bc1abe (diff) | |
download | wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.gz wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.tar.zst wallabag-d178419c66fb1950aee7dc8e012c35f12f2a44bc.zip |
README, CREDITS & chmod
Diffstat (limited to 'inc')
-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 |
7 files changed, 7 insertions, 6 deletions
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 | |||