aboutsummaryrefslogtreecommitdiff
path: root/index.php
diff options
context:
space:
mode:
authorKevin J Hoerr <kjhoerr@submelon.tech>2018-08-26 01:38:28 -0400
committerKevin Hoerr <kjhoerr@submelon.tech>2018-08-31 23:24:45 -0400
commit0965d62be00a7820f97284704dc71f37e661b412 (patch)
tree5a5c9d69062e24aa926eb30447c5ff27e0a65492 /index.php
parent1e3946f04b5b602d3869a285d897acb0ba2b3c35 (diff)
downloadaugust-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.gz
august-offensive-0965d62be00a7820f97284704dc71f37e661b412.tar.bz2
august-offensive-0965d62be00a7820f97284704dc71f37e661b412.zip
Begin migration to Rust; Add actix-web, diesel as main dependencies
Diffstat (limited to 'index.php')
-rw-r--r--index.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/index.php b/index.php
deleted file mode 100644
index c38567d..0000000
--- a/index.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-
-declare(strict_types=1);
-
-namespace AugustOffensive;
-
-require_once "autoload.php";
-
-use AugustOffensive\View;
-use AugustOffensive\Controller;
-
-// configure content type before anything is output
-header("Content-Type: application/" . View\Main::TYPE);
-
-try {
- // initiate connection and build front-end
- $connection = Controller\Controller::initiateConnection();
- $view = new View\Main($connection);
-
- // get results of query from front-end
- $result = $view->generateResult();
-
- echo $result;
-} catch (\Exception $err) {
- // catch all exceptions and let the controller generate the error
- $error = Controller\Controller::errorResult($err);
-
- // pass generated error result to output
- echo View\Main::generateOutput($error);
-}