From 7f4e96240b0dba002beddfddd03e11bec1c925b5 Mon Sep 17 00:00:00 2001 From: Daku Date: Sat, 18 Jun 2016 06:42:52 +0100 Subject: [PATCH] throw error if vendor/ doesn't exist --- index.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/index.php b/index.php index 76f4f8bb..eff7317b 100644 --- a/index.php +++ b/index.php @@ -48,6 +48,43 @@ if(!file_exists("data/config/shimmie.conf.php")) { exit; } +if(!file_exists("vendor/")) { + //CHECK: Should we just point to install.php instead? Seems unsafe though. + print << + + + Shimmie Error + + + + +
+

Install Error

+

Warning: Composer vendor folder does not exist!

+
+

Shimmie is unable to find the composer vendor directory.
+ Have you followed the composer setup instructions found in the README? + +

If you are not intending to do any development with Shimmie, it is highly recommend you use one of the pre-packaged releases found on Github instead.

+
+
+ + +EOD; + http_response_code(500); + exit; +} + try { require_once "core/_bootstrap.inc.php"; ctx_log_start(@$_SERVER["REQUEST_URI"], true, true);