Pages: [1] :: one page |
|
Author |
Thread Statistics | Show CCP posts - 0 post(s) |
Krarriak
Caldari FDF Industries Hedonistic Imperative
|
Posted - 2008.12.22 09:42:00 -
[1]
Hey there,
I got the problem that how ever, I can't get my site trusted...
I added the url to the trusted sites but it does not help...
this is the code:
if($_SERVER['HTTP_EVE_TRUSTED'] != "yes") { header('eve.trustMe:http://' . $_SERVER['HTTP_HOST'] . '/::This site needs trust to function.'); }
does anyone know why it does not work? ... |
Eldstrom
|
Posted - 2008.12.22 11:20:00 -
[2]
when you set a site as trusted it creates a entry in your trusted list, but as untrusted. you need to go in the trusted list and set it to trusted.
Eld
|
Krarriak
Caldari FDF Industries Hedonistic Imperative
|
Posted - 2008.12.22 11:40:00 -
[3]
Ok I tried that but I will try it again after DT. And is it the easiest way to get the Charname, Corpname and Alliancename? Or is it better to go another way?
I am kinda new to the IGB programming part. ... |
Eldstrom
|
Posted - 2008.12.22 14:29:00 -
[4]
My previous response was addressing the IGB behaviour once you get that far only difference I can see between yours and others is a the casing, other use lower case m in trustme.
as for the values you wish to retrieve, don't forget that this it is easy to fake so don't trust them all the applications i've looked at tend only to use them for prefilling of form fields.
Eld
|
Dragonaire
Caldari Corax.
|
Posted - 2008.12.22 18:17:00 -
[5]
He's right you can't trust what you get from what you think is the person's IGB because it might not be the IGB at all. You can read a bit more in this post. -- Finds camping stations from the inside much easier. Designer of Yapeal for Eve API. |
Malif Rising
Rising Industries
|
Posted - 2008.12.24 23:03:00 -
[6]
Edited by: Malif Rising on 24/12/2008 23:04:07 Hi Krarriak,
I've found the "trust request" mechanism very touchy and a bit buggy as well. If all else fails, re-install the whole client fresh -- it's worked for me -- but first, try this PHP (which works):
header('eve.trustme: http://www.mydomain.com/::Please trust me.');
Some things to note:
1) In PHP, you must call header() before sending any output to the page. This includes whitespace. If you don't follow this requirement, your header won't be set.
2) Note the capitalization and spaces of the line above. There is a space after "eve.trustme:" which you do not have in your example. Also, use all lowercase for "eve.trustme" because it works and I have no idea if somehow the IGB header parsing code is case-sensitive.
3) This whole mechanism of gaining trust is annoying in that when it works, what you get is a trust duration of "session" (trust is removed when the client is closed), when any sane developer wants a trust duration of "permanent". I don't know how you get a permanent duration other than having the user manually open the "Options | Trusted Sites" dialog and adding your site themselves.
4) When using the manual method, remind your users to add a trailing slash, or they are SOL. Example: http://www.mydomain.com/ -- not: http://www.mydomain.com Chalk this one up to yet another bug in the IGB.
5) Use the header values you get when all this is working only for convenience. Use your own login code for authentication. Headers can be spoofed -- in fact, you should be spoofing them to help yourself develop. Use Firefox + Firebug plugin + Modify Header plugin to save tons of time. My suggestion is: before doing more debugging, use these tools to prove to yourself that you are setting the header correctly. Also, use these tools to take a look at www.battleclinic.com. They have the "trust request" mechanism working, and you can play with it and learn from a working site.
Good luck!
-- Malif
|
|
|
|
Pages: [1] :: one page |
First page | Previous page | Next page | Last page |