1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-09-15 18:57:05 +00:00

add install script after composer install

This commit is contained in:
Nicolas Lœuillet 2015-01-21 14:45:39 +01:00
parent 00fcfd299b
commit 19875ef0da
16 changed files with 89 additions and 913 deletions

View file

@ -1,13 +1,13 @@
<?php
if (!file_exists(__DIR__ . '/config/config.inc.php')) {
die('wallabag seems to be not installed. Please execute ./bin/install before.');
}
// PHP 5.3 minimum
if (version_compare(PHP_VERSION, '5.3.3', '<')) {
die('This software require PHP 5.3.3 minimum');
}
// Short tags must be enabled for PHP < 5.4
if (version_compare(PHP_VERSION, '5.4.0', '<')) {
if (! ini_get('short_open_tag')) {
die('This software require to have short tags enabled, check your php.ini => "short_open_tag = On"');
}

View file

@ -1,9 +0,0 @@
<?php
// install folder still present, need to install wallabag
// if (is_dir('install')) {
// require('install/index.php');
// exit;
// }

View file

@ -12,9 +12,9 @@ define('ROOT', dirname(__FILE__) . '/../..');
require_once ROOT . '/vendor/autoload.php';
# system configuration; database credentials et caetera
require_once dirname(__FILE__) . '/config.inc.php';
require_once dirname(__FILE__) . '/config.inc.default.php';
# system configuration
require_once __DIR__ . '/config.inc.php';
require_once __DIR__ . '/config.inc.default.php';
if (!ini_get('date.timezone') || !@date_default_timezone_set(ini_get('date.timezone'))) {
date_default_timezone_set('UTC');

View file

@ -1,2 +0,0 @@
Order deny,allow
Deny from all

Binary file not shown.

Binary file not shown.