mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more code cleanup (last commit for now)
git-svn-id: http://www.observium.org/svn/observer/trunk@2520 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -187,6 +187,7 @@ function overlib_link($url, $text, $contents, $class)
|
||||
function generate_graph_popup($graph_array)
|
||||
{
|
||||
global $config;
|
||||
|
||||
## Take $graph_array and print day,week,month,year graps in overlib, hovered over graph
|
||||
|
||||
$graph = generate_graph_tag($graph_array);
|
||||
@@ -270,6 +271,7 @@ function port_permitted($interface_id, $device_id = NULL)
|
||||
function application_permitted($app_id, $device_id = NULL)
|
||||
{
|
||||
global $permissions;
|
||||
|
||||
if (is_numeric($app_id))
|
||||
{
|
||||
if (!$device_id) { $device_id = device_by_id_cache ($app_id); }
|
||||
|
||||
@@ -47,6 +47,7 @@ function makeTextBlock($text, $fontfile, $fontsize, $width) {
|
||||
*/
|
||||
function error($code, $code_msg, $title, $msg) {
|
||||
global $config;
|
||||
|
||||
header(sprintf("HTTP/1.0 %d %s", $code, $code_msg));
|
||||
header("Pragma: no-cache");
|
||||
header("Expires: Mon, 01 Jan 2008 00:00:00 CET");
|
||||
|
||||
Reference in New Issue
Block a user