mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-06 01:51:51 +00:00
Added Source SHA1 sum
This commit is contained in:
parent
a8f2225c4c
commit
a0b93ed5ff
@ -442,8 +442,9 @@ class PocketMinecraftServer{
|
|||||||
}
|
}
|
||||||
$dump .= "\r\n\r\n";
|
$dump .= "\r\n\r\n";
|
||||||
$version = new VersionString();
|
$version = new VersionString();
|
||||||
$dump .= "PM Version: ".$version." #".$version->getNumber()." [Protocol ".CURRENT_PROTOCOL."]\r\n";
|
$dump .= "PocketMine-MP version: ".$version." #".$version->getNumber()." [Protocol ".CURRENT_PROTOCOL."; API ".CURRENT_API_VERSION."]\r\n";
|
||||||
$dump .= "Commit: ".GIT_COMMIT."\r\n";
|
$dump .= "Git commit: ".GIT_COMMIT."\r\n";
|
||||||
|
$dump .= "Source SHA1 sum: ".SOURCE_SHA1SUM."\r\n";
|
||||||
$dump .= "uname -a: ".php_uname("a")."\r\n";
|
$dump .= "uname -a: ".php_uname("a")."\r\n";
|
||||||
$dump .= "PHP Version: " .phpversion()."\r\n";
|
$dump .= "PHP Version: " .phpversion()."\r\n";
|
||||||
$dump .= "Zend version: ".zend_version()."\r\n";
|
$dump .= "Zend version: ".zend_version()."\r\n";
|
||||||
|
@ -24,7 +24,7 @@ require_once(dirname(__FILE__)."/config.php");
|
|||||||
require_once(FILE_PATH."/src/utils/TextFormat.php");
|
require_once(FILE_PATH."/src/utils/TextFormat.php");
|
||||||
require_once(FILE_PATH."/src/functions.php");
|
require_once(FILE_PATH."/src/functions.php");
|
||||||
/***REM_END***/
|
/***REM_END***/
|
||||||
define(DATA_PATH, realpath(arg("data-path", FILE_PATH))."/");
|
define("DATA_PATH", realpath(arg("data-path", FILE_PATH))."/");
|
||||||
|
|
||||||
if(arg("enable-ansi", strpos(strtoupper(php_uname("s")), "WIN") === 0 ? false:true) === true and arg("disable-ansi", false) !== true){
|
if(arg("enable-ansi", strpos(strtoupper(php_uname("s")), "WIN") === 0 ? false:true) === true and arg("disable-ansi", false) !== true){
|
||||||
define("ENABLE_ANSI", true);
|
define("ENABLE_ANSI", true);
|
||||||
@ -76,10 +76,22 @@ if($errors > 0){
|
|||||||
exit(1); //Exit with error
|
exit(1); //Exit with error
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$sha1sum = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
||||||
/***REM_START***/
|
/***REM_START***/
|
||||||
require_once(FILE_PATH."/src/math/Vector3.php");
|
require_once(FILE_PATH."/src/math/Vector3.php");
|
||||||
require_once(FILE_PATH."/src/world/Position.php");
|
require_once(FILE_PATH."/src/world/Position.php");
|
||||||
require_once(FILE_PATH."/src/pmf/PMF.php");
|
require_once(FILE_PATH."/src/pmf/PMF.php");
|
||||||
|
|
||||||
require_all(FILE_PATH . "src/");
|
require_all(FILE_PATH . "src/");
|
||||||
/***REM_END***/
|
|
||||||
|
$inc = get_included_files();
|
||||||
|
$inc[] = array_shift($inc);
|
||||||
|
$srcdir = realpath(FILE_PATH."src/");
|
||||||
|
foreach($inc as $s){
|
||||||
|
if(strpos(realpath(dirname($s)), $srcdir) === false and strtolower(basename($s)) !== "pocketmine-mp.php"){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
$sha1sum ^= sha1_file($s, true);
|
||||||
|
}
|
||||||
|
/***REM_END***/
|
||||||
|
define("SOURCE_SHA1SUM", bin2hex($sha1sum));
|
Loading…
x
Reference in New Issue
Block a user