php help hiding navigation with cookie
Posted
by user342391
on Stack Overflow
See other posts from Stack Overflow
or by user342391
Published on 2010-05-19T22:59:02Z
Indexed on
2010/05/19
23:00 UTC
Read the original article
Hit count: 133
I have these tabs on my navigation:
<li<?php if ($thisPage=="Customers") echo " class=\"current\""; ?>><a href="/customers/">Customers</a></li>
<li<?php if ($thisPage=="Trunks") echo " class=\"current\""; ?>><a href="/trunks/">Trunks</a></li>
<li<?php if ($thisPage=="Settings") echo " class=\"current\""; ?>><a href="/settings/">Settings</a></li>
and I only want to show them when admin is logged in:
if ($_COOKIE['custid'] == "admin") {
echo "Customers";
echo "Trunks";
echo "Settings";
}
How can I combine the two of these scripts???
© Stack Overflow or respective owner