diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/cache/.gitignore | 1 | ||||
-rw-r--r-- | app/cache/.htaccess | 2 | ||||
-rw-r--r-- | app/check_essentials.php | 14 | ||||
-rwxr-xr-x | app/check_setup.php | 9 | ||||
-rwxr-xr-x | app/config/config.inc.default.php | 78 | ||||
-rwxr-xr-x | app/config/global.inc.php | 25 | ||||
-rw-r--r-- | app/db/.gitignore | 0 | ||||
-rw-r--r-- | app/db/.htaccess | 2 | ||||
-rwxr-xr-x | app/db/poche.sqlite | bin | 0 -> 491520 bytes |
9 files changed, 131 insertions, 0 deletions
diff --git a/app/cache/.gitignore b/app/cache/.gitignore new file mode 100644 index 00000000..35c8ca2e --- /dev/null +++ b/app/cache/.gitignore | |||
@@ -0,0 +1 @@ | |||
!.htaccess | |||
diff --git a/app/cache/.htaccess b/app/cache/.htaccess new file mode 100644 index 00000000..93169e4e --- /dev/null +++ b/app/cache/.htaccess | |||
@@ -0,0 +1,2 @@ | |||
1 | Order deny,allow | ||
2 | Deny from all | ||
diff --git a/app/check_essentials.php b/app/check_essentials.php new file mode 100644 index 00000000..a47cd5a8 --- /dev/null +++ b/app/check_essentials.php | |||
@@ -0,0 +1,14 @@ | |||
1 | <?php | ||
2 | |||
3 | // PHP 5.3 minimum | ||
4 | if (version_compare(PHP_VERSION, '5.3.3', '<')) { | ||
5 | die('This software require PHP 5.3.3 minimum'); | ||
6 | } | ||
7 | |||
8 | // Short tags must be enabled for PHP < 5.4 | ||
9 | if (version_compare(PHP_VERSION, '5.4.0', '<')) { | ||
10 | |||
11 | if (! ini_get('short_open_tag')) { | ||
12 | die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"'); | ||
13 | } | ||
14 | } \ No newline at end of file | ||
diff --git a/app/check_setup.php b/app/check_setup.php new file mode 100755 index 00000000..57495f2c --- /dev/null +++ b/app/check_setup.php | |||
@@ -0,0 +1,9 @@ | |||
1 | <?php | ||
2 | |||
3 | |||
4 | |||
5 | // install folder still present, need to install wallabag | ||
6 | // if (is_dir('install')) { | ||
7 | // require('install/index.php'); | ||
8 | // exit; | ||
9 | // } \ No newline at end of file | ||
diff --git a/app/config/config.inc.default.php b/app/config/config.inc.default.php new file mode 100755 index 00000000..09095235 --- /dev/null +++ b/app/config/config.inc.default.php | |||
@@ -0,0 +1,78 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * wallabag, self hostable application allowing you to not miss any content anymore | ||
4 | * | ||
5 | * @category wallabag | ||
6 | * @author Nicolas LÅ“uillet <nicolas@loeuillet.org> | ||
7 | * @copyright 2013 | ||
8 | * @license http://opensource.org/licenses/MIT see COPYING file | ||
9 | */ | ||
10 | |||
11 | @define ('SALT', ''); # put a strong string here | ||
12 | @define ('LANG', 'en_EN.utf8'); | ||
13 | |||
14 | @define ('STORAGE', 'sqlite'); # postgres, mysql or sqlite | ||
15 | |||
16 | @define ('STORAGE_SQLITE', ROOT . '/app/db/poche.sqlite'); # if you are using sqlite, where the database file is located | ||
17 | |||
18 | # only for postgres & mysql | ||
19 | @define ('STORAGE_SERVER', 'localhost'); | ||
20 | @define ('STORAGE_DB', 'poche'); | ||
21 | @define ('STORAGE_USER', 'poche'); | ||
22 | @define ('STORAGE_PASSWORD', 'poche'); | ||
23 | |||
24 | ################################################################################# | ||
25 | # Do not trespass unless you know what you are doing | ||
26 | ################################################################################# | ||
27 | // Change this if http is running on nonstandard port - i.e is behind cache proxy | ||
28 | @define ('HTTP_PORT', 80); | ||
29 | |||
30 | // Change this if not using the standart port for SSL - i.e you server is behind sslh | ||
31 | @define ('SSL_PORT', 443); | ||
32 | |||
33 | @define ('MODE_DEMO', FALSE); | ||
34 | @define ('DEBUG_POCHE', FALSE); | ||
35 | |||
36 | //default level of error reporting in application. Developers should override it in their config.inc.php: set to E_ALL. | ||
37 | @define ('ERROR_REPORTING', E_ALL & ~E_NOTICE); | ||
38 | |||
39 | @define ('DOWNLOAD_PICTURES', FALSE); # This can slow down the process of adding articles | ||
40 | @define ('REGENERATE_PICTURES_QUALITY', 75); | ||
41 | @define ('CONVERT_LINKS_FOOTNOTES', FALSE); | ||
42 | @define ('REVERT_FORCED_PARAGRAPH_ELEMENTS', FALSE); | ||
43 | @define ('SHARE_TWITTER', TRUE); | ||
44 | @define ('SHARE_MAIL', TRUE); | ||
45 | @define ('SHARE_SHAARLI', FALSE); | ||
46 | @define ('SHAARLI_URL', 'http://myshaarliurl.com'); | ||
47 | @define ('SHARE_DIASPORA', FALSE); | ||
48 | @define ('DIASPORA_URL', 'http://diasporapod.com'); # Don't add a / at the end | ||
49 | @define ('FLATTR', TRUE); | ||
50 | @define ('FLATTR_API', 'https://api.flattr.com/rest/v2/things/lookup/?url='); | ||
51 | @define ('NOT_FLATTRABLE', '0'); | ||
52 | @define ('FLATTRABLE', '1'); | ||
53 | @define ('FLATTRED', '2'); | ||
54 | @define ('CARROT', FALSE); | ||
55 | |||
56 | // ebook | ||
57 | @define ('EPUB', TRUE); | ||
58 | @define ('MOBI', FALSE); | ||
59 | @define ('PDF', FALSE); | ||
60 | |||
61 | // display or not print link in article view | ||
62 | @define ('SHOW_PRINTLINK', '1'); | ||
63 | // display or not percent of read in article view. Affects only default theme. | ||
64 | @define ('SHOW_READPERCENT', '1'); | ||
65 | @define ('ABS_PATH', ROOT . '/app/assets/'); | ||
66 | |||
67 | @define ('DEFAULT_THEME', 'baggy'); | ||
68 | |||
69 | @define ('THEME', ROOT . '/themes'); | ||
70 | @define ('LOCALE', ROOT . '/src/Wallabag/Wallabag/Resources/translations/locale'); | ||
71 | @define ('CACHE', ROOT . '/app/cache'); | ||
72 | |||
73 | @define ('PAGINATION', '12'); | ||
74 | |||
75 | //limit for download of articles during import | ||
76 | @define ('IMPORT_LIMIT', 5); | ||
77 | //delay between downloads (in sec) | ||
78 | @define ('IMPORT_DELAY', 5); | ||
diff --git a/app/config/global.inc.php b/app/config/global.inc.php new file mode 100755 index 00000000..4df68ea9 --- /dev/null +++ b/app/config/global.inc.php | |||
@@ -0,0 +1,25 @@ | |||
1 | <?php | ||
2 | /** | ||
3 | * wallabag, self hostable application allowing you to not miss any content anymore | ||
4 | * | ||
5 | * @category wallabag | ||
6 | * @author Nicolas LÅ“uillet <nicolas@loeuillet.org> | ||
7 | * @copyright 2013 | ||
8 | * @license http://opensource.org/licenses/MIT see COPYING file | ||
9 | */ | ||
10 | |||
11 | define('ROOT', dirname(__FILE__) . '/../..'); | ||
12 | |||
13 | require_once ROOT . '/vendor/autoload.php'; | ||
14 | |||
15 | # system configuration; database credentials et caetera | ||
16 | require_once dirname(__FILE__) . '/config.inc.php'; | ||
17 | require_once dirname(__FILE__) . '/config.inc.default.php'; | ||
18 | |||
19 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | ||
20 | date_default_timezone_set('UTC'); | ||
21 | } | ||
22 | |||
23 | if (defined('ERROR_REPORTING')) { | ||
24 | error_reporting(ERROR_REPORTING); | ||
25 | } \ No newline at end of file | ||
diff --git a/app/db/.gitignore b/app/db/.gitignore new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/app/db/.gitignore | |||
diff --git a/app/db/.htaccess b/app/db/.htaccess new file mode 100644 index 00000000..93169e4e --- /dev/null +++ b/app/db/.htaccess | |||
@@ -0,0 +1,2 @@ | |||
1 | Order deny,allow | ||
2 | Deny from all | ||
diff --git a/app/db/poche.sqlite b/app/db/poche.sqlite new file mode 100755 index 00000000..3d1a8e43 --- /dev/null +++ b/app/db/poche.sqlite | |||
Binary files differ | |||