aboutsummaryrefslogtreecommitdiffhomepage
path: root/app/check_essentials.php
diff options
context:
space:
mode:
authorNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-21 14:45:39 +0100
committerNicolas LÅ“uillet <nicolas@loeuillet.org>2015-01-21 14:45:39 +0100
commit19875ef0dad9999f91e6f8d780756e402b5e6722 (patch)
tree169b887df1bf71f7ceb0be54447b11be8765e431 /app/check_essentials.php
parent00fcfd299b7a1aa5177c97d2b13c0d9d587678e5 (diff)
downloadwallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.tar.gz
wallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.tar.zst
wallabag-19875ef0dad9999f91e6f8d780756e402b5e6722.zip
add install script after composer install
Diffstat (limited to 'app/check_essentials.php')
-rw-r--r--app/check_essentials.php6
1 files changed, 3 insertions, 3 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
2if (!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
4if (version_compare(PHP_VERSION, '5.3.3', '<')) { 6if (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
9if (version_compare(PHP_VERSION, '5.4.0', '<')) { 10if (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 }