blob: 0612b1dca8e3e1a83c4a86bbce50640f963a8c07 (
plain)
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
|
<?php
chdir('..');
require 'vendor/autoload.php';
require 'lib/Savant.php';
require 'lib/config.php';
require 'lib/helpers.php';
require 'lib/markdown.php';
// Configure the Savant plugin
\Slim\Extras\Views\Savant::$savantDirectory = 'vendor/saltybeagle/savant3';
\Slim\Extras\Views\Savant::$savantOptions = array('template_path' => 'views');
// Create a new app object with the Savant view renderer
$app = new \Slim\Slim(array(
'view' => new \Slim\Extras\Views\Savant()
));
require 'controllers/auth.php';
require 'controllers/controllers.php';
session_name('indiepost');
session_set_cookie_params(86400*30);
session_start();
$app->run();
|