mirror of
https://github.com/oldminecraftcommunity/NostalgiaCore.git
synced 2026-11-20 19:49:44 +00:00
Set process title PHP 5.5 function fallback
This commit is contained in:
parent
dbc357c266
commit
683fd03f45
2 changed files with 13 additions and 1 deletions
|
|
@ -25,6 +25,17 @@ the Free Software Foundation, either version 3 of the License, or
|
|||
|
||||
*/
|
||||
|
||||
if(!function_exists("cli_set_process_title")){
|
||||
function cli_set_process_title($title){
|
||||
if(ENABLE_ANSI === true){
|
||||
echo "\x1b]0;".$title."\x07";
|
||||
return true;
|
||||
}else{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function require_all($path, &$count = 0){
|
||||
$dir = dir($path."/");
|
||||
$dirs = array();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue