more stuff to util.php

This commit is contained in:
Shish
2020-01-27 19:05:43 +00:00
parent b03eb861d4
commit b0237ddd97
4 changed files with 34 additions and 36 deletions

View File

@@ -48,10 +48,6 @@ if (!file_exists("data/config/shimmie.conf.php")) {
exit;
}
if (file_exists("images") && !file_exists("data/images")) {
die("As of Shimmie 2.7 images and thumbs should be moved to data/images and data/thumbs");
}
if (!file_exists("vendor/")) {
//CHECK: Should we just point to install.php instead? Seems unsafe though.
print <<<EOD
@@ -87,6 +83,11 @@ require_once "core/_bootstrap.php";
//$_tracer->mark(@$_SERVER["REQUEST_URI"]);
$_tracer->begin($_SERVER["REQUEST_URI"] ?? "No Request");
if (AUTO_DB_UPGRADE) {
send_event(new DatabaseUpgradeEvent());
}
send_event(new InitExtEvent());
try {
// start the page generation waterfall
$user = _get_user();