mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-28 00:24:21 +02:00
more db*
git-svn-id: http://www.observium.org/svn/observer/trunk@2324 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -1,12 +1,10 @@
|
||||
<?php
|
||||
|
||||
$query = mysql_query("SELECT * FROM `applications` WHERE `device_id` = '".$device['device_id']."'");
|
||||
|
||||
print_optionbar_start();
|
||||
|
||||
unset($sep);
|
||||
|
||||
while ($app = mysql_fetch_assoc($query))
|
||||
foreach (dbFetchRows("SELECT * FROM `applications` WHERE `device_id` = ?", array($device['device_id'])) as $app)
|
||||
{
|
||||
echo($sep);
|
||||
|
||||
@@ -26,7 +24,7 @@ while ($app = mysql_fetch_assoc($query))
|
||||
|
||||
print_optionbar_end();
|
||||
|
||||
$app = mysql_fetch_assoc(mysql_query("SELECT * FROM `applications` WHERE `device_id` = '".$device['device_id']."' AND `app_type` = '".$_GET['opta']."'"));
|
||||
$app = dbFetchRow("SELECT * FROM `applications` WHERE `device_id` = ? AND `app_type` = ?", array($device['device_id'], $_GET['opta']));
|
||||
|
||||
if (is_file("pages/device/apps/".mres($_GET['opta']).".inc.php"))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user