Commit 7d6a7ded authored by Franco Fichtner's avatar Franco Fichtner

shortcuts: zap log links

parent ecc0b7af
......@@ -104,16 +104,7 @@ if($need_alert_display == true) {
<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li id="menu_messages">
<?php
echo get_menu_messages();
?>
</li>
<?php
if (isset($shortcut_section)) {
echo '<li>'.get_shortcut_log_link($shortcut_section, false).'</li>';
}
?>
<li id="menu_messages"><?= get_menu_messages() ?></li>
</ul>
</div>
......
......@@ -345,7 +345,6 @@ if ($_GET['act'] == "del") {
}
}
$shortcut_section = "dhcp6";
$closehead = false;
include("head.inc");
......
......@@ -162,8 +162,6 @@ if ($_POST) {
}
}
$shortcut_section = "dhcp6";
include("head.inc");
?>
......
......@@ -90,7 +90,6 @@ if ($_POST) {
}
}
$shortcut_section = "dhcp6";
$closehead = false;
include("head.inc");
......
......@@ -43,33 +43,15 @@ function get_shortcut_by_service_name($servicename)
return null;
}
function get_shortcut_log_link($shortcut_section, $addspace = true)
{
global $g, $shortcuts;
$space = ($addspace) ? "&nbsp;" : "" ;
if(!empty($shortcut_section) && !empty($shortcuts[$shortcut_section]['log'])) {
if (strtok($_SERVER['REQUEST_URI'],'?') != "/status_services.php")
return "{$space}<a href=\"{$shortcuts[$shortcut_section]['log']}\" title=\"" . gettext("Log entries for items on this page") . "\">Log</a>";
else
return "{$space}<a href=\"{$shortcuts[$shortcut_section]['log']}\" class=\"btn btn-default\" data-toggle=\"tooltip\" data-placement=\"bottom\" title=\"" . gettext("Log entries for items on this page") . "\"><span class=\"glyphicon glyphicon-list\"></span></a>";
}
}
$shortcuts['upnp'] = array();
$shortcuts['upnp']['log'] = "diag_logs_routing.php";
$shortcuts['upnp']['service'] = "miniupnpd";
$shortcuts['relayd'] = array();
$shortcuts['relayd']['service'] = "relayd";
$shortcuts['dhcp'] = array();
$shortcuts['dhcp']['log'] = "diag_logs_dhcp.php";
$shortcuts['dhcp']['service'] = "dhcpd";
$shortcuts['dhcp6'] = array();
$shortcuts['dhcp6']['log'] = "diag_logs_dhcp.php";
$shortcuts['ipsec'] = array();
$shortcuts['ipsec']['service'] = "ipsec";
......@@ -88,9 +70,6 @@ $shortcuts['ntp']['service'] = 'ntpd';
$shortcuts['gateways'] = array();
$shortcuts['gateways']['service'] = "apinger";
$shortcuts['pppoes'] = array();
$shortcuts['pppoes']['log'] = "diag_logs_vpn.php?vpntype=poes";
$shortcuts['snmp'] = array();
$shortcuts['snmp']['service'] = "bsnmpd";
......
......@@ -34,8 +34,6 @@ require_once("pfsense-utils.inc");
require_once("interfaces.inc");
require_once("services.inc");
$shortcut_section = "dhcp6";
$leasesfile = "{$g['dhcpd_chroot_path']}/var/db/dhcpd6.leases";
if (($_GET['deleteip']) && (is_ipaddr($_GET['deleteip']))) {
......
......@@ -307,7 +307,6 @@ include("head.inc");
<td>
<?=get_service_status_icon($service, true, true);?>
<?=get_service_control_links($service);?>
<?=!empty(get_shortcut_by_service_name($service['name'])) ? get_shortcut_log_link($scut, true) :"";?>
</td>
</tr>
<?php
......
......@@ -81,8 +81,6 @@ if ($_GET['act'] == "del") {
}
}
$shortcut_section = "pppoes";
include("head.inc");
$main_buttons = array(
......
......@@ -253,8 +253,6 @@ if ($_POST) {
}
}
$shortcut_section = "pppoes";
include("head.inc");
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment