Jump to content

HTTP_REFERER problem


raider00321

Recommended Posts

Hey, ive ran into a problem with the php function called HTTP_REFERER with a open source mmo called promisance. My problem is that the page just doesnt load properly.

Promisance.php

<?

include("const.php");

if ((stristr($HTTP_REFERER,$SERVER_NAME)) || ($action == "gameranks") || ($action == "top10") || ($action == "login") || ($action == "signup") || ($action == "count") || (($action == "game") && ($HTTP_REFERER)))

{

if (!$link = @mysql_connect($dbhost,$dbuser,$dbpass))

{

include("html.php");

HTMLbegincompact("Database Error!");

print "The game database is currently unavailable. Please try again later.\n";

HTMLendcompact();

exit;

}

mysql_select_db($dbname);

if ($action == "game")

$action = "main";

include("$action.php");

}

else

{

include("html.php");

HTMLbegincompact("Error!");

?>

<table>

<tr><th style="color:#00006F;background-color:#FFFF9F">Security Violation</th></tr>

<tr><td>We have determined that you are accessing the game the wrong way, or an error might have occurred.<br>

<?

if (!$HTTP_REFERER)

print "You may NOT access in-game pages via bookmarks!

 

?>

<br>\n";

else print "You attempted to view this page from $HTTP_REFERER, which is not on $SERVER_NAME.<br>\n";

?>

If this error persists take the following steps in the following order:<br>

1) Return to <?=$config[home]?> and re-login.<br>

2) Upgrade your internet browser.<br>

3) Contact the game administrator at <?=$config[adminemail]?><br>

4) Contact your ISP.<br></td></tr>

</table>

<?

HTMLendcompact();

}

?>

this is the main file form which should load all the other pages

 

Index.php

<style type="text/css"><!--

body {

background-color: #000000;

}

.Links {left:105px;

  top:60px;

  height:60px;

  width:1127px;

  background:#660000;

  border:2px;

  border-style:ridge;

  border-color:#621313;

  border-bottom-color:#999999;

  position:absolute;

}

.Main {left:105;

  top:119;

  height:330px;

  width:1127;

          background-color:#660000;

  border:2px;

  border-style:ridge;

  border-color:#621313;

  position:absolute

}

 

.Affiliates {top:438px;

left:105px;

height:100px;

width:1127px;

background-color:#660000;

border:2px;

border-style:ridge;

border-top-color:#99000;

border-color:#660000;

position:absolute;

}

.Logo {left:5px;

  top:5px;

  height:210px;

  width:210px;

  background-color:#444444;

  border:1px;

  border-style:groove;

  position:absolute;

}

.Gameinfo {left:5px;

  top:223px;

  height:90px;

  width:210px;

  background-color:#444444;

  border:1px;

  border-style:groove;

  position:absolute;

  }

.gamename {left:315px;

top:5px;

height:30px;

width:500px;

 

position:absolute;

}

.Aboutgame {left:315px;

top:40px;

height:200px;

width:500px;

background-color:#444444;

border:1px;

border-style:groove;

position:absolute;

 

 

 

}

.Quicklinks {left:918px;

top:5px;

height:308px;

width:200px;

background-color:#444444;

border:1px;

border-style:groove;

position:absolute;

}</style><font color="#990000" size="12">

<center><b>LAZY PRODUCTIONS ONLINE</b></center></font>

<div class="links">

<FONT>|</FONT><a href="/prominfo.php">Promisance</a><FONT>|</FONT>

<a href="/km2info.php">Kill Monster 2</a><FONT>|</FONT>

<a href="/foruminfo.php">Forums </a><FONT>|</FONT></div>

<div class="Main">

<div class="Logo"><IMG SRC="images/lazyproductionlogo.jpg" width="210px" height="210px"> </div>

<div class="Gameinfo">Site Admin: Raider00321/Raider Games Running: 2<br>

Site Creation:17th June 2007 </div>

<div class="gamename"><font size="6">

<center>Lazy Productions Online</center></font></div>

<div class="Aboutgame">

<center>Welcome to Lazy Productions online. <br>

<br>

Lazy Productions is still under construction. However we are offering fully operational MMORPG's.<br>

Right now, Both Promisance and KM2 are fully operational.<br>

If you wish to leave a message, you can do so in the forums as it is also operational.<br>

I hope you enjoy your visit. <br>

Your Admin, Raider00321</center></div>

<div class="Quicklinks"><a href="km2/">Kill Monster(Play Now!)</a> <br>

<br>

<a href="/promisance/promisance.php">promisance(Play Now!)</a> <br>

<br>

<a href="WOTA/">War of The Ages(In Construction)</a>

<p></p><br>

</div></div>

<div class="Affiliates">

<center><a href="http://top50.onrpg.com/index.php?a=in&u=raider00321"><img alt="MMORPG / MMOG Top 50 Games" src="http://top50.onrpg.com/images/vote.jpg" border="0"></a> <a href="http://www.xtremetop100.com/in.php?site=1132211409"><img alt="Ragnarok Online Server" src="http://www.xtremeTop100.com/votenew.jpg" border="0"></a></center></div>

 

and thats my index page

 

 

Any help anyone could give would eb greatly appreciated as ive been struggling with it for a while now :)

Link to comment
Share on other sites

Well, basically its goes to a user defined error message, when a link is pressed on the index page, whereas thats only meant to happen when you write the link directly into the url box, but the error come sup for both still.

For more of a detail picture, my website is

www.lazyproductionsonline.com

 

 

Link to comment
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.