adragonsrage62
New Member
- Messages
- 3
- Reaction score
- 0
- Points
- 0
This simple code pulls information granted by the in-game browser for eve online when the browser trusts the page. My design for the site requires this information plus a password, but i'm having a hard time pulling any of the data sent by the IGB. Any assistance or know how would be appreciated.
PHP:
<?php
if ($_SERVER['HTTP_EVE_TRUSTED'] == 'no')
{
header('eve.trustMe:http://' . $_SERVER['HTTP_HOST'] . '/eve/::Please trust me, I\'m nice');
print '<html><body>';
print '<h1>Trust Required</h1>';
print 'I need to be trusted to work properly';
}
else
{
print '<html><body>';
print '<h1>Trusted Connection</h1>';
}
print '<h1>Eve Variables</h1>';
foreach ($_SERVER as $k=>$v)
{
if (preg_match('/^HTTP_EVE_/', $k))
{
print htmlentities($k) . ' is ' . htmlentities($v) . '<br>';
}
}
print '</body></html>';
?>