aboutsummaryrefslogtreecommitdiffhomepage
path: root/web/index.php
blob: 84e49eb1c8ff2bea87de9cc2ea3e083940d916ee (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
/**
 * wallabag, self hostable application allowing you to not miss any content anymore
 *
 * @category   wallabag
 * @author     Nicolas Lœuillet <nicolas@loeuillet.org>
 * @copyright  2013
 * @license    http://opensource.org/licenses/MIT see COPYING file
 */

define ('WALLABAG', '2.0.0-alpha');

use Wallabag\Wallabag\Wallabag;

require_once '../app/check_essentials.php';
require_once '../app/check_setup.php';
require_once '../app/config/global.inc.php';

// Check if /cache is writeable
if (! is_writable(CACHE)) {
    die('The directory ' . CACHE . ' must be writeable by your web server user');
}

Session::$sessionName = 'wallabag';
Session::init();

// Let's rock !
$wallabag = new Wallabag();
$wallabag->run();