View difference between Paste ID: cB5kLup9 and 9PveHaqZ
SHOW: | | - or go back to the newest paste.
1
@$nav_normal = array(
2
	"Home" => $locationHome,
3
	"(Un)Subscribe" => $locationSubscribe,
4
	"About Us" => $locationAbout,
5
	"Login" => $locationLogin
6-
	);
6+
	); //this will be the list of the public visible nav bar links
7
@$nav_acp = array();
8
9
10
//$Nav_ID will be set for each page manually as E.G Home
11
if(in_array($Nav_ID,$nav_normal)){
12-
//Nav_ID will be set on the page itselves\/everything is defined correctly don't mind that\\
12+
13-
//What I want to do if the Nav_ID is in the $nav_normal array output the normal navbar else it will show the admincp nav bar\\
13+
//so if $Nav_ID equals in the nav_normal array then it uses the foreach loop I created...
14
//but how can I check if nav_id is in the list (home is in the list but the nav isn't showing...)