[Web] Fix css; Use socket for Rspamd history; Fix function file name
This commit is contained in:
parent
557fa4385c
commit
77c7c1fe07
@ -28,7 +28,7 @@ table.footable>tbody>tr.footable-empty>td {
|
|||||||
width: 80%;
|
width: 80%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.mass-actions-Quarantine {
|
.mass-actions-quarantine {
|
||||||
user-select: none;
|
user-select: none;
|
||||||
padding:10px 0 10px 10px;
|
padding:10px 0 10px 10px;
|
||||||
}
|
}
|
||||||
|
@ -1167,12 +1167,13 @@ function get_logs($container, $lines = false) {
|
|||||||
}
|
}
|
||||||
if ($container == "rspamd-history") {
|
if ($container == "rspamd-history") {
|
||||||
$curl = curl_init();
|
$curl = curl_init();
|
||||||
|
curl_setopt($curl, CURLOPT_UNIX_SOCKET_PATH, '/rspamd-sock/rspamd.sock');
|
||||||
if (!is_numeric($lines)) {
|
if (!is_numeric($lines)) {
|
||||||
list ($from, $to) = explode('-', $lines);
|
list ($from, $to) = explode('-', $lines);
|
||||||
curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history?from=" . intval($from) . "&to=" . intval($to));
|
curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?from=" . intval($from) . "&to=" . intval($to));
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
curl_setopt($curl, CURLOPT_URL,"http://rspamd-mailcow:11334/history?to=" . intval($lines));
|
curl_setopt($curl, CURLOPT_URL,"http://rspamd/history?to=" . intval($lines));
|
||||||
}
|
}
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
||||||
$history = curl_exec($curl);
|
$history = curl_exec($curl);
|
||||||
|
Loading…
Reference in New Issue
Block a user