FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
ExplodingPE/ci.php at master · ExplodingPE/ExplodingPE · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
ExplodingPE
/
ExplodingPE
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
1
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
ExplodingPE
/
ci.php
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (29 loc) · 799 Bytes
Breadcrumbs
ExplodingPE
/
ci.php
Copy path
File metadata and controls
29 lines (29 loc) · 799 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php
// import from clearsky/ci-test
$
time
=
time
();
$
port
=
rand
(
1000
,
60000
);
while
(
system
(
"
lsof -i:
"
.
$
port
) !=
null
){
$
port
=
rand
(
1000
,
60000
);
}
echo
"
port is
"
.
$
port
.
PHP_EOL
;
system
(
"
echo
\"
server-port=
"
.
$
port
.
"\"
> server.properties
"
);
$
server
=
proc_open
(
PHP_BINARY
.
"
src/pocketmine/PocketMine.php --no-wizard --disable-readline
"
, [
0
=> [
"
pipe
"
,
"
r
"
],
1
=> [
"
pipe
"
,
"
w
"
],
2
=> [
"
pipe
"
,
"
w
"
]
],
$
pipes
);
fwrite
(
$
pipes
[
0
],
"
version
\n
makeserver
\n
stop
\n\n"
);
while
(!
feof
(
$
pipes
[
1
])
and
time
()-
$
time
<
60
*
3
){
echo
fgets
(
$
pipes
[
1
]);
}
fclose
(
$
pipes
[
0
]);
fclose
(
$
pipes
[
1
]);
fclose
(
$
pipes
[
2
]);
echo
"\n\n
Return value:
"
.
proc_close
(
$
server
) .
"\n"
;
if
(
count
(
glob
(
"
plugins/DevTools/*.phar
"
)) ===
0
){
echo
"
No server phar created!
\n"
;
exit
(
1
);
}
else
{
echo
"
Server phar created!
\n"
;
exit
(
0
);
}
Back
|
FazBrowse Home
|
New Git URL