|
|
@ -46,8 +46,8 @@ $server->setWelcome( |
|
|
|
string $connect |
|
|
|
string $connect |
|
|
|
): ?string |
|
|
|
): ?string |
|
|
|
{ |
|
|
|
{ |
|
|
|
global $config; |
|
|
|
global $config, |
|
|
|
global $session; |
|
|
|
$session; |
|
|
|
|
|
|
|
|
|
|
|
// Cleanup expired sessions |
|
|
|
// Cleanup expired sessions |
|
|
|
foreach ($session as $key => $value) |
|
|
|
foreach ($session as $key => $value) |
|
|
@ -149,8 +149,8 @@ $server->setPending( |
|
|
|
string $connect |
|
|
|
string $connect |
|
|
|
): ?string |
|
|
|
): ?string |
|
|
|
{ |
|
|
|
{ |
|
|
|
global $config; |
|
|
|
global $config, |
|
|
|
global $session; |
|
|
|
$session; |
|
|
|
|
|
|
|
|
|
|
|
// Filter request |
|
|
|
// Filter request |
|
|
|
$request = trim( |
|
|
|
$request = trim( |
|
|
@ -214,8 +214,8 @@ $server->setHandler( |
|
|
|
string $connect |
|
|
|
string $connect |
|
|
|
): ?string |
|
|
|
): ?string |
|
|
|
{ |
|
|
|
{ |
|
|
|
global $config; |
|
|
|
global $config, |
|
|
|
global $session; |
|
|
|
$session; |
|
|
|
|
|
|
|
|
|
|
|
// Filter request |
|
|
|
// Filter request |
|
|
|
$request = trim( |
|
|
|
$request = trim( |
|
|
|