From f3df6109112acd4748e9ac9a06b876fb43822bfd Mon Sep 17 00:00:00 2001 From: Adam Amstrong Date: Sun, 27 Dec 2009 07:58:09 +0000 Subject: [PATCH] fixes :> thanks sid3windr (and nintendo, and hacked wii roms) git-svn-id: http://www.observium.org/svn/observer/trunk@554 61d68cd4-352d-0410-923a-c4978735b2b8 --- html/css/styles.css | 2 +- html/pages/device/port/arp.inc.php | 2 +- includes/discovery/storage.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/html/css/styles.css b/html/css/styles.css index 1bb0ff0fb..86cee8799 100644 --- a/html/css/styles.css +++ b/html/css/styles.css @@ -800,7 +800,7 @@ color: #cc0000; .contentstyle{ border: 1px solid #aaaaaa; - width: 1175px; + width: 1176px; margin-bottom: 1em; padding: 10px; float: left; diff --git a/html/pages/device/port/arp.inc.php b/html/pages/device/port/arp.inc.php index 9c8113145..0149f11eb 100644 --- a/html/pages/device/port/arp.inc.php +++ b/html/pages/device/port/arp.inc.php @@ -1,4 +1,4 @@ - '0' && $allow) { + if((strstr($fstype, "FlashMemory") || strstr($fstype, "FixedDisk") || strstr($fstype, "Ram") || strstr($fstype, "VirtualMemory")) && $size > '0' && $allow) { if(mysql_result(mysql_query("SELECT count(storage_id) FROM `storage` WHERE hrStorageIndex = '$hrStorageIndex' AND host_id = '".$device['device_id']."'"),0) == '0') { $query = "INSERT INTO storage (`host_id`, `hrStorageIndex`, `hrStorageType`, `hrStorageDescr`,`hrStorageSize`,`hrStorageAllocationUnits`) "; $query .= "values ('".$device['device_id']."', '$hrStorageIndex', '$fstype', '$descr', '$size', '$units')";