mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Cleanup and show an app-page with the corresponding device
This commit is contained in:
@ -12,6 +12,29 @@
|
||||
* @copyright (C) 2013 LibreNMS Group
|
||||
*/
|
||||
|
||||
function var_isset($v) {
|
||||
global $vars;
|
||||
return isset($vars[$v]);
|
||||
}
|
||||
|
||||
function var_eq($v, $t) {
|
||||
global $vars;
|
||||
if (isset($vars[$v]) && $vars[$v] == $t) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
function var_get($v) {
|
||||
global $vars;
|
||||
if (isset($vars[$v])) {
|
||||
return $vars[$v];
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
function data_uri($file, $mime) {
|
||||
$contents = file_get_contents($file);
|
||||
|
Reference in New Issue
Block a user