Jump to content

PHP Help


Th3Boss

Recommended Posts

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

?>
Link to comment
https://forums.phpfreaks.com/topic/274992-php-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.