|
| Author | Thread Statistics | Show CCP posts - 4 post(s) |
![]() Shellion |
Posted - 2005.03.14 11:29:00 -
[1]
You must check this carefully as the server often caches variables. For example, if you access the site from inside the game, then from a standard browser, the server can still remember the HTTP_EVE_TRUSTED variable although it won't have any value set. A safe way is to use the following: $iAmTrusted=false; $inGame=false; if (isset($_SERVER['HTTP_EVE_TRUSTED'])) { // just because it is understood does not mean we are in the game ! if ($_SERVER['HTTP_EVE_TRUSTED'] == 'no' ) { header('eve.trustMe:http://www.mysite.com/::Please trust this site if you wish to use the forums or post news/ announcements.' ); $inGame=true; // as HTTP_EVE_TRUSTED has a value we are in the game } elseif ($_SERVER['HTTP_EVE_TRUSTED'] == 'yes' ) { $inGame=true; $iAmTrusted=true; // we are in the game and trusted ! } } if (!$inGame) { // out of game site... } elseif (!$iAmTrusted) { // not trusted stuff... } else { // trusted stuff... } _______________________________________________ (\_/) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
Shellion |
Posted - 2005.03.14 11:29:00 -
[2]
You must check this carefully as the server often caches variables. For example, if you access the site from inside the game, then from a standard browser, the server can still remember the HTTP_EVE_TRUSTED variable although it won't have any value set. A safe way is to use the following: $iAmTrusted=false; $inGame=false; if (isset($_SERVER['HTTP_EVE_TRUSTED'])) { // just because it is understood does not mean we are in the game ! if ($_SERVER['HTTP_EVE_TRUSTED'] == 'no' ) { header('eve.trustMe:http://www.mysite.com/::Please trust this site if you wish to use the forums or post news/ announcements.' ); $inGame=true; // as HTTP_EVE_TRUSTED has a value we are in the game } elseif ($_SERVER['HTTP_EVE_TRUSTED'] == 'yes' ) { $inGame=true; $iAmTrusted=true; // we are in the game and trusted ! } } if (!$inGame) { // out of game site... } elseif (!$iAmTrusted) { // not trusted stuff... } else { // trusted stuff... } _______________________________________________ (\_/) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
![]() Shellion |
Posted - 2005.03.14 12:36:00 -
[3] Forgot to mention, check this site out for everything you even wanted to know about the eve minibrowser.... http://www.mcdee.net/eve/html.html _______________________________________________ (\_/) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
Shellion |
Posted - 2005.03.14 12:36:00 -
[4] Forgot to mention, check this site out for everything you even wanted to know about the eve minibrowser.... http://www.mcdee.net/eve/html.html _______________________________________________ (\_/) (O.o) (> <) This is Bunny. Copy Bunny into your signature to help him on his way to world domination. |
| Copyright © 2006-2026, Chribba - OMG Labs. All Rights Reserved. - perf 0,05s, ref 20260202/0740 EVE-Online™ and Eve imagery © CCP. |
| COPYRIGHT NOTICE EVE Online, the EVE logo, EVE and all associated logos and designs are the intellectual property of CCP hf. All artwork, screenshots, characters, vehicles, storylines, world facts or other recognizable features of the intellectual property relating to these trademarks are likewise the intellectual property of CCP hf. EVE Online and the EVE logo are the registered trademarks of CCP hf. All rights are reserved worldwide. All other trademarks are the property of their respective owners. CCP hf. has granted permission to EVE-Search.com to use EVE Online and all associated logos and designs for promotional and information purposes on its website but does not endorse, and is not in any way affiliated with, EVE-Search.com. CCP is in no way responsible for the content on or functioning of this website, nor can it be liable for any damage arising from the use of this website. |