| Pages: [1] :: one page |
| Author |
Thread Statistics | Show CCP posts - 0 post(s) |

Delphi Denon
|
Posted - 2006.07.12 11:15:00 -
[1]
Edited by: Delphi Denon on 12/07/2006 11:15:42 Im having some problems with the IGB and making my site a trusted site, I can see all the variables in this page when I manually make the site trusted, but I cant seem to get the pop up to work, ive posted the code below - if anyone can help me, it would be greatly appreciated!
Delphi
<?php
if ($_SERVER['HTTP_EVE_TRUSTED'] == 'no') { header('eve.trustMe:http://ig.milhousehasyou.com/' . $_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>';
?>
|

nonsequitur
Evolution Band of Brothers
|
Posted - 2006.07.13 17:27:00 -
[2]
You should verify two things. First, that you have not inadvertently sent html data before trying to send headers to the browser since the header command only works if its text is the very first thing sent as output to the visiting browser. Second, make sure of the value of $_SERVER['HTTP_HOST'], from the looks of it it is going to try to send 'http://ig.milhousehasyou.com/ig.milhousehasyou.com/eve/' as the server url to trust. The IGB will not see a match, and will not prompt for trust. Also, you may want to just use the root url, and not add the /eve/ portion, I have never tested the IGB to see if it will allow trust at a directory level.
My igbclass php scripts use the following header line in the IGB::RequestTrust(...) function. header("eve.trustme:http://".$_SERVER['HTTP_HOST']."/::".$_ReasonText,false);
|

Coniglietta Magica
Celestial Horizon Corp. Ascendant Frontier
|
Posted - 2006.07.15 03:31:00 -
[3]
I have been unable to get it to trust at a directory level... It drove me nuts for a couple of days till I realized that I could not add trust to a sub dir. and that linking a subdomain in chat seems to reult in a 404 unless it is in the root of the subdir.
|
| |
|
| Pages: [1] :: one page |
| First page | Previous page | Next page | Last page |