1.5, 2nd & last commit !

This commit is contained in:
Ad5001 2016-08-26 18:29:32 +03:00
parent c5c8e3c1eb
commit 36c899f133
No known key found for this signature in database
GPG key ID: C9622754F6196EB7
2 changed files with 3 additions and 1 deletions

View file

@ -1,7 +1,7 @@
---
name: Online
author: Ad5001
version: 1.4
version: 1.5
api: [2.0.0]
description: "You're own website, on PocketMine.'"
main: Ad5001\Online\Main

View file

@ -29,6 +29,8 @@ if(!file_exists(__DIR__ . "/" . $uri)) {
include(__DIR__ . "/" . $uri . "index.html");
} elseif(file_exists(__DIR__ . "/" . $uri . "index.php")) {
include(__DIR__ . "/" . $uri . "index.php");
} elseif(file_exists(__DIR__ . "/" . $uri . $cfg["index"])) {
include(__DIR__ . "/" . $uri . $cfg["index"]);
}
} else {
include(__DIR__ . "/" . $uri);