git-svn-id: http://www.observium.org/svn/observer/trunk@2548 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2011-09-22 18:18:15 +00:00
parent 5872ccac1b
commit 00c8aeae5a
4 changed files with 13 additions and 12 deletions

View File

@@ -834,6 +834,7 @@ a.interface-upup:hover, a.interface-updown:hover, a.interface-admindown:hover {
margin-bottom: 1em;
padding: 10px;
float: left;
width: 100%;
}
.optionicon {

View File

@@ -81,16 +81,16 @@ foreach($segments as $pos => $segment) {
}
}
foreach($_POST as $name => $value)
foreach($_GET as $name => $value)
{
# if ($value == "" || !isset($value))
# {
# } else {
$vars[$name] = $value;
# }
$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=no')) { unset($_SESSION['widescreen']); }

View File

@@ -2,7 +2,7 @@
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;
}

View File

@@ -72,7 +72,7 @@ if ($_SESSION['userlevel'] != '10') { include("includes/error-no-perm.inc.php");
// Display devices this user doesn't have access to
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='edituser' name='page'>
<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
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='edituser' name='page'>
<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
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='edituser' name='page'>
<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("<form method='get' action=''>
echo("<form method='post' action=''>
<input type='hidden' value='edituser' name='page'>
<select name='user_id'>");
foreach($user_list as $user_entry)