Th3Boss Posted February 26, 2013 Share Posted February 26, 2013 The code below is suppose to check if someone is "Alliance" if they are then the page is visible, if they arnt it shows the message and Enter button to reload site. It works except people who are "Alliance" get the message and Enter button and can only view site after they click the Enter button.How can I get it to not show message and Enter button to people who are "Alliance" and instead just show website.Thanks <?php if($trusted=$_SERVER['HTTP_EVE_TRUSTED']){ $charname=($_SERVER['HTTP_EVE_CHARNAME']); $corpname=($_SERVER['HTTP_EVE_CORPNAME']); $alliancename=($_SERVER['HTTP_EVE_ALLIANCENAME']);} if($alliancename == "Alliance"){ $access=TRUE;}else{ $access=FALSE;} if($access==FALSE){ $msg="Message Here";print($msg);Echo "<center><h4><a href='http://www.website.com/'>Click 2 Enter</a></h4></center>";} if($access){ ?> *Website Here*<?php }else{} ?> Quote Link to comment https://forums.phpfreaks.com/topic/274992-php-help/ Share on other sites More sharing options...
hyster Posted February 27, 2013 Share Posted February 27, 2013 just use if($alliancename == "Alliance"){ code for members in the alliance }else{ code for none alliance; } Quote Link to comment https://forums.phpfreaks.com/topic/274992-php-help/#findComment-1415239 Share on other sites More sharing options...
Th3Boss Posted February 27, 2013 Author Share Posted February 27, 2013 (edited) just use if($alliancename == "Alliance"){ code for members in the alliance }else{ code for none alliance; } I tried that before, it doesnt work. Edited February 27, 2013 by Th3Boss Quote Link to comment https://forums.phpfreaks.com/topic/274992-php-help/#findComment-1415243 Share on other sites More sharing options...
AyKay47 Posted February 27, 2013 Share Posted February 27, 2013 Where are the HTTP_EVE server values coming from? Double check those values, because they aren't comparing correctly. Quote Link to comment https://forums.phpfreaks.com/topic/274992-php-help/#findComment-1415250 Share on other sites More sharing options...
Solution Th3Boss Posted February 27, 2013 Author Solution Share Posted February 27, 2013 Figured it out. Quote Link to comment https://forums.phpfreaks.com/topic/274992-php-help/#findComment-1415255 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.