1
0
mirror of https://github.com/mail-in-a-box/mailinabox.git synced 2026-03-04 15:54:48 +01:00

Add Mail-in-a-Box version status check.

This commit is contained in:
Norman Stanke
2015-07-25 13:47:10 +02:00
committed by Joshua Tauberer
parent 8c066764d9
commit 1a525df8ad
6 changed files with 73 additions and 46 deletions

View File

@@ -43,6 +43,10 @@
</tbody>
</table>
<h4>Privacy Setting</h4>
<p>By deactivating the advanced privacy feature your Mail-in-a-Box will contact a remote server to check if a new version got released.</p>
<p>Advanced Privacy <a onclick="enable_privacy()" href="">On</a> | <a onclick="disable_privacy()" href="">Off</a></p>
<script>
function show_system_status() {
$('#system-checks tbody').html("<tr><td colspan='2' class='text-muted'>Loading...</td></tr>")
@@ -83,4 +87,16 @@ function show_system_status() {
}
})
}
function enable_privacy() {
api(
"/system/privacy/enable",
"Post",
{ });
}
function disable_privacy() {
api(
"/system/privacy/disable",
"Post",
{ });
}
</script>