]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/commitdiff
Fetch existing logs in Log screen. Only for git unrealircd.
authorBram Matthys <redacted>
Thu, 27 Apr 2023 18:37:52 +0000 (20:37 +0200)
committerBram Matthys <redacted>
Thu, 27 Apr 2023 18:38:24 +0000 (20:38 +0200)
Or actually this isn't even committed yet....
Requires end users to run 'composer install' as well...

api/log.php
composer.lock

index ebc8fffecafb24e5b091adbd4d4dae2ebcf67fdb..12f053d9622f29b2f0f0def4ba7b5e9b849bf5e7 100644 (file)
@@ -6,4 +6,13 @@ if (!$rpc)
     die();
 
 /* Basically everything ;) */
+
+$response = $rpc->log()->getAll();
+if ($response !== false)
+{
+    /* Only supported in later UnrealIRCd versions */
+    foreach($response as $r)
+        send_sse($r);
+}
+
 api_log_loop(["all", "!debug"]);
index e21863b6a716796cd2a136ff29caab3cf58623c4..fe194c8623b9a917a13eeaa91eaf616584882a12 100644 (file)
             "source": {
                 "type": "git",
                 "url": "https://github.com/unrealircd/unrealircd-rpc-php.git",
-                "reference": "21667b50addbca70e8bace0dc27025847b0d12d1"
+                "reference": "f47824ee22e6f5fced292708454d58fd31a985de"
             },
             "dist": {
                 "type": "zip",
-                "url": "https://api.github.com/repos/unrealircd/unrealircd-rpc-php/zipball/21667b50addbca70e8bace0dc27025847b0d12d1",
-                "reference": "21667b50addbca70e8bace0dc27025847b0d12d1",
+                "url": "https://api.github.com/repos/unrealircd/unrealircd-rpc-php/zipball/f47824ee22e6f5fced292708454d58fd31a985de",
+                "reference": "f47824ee22e6f5fced292708454d58fd31a985de",
                 "shasum": ""
             },
             "require": {
                 "issues": "https://github.com/unrealircd/unrealircd-rpc-php/issues",
                 "source": "https://github.com/unrealircd/unrealircd-rpc-php/tree/main"
             },
-            "time": "2023-04-27T18:04:49+00:00"
+            "time": "2023-04-27T18:36:09+00:00"
         }
     ],
     "packages-dev": [],