I call this function it checks a session variable then displays 1 of 3 menus... for some reason it will only display the first menu regardless of the results of my decoded session var. Any help or just a new pair of eyes would help. Thanks in advance.
jas


function menu() {
$lvl = base64_decode($_SESSION['lvl']);
echo $lvl;
if (($lvl != "admin") || ($lvl != "user") || ($lvl == "view")) {
$_SESSION['menu'] = "<tr><td><hr width=\"90%\" color=\"#999999\" align=\"left\"></td></tr>";
} elseif (($lvl != "admin") || ($lvl == "user") || ($lvl != "view")) {
$_SESSION['menu'] = "<tr><td><a href=\"login.hosts.php\" onmouseover=\"window.status='Edit current static hosts for each VLAN';return true\"><b><u>Manage hosts</u></b></a></td></tr>
<tr><td><a href=\"login.run.php\" onmouseover=\"window.status='Updates current DHCP configuration - YOU MUST VISIT HERE FOR CHANGES TO TAKE EFFECT!!!';return true\"><b><u>Update DHCP</u></b></a></td></tr>
<tr><td><hr width=\"90%\" color=\"#999999\" align=\"left\"></td></tr>";
} elseif (($lvl == "admin") || ($lvl != "user") || ($lvl != "view")) {
$_SESSION['menu'] = "<tr><td><a href=\"login.global.php\" onmouseover=\"window.status='Edit current DHCP global settings';return true\"><b><u>Global DHCP config.</u></b></a></td></tr>
<tr><td><a href=\"login.vlans.php\" onmouseover=\"window.status='Edit current DHCP VLAN's';return true\"><b><u>Manage VLANS</u></b></a></td></tr>
<tr><td><a href=\"login.hosts.php\" onmouseover=\"window.status='Edit current static hosts for each VLAN';return true\"><b><u>Manage hosts</u></b></a></td></tr>
<tr><td><a href=\"login.run.php\" onmouseover=\"window.status='Updates current DHCP configuration - YOU MUST VISIT HERE FOR CHANGES TO TAKE EFFECT!!!';return true\"><b><u>Update DHCP</u></b></a></td></tr>
<tr><td><hr width=\"90%\" color=\"#999999\" align=\"left\"></td></tr>
<tr><td><a href=\"login.users.php\" onmouseover=\"window.status='Manage users authorized to work on the DHCP services';return true\"><b><u>Users</u></b></a></td></tr>
<tr><td><a href=\"login.logs.php\" onmouseover=\"window.status='Manage the logs used to prevent unauthorized access to DHCP services';return true\"><b><u>Logs</u></b></a></td></tr>";
} else {
$_SESSION['menu'] = "<tr><td><hr width=\"90%\" color=\"#999999\" align=\"left\"></td></tr>"; }
}


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to