mirror of
				https://github.com/librenms/librenms.git
				synced 2024-10-07 16:52:45 +00:00 
			
		
		
		
	cleanups, extend ports.port_descr_type length to 255, maybe break billing, remove and add some FIXMEs, poll toner with snmp_get
git-svn-id: http://www.observium.org/svn/observer/trunk@1985 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
		@@ -1,16 +0,0 @@
 | 
			
		||||
<?php
 | 
			
		||||
 | 
			
		||||
  $ipmi_hostname = mres($_POST['ipmi_hostname']);
 | 
			
		||||
  $ipmi_username = mres($_POST['ipmi_username']);
 | 
			
		||||
  $ipmi_password = mres($_POST['ipmi_password']);
 | 
			
		||||
 | 
			
		||||
  #FIXME needs more sanity checking! and better feedback
 | 
			
		||||
 | 
			
		||||
  if ($ipmi_hostname != '') { set_dev_attrib($device, 'ipmi_hostname', $ipmi_hostname); } else { del_dev_attrib($device, 'ipmi_hostname'); }
 | 
			
		||||
  if ($ipmi_username != '') { set_dev_attrib($device, 'ipmi_username', $ipmi_username); } else { del_dev_attrib($device, 'ipmi_username'); }
 | 
			
		||||
  if ($ipmi_password != '') { set_dev_attrib($device, 'ipmi_password', $ipmi_password); } else { del_dev_attrib($device, 'ipmi_password'); }
 | 
			
		||||
 | 
			
		||||
  $update_message = "Device IPMI data updated.";
 | 
			
		||||
  $updated = 1;
 | 
			
		||||
 | 
			
		||||
?>
 | 
			
		||||
@@ -3,7 +3,6 @@
 | 
			
		||||
### Authorises bill viewing and sets $ports as reference to mysql query containing ports for this bill
 | 
			
		||||
 | 
			
		||||
include("../includes/billing.php");
 | 
			
		||||
include("../includes/functions.php"); ## FIXME zeropad()
 | 
			
		||||
 | 
			
		||||
if (is_numeric($_GET['id']) && ($config['allow_unauth_graphs'] || bill_permitted($_GET['id'])))
 | 
			
		||||
{
 | 
			
		||||
 
 | 
			
		||||
@@ -10,9 +10,9 @@ if ($_SESSION['authenticated'])
 | 
			
		||||
} else {
 | 
			
		||||
  echo("Not logged in!");
 | 
			
		||||
}
 | 
			
		||||
# FIXME worksforme, why was this disabled again? -TL
 | 
			
		||||
#      if (Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) { echo(" via <b>IPv6</b>"); } else { echo(" via <b>IPv4</b>"); }
 | 
			
		||||
  ?>
 | 
			
		||||
 | 
			
		||||
if (Net_IPv6::checkIPv6($_SERVER['REMOTE_ADDR'])) { echo(" via <b>IPv6</b>"); } else { echo(" via <b>IPv4</b>"); }
 | 
			
		||||
?>
 | 
			
		||||
          </td>
 | 
			
		||||
        </tr>
 | 
			
		||||
      </table>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user