mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
remove some leading slashes from supposedly relative URLs :> (reported by Eimann)
git-svn-id: http://www.observium.org/svn/observer/trunk@1511 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -23,7 +23,7 @@ if($total = mysql_result(mysql_query("SELECT count(sensor_id) from sensors WHERE
|
||||
$current_year = "graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$current_minigraph = "<img src='graph.php?id=" . $current['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$current_link = "<a href='/device/".$device['device_id']."/health/current/' onmouseover=\"return ";
|
||||
$current_link = "<a href='device/".$device['device_id']."/health/current/' onmouseover=\"return ";
|
||||
$current_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$current['sensor_descr'];
|
||||
$current_link .= "</div><div style=\'width: 750px\'><img src=\'$current_day\'><img src=\'$current_week\'><img src=\'$current_month\'><img src=\'$current_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
@@ -23,7 +23,7 @@ if($total = mysql_result(mysql_query("SELECT count(sensor_id) from sensors WHERE
|
||||
$fan_year = "graph.php?id=" . $fan['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$fan_minigraph = "<img src='graph.php?id=" . $fan['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$fan_link = "<a href='/device/".$device['device_id']."/health/fanspeeds/' onmouseover=\"return ";
|
||||
$fan_link = "<a href='device/".$device['device_id']."/health/fanspeeds/' onmouseover=\"return ";
|
||||
$fan_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$fan['sensor_descr'];
|
||||
$fan_link .= "</div><div style=\'width: 750px\'><img src=\'$fan_day\'><img src=\'$fan_week\'><img src=\'$fan_month\'><img src=\'$fan_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
@@ -24,7 +24,7 @@ if(mysql_result(mysql_query("SELECT count(freq_id) from frequency WHERE device_i
|
||||
$freq_year = "graph.php?id=" . $freq['freq_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$freq_minigraph = "<img src='graph.php?id=" . $freq['freq_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$freq_link = "<a href='/device/".$device['device_id']."/health/frequencies/' onmouseover=\"return ";
|
||||
$freq_link = "<a href='device/".$device['device_id']."/health/frequencies/' onmouseover=\"return ";
|
||||
$freq_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$freq['freq_descr'];
|
||||
$freq_link .= "</div><div style=\'width: 750px\'><img src=\'$freq_day\'><img src=\'$freq_week\'><img src=\'$freq_month\'><img src=\'$freq_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
@@ -25,7 +25,7 @@ if($total = mysql_result(mysql_query("SELECT count(sensor_id) from sensors WHERE
|
||||
$humidity_year = "graph.php?id=" . $humidity['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$humidity_minigraph = "<img src='graph.php?id=" . $humidity['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$humidity_link = "<a href='/device/".$device['device_id']."/health/humiditys/' onmouseover=\"return ";
|
||||
$humidity_link = "<a href='device/".$device['device_id']."/health/humiditys/' onmouseover=\"return ";
|
||||
$humidity_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$humidity['sensor_descr'];
|
||||
$humidity_link .= "</div><div style=\'width: 750px\'><img src=\'$humidity_day\'><img src=\'$humidity_week\'><img src=\'$humidity_month\'><img src=\'$humidity_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
@@ -14,7 +14,7 @@ if(mysql_result(mysql_query("SELECT count(*) from mempools WHERE device_id = '"
|
||||
|
||||
$text_descr = rewrite_entity_descr($mempool['mempool_descr']);
|
||||
|
||||
$mempool_url = "/device/".$device['device_id']."/health/memory/";
|
||||
$mempool_url = $config['base_url'] . "/device/".$device['device_id']."/health/memory/";
|
||||
$mini_url = $config['base_url'] . "/graph.php?id=".$mempool['mempool_id']."&type=".$graph_type."&from=".$day."&to=".$now."&width=80&height=20&bg=f4f4f4";
|
||||
|
||||
$mempool_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$text_descr;
|
||||
|
@@ -37,7 +37,7 @@ if(mysql_result(mysql_query("SELECT count(storage_id) from storage WHERE device_
|
||||
$free = formatStorage($drive['storage_free']);
|
||||
$used = formatStorage($drive['storage_used']);
|
||||
|
||||
$fs_url = "/device/".$device['device_id']."/health/storage/";
|
||||
$fs_url = $config['base_url'] . "/device/".$device['device_id']."/health/storage/";
|
||||
|
||||
$fs_popup = "onmouseover=\"return overlib('<div class=list-large>".$device['hostname']." - ".$drive['storage_descr'];
|
||||
$fs_popup .= "</div><img src=\'graph.php?id=" . $drive['storage_id'] . "&type=".$graph_type."&from=$month&to=$now&width=400&height=125\'>";
|
||||
|
@@ -25,7 +25,7 @@ if($total = mysql_result(mysql_query("SELECT count(sensor_id) from sensors WHERE
|
||||
$temp_year = "graph.php?id=" . $temp['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$temp_minigraph = "<img src='graph.php?id=" . $temp['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$temp_link = "<a href='/device/".$device['device_id']."/health/temperatures/' onmouseover=\"return ";
|
||||
$temp_link = "<a href='device/".$device['device_id']."/health/temperatures/' onmouseover=\"return ";
|
||||
$temp_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$temp['sensor_descr'];
|
||||
$temp_link .= "</div><div style=\'width: 750px\'><img src=\'$temp_day\'><img src=\'$temp_week\'><img src=\'$temp_month\'><img src=\'$temp_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
@@ -23,7 +23,7 @@ if($total = mysql_result(mysql_query("SELECT count(sensor_id) from sensors WHERE
|
||||
$volt_year = "graph.php?id=" . $volt['sensor_id'] . "&type=".$graph_type."&from=$year&to=$now&width=300&height=100";
|
||||
$volt_minigraph = "<img src='graph.php?id=" . $volt['sensor_id'] . "&type=".$graph_type."&from=$day&to=$now&width=80&height=20&bg=$graph_colour' align='absmiddle'>";
|
||||
|
||||
$volt_link = "<a href='/device/".$device['device_id']."/health/voltages/' onmouseover=\"return ";
|
||||
$volt_link = "<a href='device/".$device['device_id']."/health/voltages/' onmouseover=\"return ";
|
||||
$volt_link .= "overlib('<div class=list-large>".$device['hostname']." - ".$volt['sensor_descr'];
|
||||
$volt_link .= "</div><div style=\'width: 750px\'><img src=\'$volt_day\'><img src=\'$volt_week\'><img src=\'$volt_month\'><img src=\'$volt_year\'></div>', RIGHT".$config['overlib_defaults'].");\" onmouseout=\"return nd();\" >";
|
||||
|
||||
|
Reference in New Issue
Block a user