Cleanup and show an app-page with the corresponding device

This commit is contained in:
Mark Schouten
2015-08-27 21:06:07 +02:00
parent a211b3706d
commit 1595f03568
5 changed files with 81 additions and 39 deletions

View File

@ -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);