mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
more nicecase()
git-svn-id: http://www.observium.org/svn/observer/trunk@3137 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@ -24,7 +24,7 @@ foreach (dbFetchRows("SELECT * FROM `applications` WHERE `device_id` = ?", array
|
|||||||
#echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
|
#echo('<img src="images/icons/greyscale/'.$app['app_type'].'.png" class="optionicon" />');
|
||||||
}
|
}
|
||||||
$link_add = array('app'=>$app['app_type']);
|
$link_add = array('app'=>$app['app_type']);
|
||||||
$text = ucfirst($app['app_type']);
|
$text = nicecase($app['app_type']);
|
||||||
if (!empty($app['app_instance']))
|
if (!empty($app['app_instance']))
|
||||||
{
|
{
|
||||||
$text .= "(".$app['app_instance'].")";
|
$text .= "(".$app['app_instance'].")";
|
||||||
@ -46,8 +46,6 @@ if($vars['instance'])
|
|||||||
|
|
||||||
$app = dbFetchRow("SELECT * FROM `applications` WHERE `device_id` = ? AND `app_type` = ?".$where, $where_array);
|
$app = dbFetchRow("SELECT * FROM `applications` WHERE `device_id` = ? AND `app_type` = ?".$where, $where_array);
|
||||||
|
|
||||||
#print_r($app);
|
|
||||||
|
|
||||||
if (is_file("pages/device/apps/".mres($vars['app']).".inc.php"))
|
if (is_file("pages/device/apps/".mres($vars['app']).".inc.php"))
|
||||||
{
|
{
|
||||||
include("pages/device/apps/".mres($vars['app']).".inc.php");
|
include("pages/device/apps/".mres($vars['app']).".inc.php");
|
||||||
|
Reference in New Issue
Block a user