From 3f82ec2f757c62c25a31b461e0a0cddc14886117 Mon Sep 17 00:00:00 2001 From: Aaron Parecki Date: Sat, 24 May 2014 14:41:21 -0700 Subject: Working app! Copied signin logic from OwnYourGram. New "post" interface for writing a simple text post. Also supports browser geolocation. --- public/index.php | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 public/index.php (limited to 'public/index.php') diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..0612b1d --- /dev/null +++ b/public/index.php @@ -0,0 +1,25 @@ + '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(); -- cgit v1.2.3