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
673 B

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