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{ } ?>