mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Added integrity test
This commit is contained in:
parent
0b70b36ee1
commit
d9c39ca816
3 changed files with 39 additions and 12 deletions
|
|
@ -37,15 +37,6 @@ define("ENDIANNESS", (pack("d", 1) === "\77\360\0\0\0\0\0\0" ? BIG_ENDIAN:LITTLE
|
|||
|
||||
class Utils{
|
||||
|
||||
/*public static function hashCode($str){
|
||||
$h = 0;
|
||||
$len = strlen($str);
|
||||
for($i = 0; $i < $len; ++$i) {
|
||||
$h = 31 * $h + $str[$i];
|
||||
}
|
||||
return $h;
|
||||
}*/
|
||||
|
||||
public static function getOS(){
|
||||
$uname = strtoupper(php_uname("s"));
|
||||
if(strpos($uname, "WIN") !== false){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue