mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes.
git-svn-id: http://www.observium.org/svn/observer/trunk@2548 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -834,6 +834,7 @@ a.interface-upup:hover, a.interface-updown:hover, a.interface-admindown:hover {
|
|||||||
margin-bottom: 1em;
|
margin-bottom: 1em;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
float: left;
|
float: left;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.optionicon {
|
.optionicon {
|
||||||
|
@@ -81,16 +81,16 @@ foreach($segments as $pos => $segment) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach($_POST as $name => $value)
|
foreach($_GET as $name => $value)
|
||||||
{
|
{
|
||||||
# if ($value == "" || !isset($value))
|
$vars[$name] = $value;
|
||||||
# {
|
}
|
||||||
# } else {
|
|
||||||
$vars[$name] = $value;
|
foreach($_POST as $name => $value)
|
||||||
# }
|
{
|
||||||
|
$vars[$name] = $value;
|
||||||
}
|
}
|
||||||
|
|
||||||
#print_r($vars);
|
|
||||||
|
|
||||||
if(strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; }
|
if(strstr($_SERVER['REQUEST_URI'], 'widescreen=yes')) { $_SESSION['widescreen'] = 1; }
|
||||||
if(strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); }
|
if(strstr($_SERVER['REQUEST_URI'], 'widescreen=no')) { unset($_SESSION['widescreen']); }
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
if ($vars['tab'] == "port" && is_numeric($vars['device']) && port_permitted($vars['port']))
|
if ($vars['tab'] == "port" && is_numeric($vars['device']) && port_permitted($vars['port']))
|
||||||
{
|
{
|
||||||
$check_device = get_device_id_by_interface_id($vars['device']);
|
$check_device = get_device_id_by_interface_id($vars['port']);
|
||||||
$permit_ports = 1;
|
$permit_ports = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -72,7 +72,7 @@ if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php");
|
|||||||
|
|
||||||
// Display devices this user doesn't have access to
|
// Display devices this user doesn't have access to
|
||||||
echo("<h4>Grant access to new device</h4>");
|
echo("<h4>Grant access to new device</h4>");
|
||||||
echo("<form method='get' action=''>
|
echo("<form method='post' action=''>
|
||||||
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
||||||
<input type='hidden' value='edituser' name='page'>
|
<input type='hidden' value='edituser' name='page'>
|
||||||
<input type='hidden' value='adddevperm' name='action'>
|
<input type='hidden' value='adddevperm' name='action'>
|
||||||
@@ -109,7 +109,7 @@ if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php");
|
|||||||
// Display devices this user doesn't have access to
|
// Display devices this user doesn't have access to
|
||||||
echo("<h4>Grant access to new interface</h4>");
|
echo("<h4>Grant access to new interface</h4>");
|
||||||
|
|
||||||
echo("<form action='' method='get'>
|
echo("<form action='' method='post'>
|
||||||
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
||||||
<input type='hidden' value='edituser' name='page'>
|
<input type='hidden' value='edituser' name='page'>
|
||||||
<input type='hidden' value='addifperm' name='action'>
|
<input type='hidden' value='addifperm' name='action'>
|
||||||
@@ -147,7 +147,7 @@ if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php");
|
|||||||
|
|
||||||
// Display devices this user doesn't have access to
|
// Display devices this user doesn't have access to
|
||||||
echo("<h4>Grant access to new bill</h4>");
|
echo("<h4>Grant access to new bill</h4>");
|
||||||
echo("<form method='get' action=''>
|
echo("<form method='post' action=''>
|
||||||
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
<input type='hidden' value='" . $vars['user_id'] . "' name='user_id'>
|
||||||
<input type='hidden' value='edituser' name='page'>
|
<input type='hidden' value='edituser' name='page'>
|
||||||
<input type='hidden' value='addbillperm' name='action'>
|
<input type='hidden' value='addbillperm' name='action'>
|
||||||
@@ -173,7 +173,7 @@ if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php");
|
|||||||
|
|
||||||
echo("<h3>Select a user to edit</h3>");
|
echo("<h3>Select a user to edit</h3>");
|
||||||
|
|
||||||
echo("<form method='get' action=''>
|
echo("<form method='post' action=''>
|
||||||
<input type='hidden' value='edituser' name='page'>
|
<input type='hidden' value='edituser' name='page'>
|
||||||
<select name='user_id'>");
|
<select name='user_id'>");
|
||||||
foreach($user_list as $user_entry)
|
foreach($user_list as $user_entry)
|
||||||
|
Reference in New Issue
Block a user