diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-21 14:45:39 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-21 14:45:39 +0100 |
commit | 19875ef0dad9999f91e6f8d780756e402b5e6722 (patch) | |
tree | 169b887df1bf71f7ceb0be54447b11be8765e431 /app | |
parent | 00fcfd299b7a1aa5177c97d2b13c0d9d587678e5 (diff) | |
download | wallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.tar.gz wallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.tar.zst wallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.zip |
add install script after composer install
Diffstat (limited to 'app')
-rw-r--r-- | app/check_essentials.php | 6 | ||||
-rwxr-xr-x | app/check_setup.php | 9 | ||||
-rwxr-xr-x | app/config/global.inc.php | 6 | ||||
-rw-r--r-- | app/db/.htaccess | 2 | ||||
-rwxr-xr-x | app/db/poche.sqlite | bin | 491520 -> 0 bytes | |||
-rwxr-xr-x | app/db/poche.sqlite3 | bin | 491520 -> 0 bytes |
6 files changed, 6 insertions, 17 deletions
diff --git a/app/check_essentials.php b/app/check_essentials.php index a47cd5a8..073b6032 100644 --- a/app/check_essentials.php +++ b/app/check_essentials.php | |||
@@ -1,13 +1,13 @@ | |||
1 | <?php | 1 | <?php |
2 | if (!file_exists(__DIR__ . '/config/config.inc.php')) { | ||
3 | die('wallabag seems to be not installed. Please execute ./bin/install before.'); | ||
4 | } | ||
2 | 5 | ||
3 | // PHP 5.3 minimum | ||
4 | if (version_compare(PHP_VERSION, '5.3.3', '<')) { | 6 | if (version_compare(PHP_VERSION, '5.3.3', '<')) { |
5 | die('This software require PHP 5.3.3 minimum'); | 7 | die('This software require PHP 5.3.3 minimum'); |
6 | } | 8 | } |
7 | 9 | ||
8 | // Short tags must be enabled for PHP < 5.4 | ||
9 | if (version_compare(PHP_VERSION, '5.4.0', '<')) { | 10 | if (version_compare(PHP_VERSION, '5.4.0', '<')) { |
10 | |||
11 | if (! ini_get('short_open_tag')) { | 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"'); | 12 | die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"'); |
13 | } | 13 | } |
diff --git a/app/check_setup.php b/app/check_setup.php deleted file mode 100755 index 57495f2c..00000000 --- a/app/check_setup.php +++ /dev/null | |||
@@ -1,9 +0,0 @@ | |||
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/global.inc.php b/app/config/global.inc.php index 4df68ea9..59db5aa1 100755 --- a/app/config/global.inc.php +++ b/app/config/global.inc.php | |||
@@ -12,9 +12,9 @@ define('ROOT', dirname(__FILE__) . '/../..'); | |||
12 | 12 | ||
13 | require_once ROOT . '/vendor/autoload.php'; | 13 | require_once ROOT . '/vendor/autoload.php'; |
14 | 14 | ||
15 | # system configuration; database credentials et caetera | 15 | # system configuration |
16 | require_once dirname(__FILE__) . '/config.inc.php'; | 16 | require_once __DIR__ . '/config.inc.php'; |
17 | require_once dirname(__FILE__) . '/config.inc.default.php'; | 17 | require_once __DIR__ . '/config.inc.default.php'; |
18 | 18 | ||
19 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { | 19 | if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) { |
20 | date_default_timezone_set('UTC'); | 20 | date_default_timezone_set('UTC'); |
diff --git a/app/db/.htaccess b/app/db/.htaccess deleted file mode 100644 index 93169e4e..00000000 --- a/app/db/.htaccess +++ /dev/null | |||
@@ -1,2 +0,0 @@ | |||
1 | Order deny,allow | ||
2 | Deny from all | ||
diff --git a/app/db/poche.sqlite b/app/db/poche.sqlite deleted file mode 100755 index 9e9e52cb..00000000 --- a/app/db/poche.sqlite +++ /dev/null | |||
Binary files differ | |||
diff --git a/app/db/poche.sqlite3 b/app/db/poche.sqlite3 deleted file mode 100755 index 3c80dc22..00000000 --- a/app/db/poche.sqlite3 +++ /dev/null | |||
Binary files differ | |||