mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-04-02 22:38:41 +00:00
Use root namespace for functions
This commit is contained in:
parent
6daec69e9b
commit
0a7c6a5550
|
|
@ -7,7 +7,7 @@ $fh = fopen('GeoIPCountryWhois.csv', 'r');
|
|||
$fo = fopen('output.csv', 'w');
|
||||
|
||||
function ip2int(string $ip) : float {
|
||||
$split = explode('.', $ip);
|
||||
$split = \explode('.', $ip);
|
||||
return $split[0] * (256 ** 3) + $split[1] * (256 ** 2) + $split[2] * (256 ** 1) + $split[3];
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
<?php
|
||||
|
||||
$postBody = $_POST['payload'] ?? '';
|
||||
$payload = json_decode($postBody, true);
|
||||
$payload = \json_decode($postBody, true);
|
||||
|
||||
if (isset($payload['repository'], $payload['repository']['name']) && $payload['repository']['name'] === 'Orange-Management') {
|
||||
shell_exec('./buildProject.sh > /dev/null 2>/dev/null &');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user