mirror of
https://github.com/mail-in-a-box/mailinabox.git
synced 2024-12-25 07:47:05 +00:00
more work on control panel integration
This commit is contained in:
parent
5615031ef8
commit
fefb5ebc33
@ -520,6 +520,20 @@ def privacy_status_set():
|
|||||||
utils.write_settings(config, env)
|
utils.write_settings(config, env)
|
||||||
return "OK"
|
return "OK"
|
||||||
|
|
||||||
|
# Mailgraph
|
||||||
|
|
||||||
|
@app.route('/mailgraph/image.cgi')
|
||||||
|
@authorized_personnel_only
|
||||||
|
def mailgraph():
|
||||||
|
if request.query_string:
|
||||||
|
return utils.shell(
|
||||||
|
"check_output",
|
||||||
|
["/usr/share/mailgraph/mailgraph.cgi"],
|
||||||
|
env={"QUERY_STRING": request.query_string}
|
||||||
|
)
|
||||||
|
return ''
|
||||||
|
|
||||||
|
|
||||||
# MUNIN
|
# MUNIN
|
||||||
|
|
||||||
@app.route('/munin/')
|
@app.route('/munin/')
|
||||||
|
@ -102,7 +102,7 @@
|
|||||||
<li><a href="#mail-guide" onclick="return show_panel(this);">Instructions</a></li>
|
<li><a href="#mail-guide" onclick="return show_panel(this);">Instructions</a></li>
|
||||||
<li><a href="#users" onclick="return show_panel(this);">Users</a></li>
|
<li><a href="#users" onclick="return show_panel(this);">Users</a></li>
|
||||||
<li><a href="#aliases" onclick="return show_panel(this);">Aliases</a></li>
|
<li><a href="#aliases" onclick="return show_panel(this);">Aliases</a></li>
|
||||||
<li><a href="#reports" onclick="return show_report(this);">Reports</a></li>
|
<li><a href="#mailgraph" onclick="return show_panel(this);">Mailgraph</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
</li>
|
</li>
|
||||||
<li><a href="#sync_guide" onclick="return show_panel(this);">Contacts/Calendar</a></li>
|
<li><a href="#sync_guide" onclick="return show_panel(this);">Contacts/Calendar</a></li>
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
<h1>Mail statistics</h1>
|
<h2>Mail statistics</h2>
|
||||||
<ul id="jump">
|
<ul id="jump">
|
||||||
<li><a href="#G0">Day</a> </li>
|
<li><a href="#G0">Day</a> </li>
|
||||||
<li><a href="#G1">Week</a> </li>
|
<li><a href="#G1">Week</a> </li>
|
||||||
@ -6,25 +6,25 @@
|
|||||||
<li><a href="#G3">Year</a> </li>
|
<li><a href="#G3">Year</a> </li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
<h2 id="G0">Last Day</h2>
|
<h3 id="G0">Last Day</h3>
|
||||||
<p><img src="?image=0-n" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=0-n" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=0-e" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=0-e" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=0-g" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=0-g" alt="mailgraph"/></p>
|
||||||
|
|
||||||
<h2 id="G1">Last Week</h2>
|
<h3 id="G1">Last Week</h3>
|
||||||
<p><img src="?image=1-n" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=1-n" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=1-e" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=1-e" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=1-g" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=1-g" alt="mailgraph"/></p>
|
||||||
|
|
||||||
<h2 id="G2">Last Month</h2>
|
<h3 id="G2">Last Month</h3>
|
||||||
<p><img src="?image=2-n" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=2-n" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=2-e" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=2-e" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=2-g" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=2-g" alt="mailgraph"/></p>
|
||||||
|
|
||||||
<h2 id="G3">Last Year</h2>
|
<h3 id="G3">Last Year</h3>
|
||||||
<p><img src="?image=3-n" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=3-n" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=3-e" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=3-e" alt="mailgraph"/></p>
|
||||||
<p><img src="?image=3-g" alt="mailgraph"/></p>
|
<p><img src="/admin/mailgraph/image.cgi?image=3-g" alt="mailgraph"/></p>
|
||||||
|
|
||||||
<hr/>
|
<hr/>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user