PHP IGB
From EVEDev
| In Game Browser Documentation - Category Home - Documentation Home |
IGB trust and detection routines for PHP.
<?php //////////////////////////////////////////////////////////////////////////////////////// // // Returns TRUE if the user trusts the site, FALSE otherwise. // //////////////////////////////////////////////////////////////////////////////////////// function IGBRequireTrust() { if($_SERVER['HTTP_EVE_TRUSTED'] != 'yes') { header('eve.trustMe:http://' . $_SERVER['HTTP_HOST'] . '/::This site needs trust to function.'); return false; } return true; } //////////////////////////////////////////////////////////////////////////////////////// // // Returns TRUE if the browser is the EVE mini-browser, FALSE otherwise. // //////////////////////////////////////////////////////////////////////////////////////// function IGBDetect() { return isset($_SERVER['HTTP_EVE_TRUSTED']); } ?>

