Jump to content

PHP Help


Go to solution Solved by 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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.