First of all, the simple piece of code below shows how I ask you for trust on my sites:

      $browser = $HTTP_SERVER_VARS['HTTP_USER_AGENT'];
      $ingame = (substr($browser,0,16)=='EVE-minibrowser/');
      
      function get_trust() {
        global $ingame, $trusted, $pilotname;
        if ($ingame) {
         // check for trust  
if ($_SERVER['HTTP_EVE_TRUSTED']=='no') { // request trust from client through headers header("eve.trustme:".$this_host."/::please allow me to access your pilot information."); $trusted = false; } else { $trusted = true; // get pilotname
$pilotname = $_SERVER['HTTP_EVE_CHARNAME']; } } }

The following variables are available in from the header in the IGB:

The corporation role is a bitmask. If you don't know what that is, ask Google, it goes beyond the scope of this article to explain basic programmer's math here.

CorproleBit
Director1
Personnel Manager128
Accountant256
Security Officer512
Factory Manager1024
Station Manager2048
Auditor4096
Hangar Can Take Division 18192
Hangar Can Take Division 216384
Hangar Can Take Division 332768
Hangar Can Take Division 465536
Hangar Can Take Division 5131072
Hangar Can Take Division 6262144
Hangar Can Take Division 7524288
Hangar Can Query Division 11048576
Hangar Can Query Division 22097152
Hangar Can Query Division 34194304
Hangar Can Query Division 48388608
Hangar Can Query Division 516777216
Hangar Can Query Division 633554432
Hangar Can Query Division 767108864
Account Can Take Division 1134217728
Account Can Take Division 2268435456
Account Can Take Division 3536870912
Account Can Take Division 41073741824
Account Can Take Division 52147483648
Account Can Take Division 64294967296
Account Can Take Division 78589934592
Account Can Query Division 117179869184
Account Can Query Division 234359738368
Account Can Query Division 368719476736
Account Can Query Division 4137438953472
Account Can Query Division 5274877906944
Account Can Query Division 6549755813888
Account Can Query Division 71099511627776
Equipment Config2199023255552
ContainerCan Take Division 14398046511104
ContainerCan Take Division 28796093022208
ContainerCan Take Division 317592186044416
ContainerCan Take Division 435184372088832
ContainerCan Take Division 570368744177664
ContainerCan Take Division 6140737488355328
ContainerCan Take Division 7281474976710656
Can Rent Office562949953421312
Can Rent FactorySlot1125899906842624
Can Rent ResearchSlot2251799813685248
Junior Accountant4503599627370496
Starbase Config9007199254740992
Trader18014398509481984

Hope this helps, if you have anything to add or know of errors in this text, please contact Grismar.