Revert "Merge tag 'v2.10.6'"

This reverts commit 122ea4ab9e, reversing
changes made to c54a11e250.
This commit is contained in:
2024-02-16 23:06:09 -06:00
parent 122ea4ab9e
commit 6c08ee9675
521 changed files with 12363 additions and 14503 deletions

View File

@@ -8,13 +8,13 @@ class LogNet extends Extension
{
private int $count = 0;
public function onInitExt(InitExtEvent $event): void
public function onInitExt(InitExtEvent $event)
{
global $config;
$config->set_default_string("log_net_host", "127.0.0.1:35353");
}
public function onLog(LogEvent $event): void
public function onLog(LogEvent $event)
{
global $user;
@@ -31,7 +31,7 @@ class LogNet extends Extension
}
}
private function msg(string $data): void
private function msg($data)
{
global $config;
$host = $config->get_string("log_net_host");
@@ -45,7 +45,7 @@ class LogNet extends Extension
$host = $parts[0];
$port = (int)$parts[1];
$fp = fsockopen("udp://$host", $port, $errno, $errstr);
if (!$fp) {
if (! $fp) {
return;
}
fwrite($fp, "$data\n");