You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
643 B

8 years ago
  1. <?php
  2. chdir('..');
  3. require 'vendor/autoload.php';
  4. require 'lib/Savant.php';
  5. require 'lib/config.php';
  6. require 'lib/helpers.php';
  7. require 'lib/markdown.php';
  8. // Configure the Savant plugin
  9. \Slim\Extras\Views\Savant::$savantDirectory = 'vendor/saltybeagle/savant3';
  10. \Slim\Extras\Views\Savant::$savantOptions = array('template_path' => 'views');
  11. // Create a new app object with the Savant view renderer
  12. $app = new \Slim\Slim(array(
  13. 'view' => new \Slim\Extras\Views\Savant()
  14. ));
  15. require 'controllers/auth.php';
  16. require 'controllers/controllers.php';
  17. session_name('quill');
  18. session_set_cookie_params(86400*30);
  19. session_start();
  20. $app->run();