]> git.immae.eu Git - github/wallabag/wallabag.git/blame - web/index.php
add install script after composer install
[github/wallabag/wallabag.git] / web / index.php
CommitLineData
6ad93dff
NL
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
11define ('WALLABAG', '2.0.0-alpha');
12
79e051a1
NL
13use Wallabag\Wallabag\Wallabag;
14
6ad93dff 15require_once '../app/check_essentials.php';
6ad93dff
NL
16require_once '../app/config/global.inc.php';
17
19875ef0 18// Check if /cache is writable
6ad93dff 19if (! is_writable(CACHE)) {
19875ef0 20 die('The directory ' . CACHE . ' must be writable by your web server user');
6ad93dff
NL
21}
22
23Session::$sessionName = 'wallabag';
24Session::init();
25
26// Let's rock !
79e051a1 27$wallabag = new Wallabag();
6ad93dff 28$wallabag->run();