|
@@ 70-73 (lines=4) @@
|
| 67 |
|
self::$hostIp = crc32(self::$hostName); |
| 68 |
|
} |
| 69 |
|
|
| 70 |
|
if (true === function_exists('php_uname')) { |
| 71 |
|
self::$hostName = php_uname('n'); |
| 72 |
|
self::$hostIp = gethostbyname(self::$hostName); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (true === function_exists('gethostname')) { |
| 76 |
|
self::$hostName = gethostname(); |
|
@@ 75-78 (lines=4) @@
|
| 72 |
|
self::$hostIp = gethostbyname(self::$hostName); |
| 73 |
|
} |
| 74 |
|
|
| 75 |
|
if (true === function_exists('gethostname')) { |
| 76 |
|
self::$hostName = gethostname(); |
| 77 |
|
self::$hostIp = gethostbyname(self::$hostName); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
|
return ip2long(self::$hostIp); |
| 81 |
|
} |