+ Reply to Thread
Results 1 to 4 of 4

Thread: PHP server side help

  1. #1
    adragonsrage62 is offline x10Hosting Member adragonsrage62 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    3

    PHP server side help

    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 Code:
    <?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>';

    ?>

  2. #2
    cybrax's Avatar
    cybrax is offline x10 Elder cybrax is on a distinguished road
    Join Date
    Aug 2009
    Location
    UK
    Posts
    699

    Re: PHP server side help

    Why not just use the 'EVE online' API ?

    Sadly it looks like all the documentation is hidden behind a user account login so can't give any more pointers unless somebody attaches it as a file here.
    The code must flow.
    Project 157: Latest UK Jobs direct to your mobile phone
    New Domain under construction: Lovelogic.net
    home for some new projects that we can't keep here ;)


  3. #3
    adragonsrage62 is offline x10Hosting Member adragonsrage62 is an unknown quantity at this point
    Join Date
    Jul 2011
    Posts
    3

    Re: PHP server side help

    It would be easier to pull from the api, but these functions are fundamental more or less and simply aren't working.

    If you know how to use it, the Modify Headers add-on for firefox should provide the means to project false data for the project. All the headers are posted on the eve wiki under IGB Headers.

    The rest of the site will include java IGB item and ship dna links similar to
    HTML Code:
    <button type="button" onclick="CCPEVE.showInfo(597)">Show Info (Punisher)</button>
    <a onclick="CCPEVE.showFitting('11190:448;1:527;1:2048;1:2456;1:2488;1:2889;2:4475;1:5320;1:6003;1:11269;1:11309;1:12625;1:21898;1:23707;1:31358;2::')">Purifier</a>
    If the user has provided a limited api for the account, filters can be applied for items and fittings the character browsing the site can use.

  4. #4
    luke121 is offline x10Hosting Member luke121 is an unknown quantity at this point
    Join Date
    May 2010
    Posts
    9

    Re: PHP server side help

    looks good

+ Reply to Thread

Similar Threads

  1. Repeated server side tasks?
    By authgaron27 in forum Free Hosting
    Replies: 0
    Last Post: 01-30-2011, 06:10 AM
  2. Server side includes
    By lydia09 in forum Programming Help
    Replies: 9
    Last Post: 05-01-2010, 04:22 PM
  3. Server-side includes SSI
    By frankfriend in forum Free Hosting
    Replies: 2
    Last Post: 03-20-2008, 05:25 AM
  4. Server-side XSLT with PHP
    By yahia in forum Free Hosting
    Replies: 2
    Last Post: 03-22-2007, 09:52 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers