]>
jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blob - api/log.php
3 require_once('common_api.php');
8 /* Filter - almost everything... */
9 $log_list = ["all", "!debug"];
10 /* Add these as well, they are not logged by default
11 * in the memory log either. See
12 * https://github.com/unrealircd/unrealircd/commit/45342c2d33968178cd07a12cd6fdc4e65b604134
13 * Added here separately because we may want to make
17 "!join.LOCAL_CLIENT_JOIN",
18 "!join.REMOTE_CLIENT_JOIN",
19 "!part.LOCAL_CLIENT_PART",
20 "!part.REMOTE_CLIENT_PART",
21 "!kick.LOCAL_CLIENT_KICK",
22 "!kick.REMOTE_CLIENT_KICK",
25 $response = $rpc->log()->getAll($log_list);
26 if ($response !== false)
28 /* Only supported in later UnrealIRCd versions */
30 foreach($response as $r)
34 if (($cnt %
100) != 0)
35 $r["sync_option"] = "no_sync";
40 $r = ["sync_option"=>"sync_now"];
43 api_log_loop($log_list);