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